FontChooserProtocol

public protocol FontChooserProtocol

GtkFontChooser is an interface that can be implemented by widgets displaying the list of fonts. In GTK+, the main objects that implement this interface are GtkFontChooserWidget, GtkFontChooserDialog and GtkFontButton. The GtkFontChooser interface has been introducted in GTK+ 3.2.

The FontChooserProtocol protocol exposes the methods and properties of an underlying GtkFontChooser instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see FontChooser. Alternatively, use FontChooserRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkFontChooser instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • font_chooser_ptr Default implementation

    Typed pointer to the underlying GtkFontChooser instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GtkFontChooser instance.

    Declaration

    Swift

    var font_chooser_ptr: UnsafeMutablePointer<GtkFontChooser>! { get }
  • Required Initialiser for types conforming to FontChooserProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

FontChooser Interface

  • Bind a FontChooserPropertyName source property to a given target object.

    Declaration

    Swift

    @discardableResult
    @inlinable
    func bind<Q, T>(property source_property: FontChooserPropertyName, to target: T, _ target_property: Q, flags f: BindingFlags = .default, transformFrom transform_from: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }, transformTo transform_to: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }) -> BindingRef! where Q : PropertyNameProtocol, T : ObjectProtocol

    Parameters

    source_property

    the source property to bind

    target

    the target object to bind to

    target_property

    the target property to bind to

    flags

    the flags to pass to the Binding

    transform_from

    ValueTransformer to use for forward transformation

    transform_to

    ValueTransformer to use for backwards transformation

    Return Value

    binding reference or nil in case of an error

  • get(property:) Extension method

    Get the value of a FontChooser property

    Declaration

    Swift

    @inlinable
    func get(property: FontChooserPropertyName) -> GLibObject.Value

    Parameters

    property

    the property to get the value for

    Return Value

    the value of the named property

  • set(property:value:) Extension method

    Set the value of a FontChooser property. Note that this will only have an effect on properties that are writable and not construct-only!

    Declaration

    Swift

    @inlinable
    func set(property: FontChooserPropertyName, value v: GLibObject.Value)

    Parameters

    property

    the property to get the value for

    Return Value

    the value of the named property

FontChooser signals

  • Connect a Swift signal handler to the given, typed FontChooserSignalName signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func connect(signal s: FontChooserSignalName, flags f: ConnectFlags = ConnectFlags(0), handler h: @escaping SignalHandler) -> Int

    Parameters

    signal

    The signal to connect

    flags

    The connection flags to use

    data

    A pointer to user data to provide to the callback

    destroyData

    A GClosureNotify C function to destroy the data pointed to by userData

    handler

    The Swift signal handler (function or callback) to invoke on the given signal

    Return Value

    The signal handler ID (always greater than 0 for successful connections)

  • Connect a C signal handler to the given, typed FontChooserSignalName signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func connect(signal s: FontChooserSignalName, flags f: ConnectFlags = ConnectFlags(0), data userData: gpointer!, destroyData destructor: GClosureNotify? = nil, signalHandler h: @escaping GCallback) -> Int

    Parameters

    signal

    The signal to connect

    flags

    The connection flags to use

    data

    A pointer to user data to provide to the callback

    destroyData

    A GClosureNotify C function to destroy the data pointed to by userData

    signalHandler

    The C function to be called on the given signal

    Return Value

    The signal handler ID (always greater than 0 for successful connections)

  • Emitted when a font is activated. This usually happens when the user double clicks an item, or an item is selected and the user presses one of the keys Space, Shift+Space, Return or Enter.

    Note

    This represents the underlying font-activated signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onFontActivated(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: FontChooserRef, _ fontname: String) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    fontname

    the font name

    handler

    The signal handler to call Run the given callback whenever the fontActivated signal is emitted

  • fontActivatedSignal Extension method

    Typed font-activated signal for using the connect(signal:) methods

    Declaration

    Swift

    static var fontActivatedSignal: FontChooserSignalName { get }
  • onNotifyFont(flags:handler:) Extension method

    The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

    Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with G_PARAM_EXPLICIT_NOTIFY, then any call to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

    This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

    (C Language Example):

    g_signal_connect (text_view->buffer, "notify::paste-target-list",
                      G_CALLBACK (gtk_text_view_target_list_notify),
                      text_view)
    

    It is important to note that you must use canonical parameter names as detail strings for the notify signal.

    Note

    This represents the underlying notify::font signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyFont(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: FontChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyFont signal is emitted

  • notifyFontSignal Extension method

    Typed notify::font signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyFontSignal: FontChooserSignalName { get }
  • The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

    Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with G_PARAM_EXPLICIT_NOTIFY, then any call to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

    This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

    (C Language Example):

    g_signal_connect (text_view->buffer, "notify::paste-target-list",
                      G_CALLBACK (gtk_text_view_target_list_notify),
                      text_view)
    

    It is important to note that you must use canonical parameter names as detail strings for the notify signal.

    Note

    This represents the underlying notify::font-desc signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyFontDesc(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: FontChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyFontDesc signal is emitted

  • notifyFontDescSignal Extension method

    Typed notify::font-desc signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyFontDescSignal: FontChooserSignalName { get }
  • The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

    Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with G_PARAM_EXPLICIT_NOTIFY, then any call to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

    This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

    (C Language Example):

    g_signal_connect (text_view->buffer, "notify::paste-target-list",
                      G_CALLBACK (gtk_text_view_target_list_notify),
                      text_view)
    

    It is important to note that you must use canonical parameter names as detail strings for the notify signal.

    Note

    This represents the underlying notify::font-features signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyFontFeatures(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: FontChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyFontFeatures signal is emitted

  • notifyFontFeaturesSignal Extension method

    Typed notify::font-features signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyFontFeaturesSignal: FontChooserSignalName { get }
  • The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

    Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with G_PARAM_EXPLICIT_NOTIFY, then any call to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

    This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

    (C Language Example):

    g_signal_connect (text_view->buffer, "notify::paste-target-list",
                      G_CALLBACK (gtk_text_view_target_list_notify),
                      text_view)
    

    It is important to note that you must use canonical parameter names as detail strings for the notify signal.

    Note

    This represents the underlying notify::language signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyLanguage(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: FontChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyLanguage signal is emitted

  • notifyLanguageSignal Extension method

    Typed notify::language signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyLanguageSignal: FontChooserSignalName { get }
  • The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

    Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with G_PARAM_EXPLICIT_NOTIFY, then any call to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

    This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

    (C Language Example):

    g_signal_connect (text_view->buffer, "notify::paste-target-list",
                      G_CALLBACK (gtk_text_view_target_list_notify),
                      text_view)
    

    It is important to note that you must use canonical parameter names as detail strings for the notify signal.

    Note

    This represents the underlying notify::level signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyLevel(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: FontChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyLevel signal is emitted

  • notifyLevelSignal Extension method

    Typed notify::level signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyLevelSignal: FontChooserSignalName { get }
  • The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

    Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with G_PARAM_EXPLICIT_NOTIFY, then any call to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

    This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

    (C Language Example):

    g_signal_connect (text_view->buffer, "notify::paste-target-list",
                      G_CALLBACK (gtk_text_view_target_list_notify),
                      text_view)
    

    It is important to note that you must use canonical parameter names as detail strings for the notify signal.

    Note

    This represents the underlying notify::preview-text signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyPreviewText(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: FontChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyPreviewText signal is emitted

  • notifyPreviewTextSignal Extension method

    Typed notify::preview-text signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyPreviewTextSignal: FontChooserSignalName { get }
  • The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

    Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with G_PARAM_EXPLICIT_NOTIFY, then any call to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

    This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

    (C Language Example):

    g_signal_connect (text_view->buffer, "notify::paste-target-list",
                      G_CALLBACK (gtk_text_view_target_list_notify),
                      text_view)
    

    It is important to note that you must use canonical parameter names as detail strings for the notify signal.

    Note

    This represents the underlying notify::show-preview-entry signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyShowPreviewEntry(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: FontChooserRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyShowPreviewEntry signal is emitted

  • notifyShowPreviewEntrySignal Extension method

    Typed notify::show-preview-entry signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyShowPreviewEntrySignal: FontChooserSignalName { get }

FontChooser Interface: FontChooserProtocol extension (methods and fields)

  • getFont() Extension method

    Gets the currently-selected font name.

    Note that this can be a different string than what you set with gtk_font_chooser_set_font(), as the font chooser widget may normalize font names and thus return a string with a different structure. For example, “Helvetica Italic Bold 12” could be normalized to “Helvetica Bold Italic 12”.

    Use pango_font_description_equal() if you want to compare two font descriptions.

    Declaration

    Swift

    @inlinable
    func getFont() -> String!
  • getFontDesc() Extension method

    Gets the currently-selected font.

    Note that this can be a different string than what you set with gtk_font_chooser_set_font(), as the font chooser widget may normalize font names and thus return a string with a different structure. For example, “Helvetica Italic Bold 12” could be normalized to “Helvetica Bold Italic 12”.

    Use pango_font_description_equal() if you want to compare two font descriptions.

    Declaration

    Swift

    @inlinable
    func getFontDesc() -> Pango.FontDescriptionRef!
  • getFontFace() Extension method

    Gets the PangoFontFace representing the selected font group details (i.e. family, slant, weight, width, etc).

    If the selected font is not installed, returns nil.

    Declaration

    Swift

    @inlinable
    func getFontFace() -> Pango.FontFaceRef!
  • getFontFamily() Extension method

    Gets the PangoFontFamily representing the selected font family. Font families are a collection of font faces.

    If the selected font is not installed, returns nil.

    Declaration

    Swift

    @inlinable
    func getFontFamily() -> Pango.FontFamilyRef!
  • getFontFeatures() Extension method

    Gets the currently-selected font features.

    Declaration

    Swift

    @inlinable
    func getFontFeatures() -> String!
  • getFontMap() Extension method

    Gets the custom font map of this font chooser widget, or nil if it does not have one.

    Declaration

    Swift

    @inlinable
    func getFontMap() -> Pango.FontMapRef!
  • getFontSize() Extension method

    The selected font size.

    Declaration

    Swift

    @inlinable
    func getFontSize() -> Int
  • getLanguage() Extension method

    Gets the language that is used for font features.

    Declaration

    Swift

    @inlinable
    func getLanguage() -> String!
  • getLevel() Extension method

    Returns the current level of granularity for selecting fonts.

    Declaration

    Swift

    @inlinable
    func getLevel() -> FontChooserLevel
  • getPreviewText() Extension method

    Gets the text displayed in the preview area.

    Declaration

    Swift

    @inlinable
    func getPreviewText() -> String!
  • getShowPreviewEntry() Extension method

    Returns whether the preview entry is shown or not.

    Declaration

    Swift

    @inlinable
    func getShowPreviewEntry() -> Bool
  • Adds a filter function that decides which fonts to display in the font chooser.

    Declaration

    Swift

    @inlinable
    func setFilterFunc(filter: GtkFontFilterFunc? = nil, userData: gpointer! = nil, destroy: GDestroyNotify?)
  • setFont(fontname:) Extension method

    Sets the currently-selected font.

    Declaration

    Swift

    @inlinable
    func setFont(fontname: UnsafePointer<gchar>!)
  • set(fontDesc:) Extension method

    Sets the currently-selected font from font_desc.

    Declaration

    Swift

    @inlinable
    func set<FontDescriptionT>(fontDesc: FontDescriptionT) where FontDescriptionT : FontDescriptionProtocol
  • setFontMap(fontmap:) Extension method

    Sets a custom font map to use for this font chooser widget. A custom font map can be used to present application-specific fonts instead of or in addition to the normal system fonts.

    (C Language Example):

    FcConfig *config;
    PangoFontMap *fontmap;
    
    config = FcInitLoadConfigAndFonts ();
    FcConfigAppFontAddFile (config, my_app_font_file);
    
    fontmap = pango_cairo_font_map_new_for_font_type (CAIRO_FONT_TYPE_FT);
    pango_fc_font_map_set_config (PANGO_FC_FONT_MAP (fontmap), config);
    
    gtk_font_chooser_set_font_map (font_chooser, fontmap);
    

    Note that other GTK+ widgets will only be able to use the application-specific font if it is present in the font map they use:

    context = gtk_widget_get_pango_context (label);
    pango_context_set_font_map (context, fontmap);
    

    Declaration

    Swift

    @inlinable
    func setFontMap(fontmap: Pango.FontMapRef? = nil)
  • setFontMap(fontmap:) Extension method

    Sets a custom font map to use for this font chooser widget. A custom font map can be used to present application-specific fonts instead of or in addition to the normal system fonts.

    (C Language Example):

    FcConfig *config;
    PangoFontMap *fontmap;
    
    config = FcInitLoadConfigAndFonts ();
    FcConfigAppFontAddFile (config, my_app_font_file);
    
    fontmap = pango_cairo_font_map_new_for_font_type (CAIRO_FONT_TYPE_FT);
    pango_fc_font_map_set_config (PANGO_FC_FONT_MAP (fontmap), config);
    
    gtk_font_chooser_set_font_map (font_chooser, fontmap);
    

    Note that other GTK+ widgets will only be able to use the application-specific font if it is present in the font map they use:

    context = gtk_widget_get_pango_context (label);
    pango_context_set_font_map (context, fontmap);
    

    Declaration

    Swift

    @inlinable
    func setFontMap<FontMapT>(fontmap: FontMapT?) where FontMapT : FontMapProtocol
  • set(language:) Extension method

    Sets the language to use for font features.

    Declaration

    Swift

    @inlinable
    func set(language: UnsafePointer<CChar>!)
  • set(level:) Extension method

    Sets the desired level of granularity for selecting fonts.

    Declaration

    Swift

    @inlinable
    func set(level: FontChooserLevel)
  • setPreview(text:) Extension method

    Sets the text displayed in the preview area. The text is used to show how the selected font looks.

    Declaration

    Swift

    @inlinable
    func setPreview(text: UnsafePointer<gchar>!)
  • set(showPreviewEntry:) Extension method

    Shows or hides the editable preview entry.

    Declaration

    Swift

    @inlinable
    func set(showPreviewEntry: Bool)
  • font Extension method

    The font description as a string, e.g. “Sans Italic 12”.

    Declaration

    Swift

    @inlinable
    var font: String! { get nonmutating set }
  • fontDesc Extension method

    Gets the currently-selected font.

    Note that this can be a different string than what you set with gtk_font_chooser_set_font(), as the font chooser widget may normalize font names and thus return a string with a different structure. For example, “Helvetica Italic Bold 12” could be normalized to “Helvetica Bold Italic 12”.

    Use pango_font_description_equal() if you want to compare two font descriptions.

    Declaration

    Swift

    @inlinable
    var fontDesc: Pango.FontDescriptionRef! { get nonmutating set }
  • fontFace Extension method

    Gets the PangoFontFace representing the selected font group details (i.e. family, slant, weight, width, etc).

    If the selected font is not installed, returns nil.

    Declaration

    Swift

    @inlinable
    var fontFace: Pango.FontFaceRef! { get }
  • fontFamily Extension method

    Gets the PangoFontFamily representing the selected font family. Font families are a collection of font faces.

    If the selected font is not installed, returns nil.

    Declaration

    Swift

    @inlinable
    var fontFamily: Pango.FontFamilyRef! { get }
  • fontFeatures Extension method

    Gets the currently-selected font features.

    Declaration

    Swift

    @inlinable
    var fontFeatures: String! { get }
  • fontMap Extension method

    Gets the custom font map of this font chooser widget, or nil if it does not have one.

    Declaration

    Swift

    @inlinable
    var fontMap: Pango.FontMapRef! { get nonmutating set }
  • fontSize Extension method

    The selected font size.

    Declaration

    Swift

    @inlinable
    var fontSize: Int { get }
  • language Extension method

    The language for which the GtkFontChooser:font-features were selected, in a format that is compatible with CSS and with Pango attributes.

    Declaration

    Swift

    @inlinable
    var language: String! { get nonmutating set }
  • level Extension method

    The level of granularity to offer for selecting fonts.

    Declaration

    Swift

    @inlinable
    var level: FontChooserLevel { get nonmutating set }
  • previewText Extension method

    Gets the text displayed in the preview area.

    Declaration

    Swift

    @inlinable
    var previewText: String! { get nonmutating set }
  • showPreviewEntry Extension method

    Returns whether the preview entry is shown or not.

    Declaration

    Swift

    @inlinable
    var showPreviewEntry: Bool { get nonmutating set }