ExpanderProtocol

public protocol ExpanderProtocol : BinProtocol

A GtkExpander allows the user to hide or show its child by clicking on an expander triangle similar to the triangles used in a GtkTreeView.

Normally you use an expander as you would use any other descendant of GtkBin; you create the child widget and use gtk_container_add() to add it to the expander. When the expander is toggled, it will take care of showing and hiding the child automatically.

Special Usage

There are situations in which you may prefer to show and hide the expanded widget yourself, such as when you want to actually create the widget at expansion time. In this case, create a GtkExpander but do not add a child to it. The expander widget has an GtkExpander:expanded property which can be used to monitor its expansion state. You should watch this property with a signal connection as follows:

(C Language Example):

static void
expander_callback (GObject    *object,
                   GParamSpec *param_spec,
                   gpointer    user_data)
{
  GtkExpander *expander;

  expander = GTK_EXPANDER (object);

  if (gtk_expander_get_expanded (expander))
    {
      // Show or create widgets
    }
  else
    {
      // Hide or destroy widgets
    }
}

static void
create_expander (void)
{
  GtkWidget *expander = gtk_expander_new_with_mnemonic ("_More Options");
  g_signal_connect (expander, "notify::expanded",
                    G_CALLBACK (expander_callback), NULL);

  // ...
}

GtkExpander as GtkBuildable

The GtkExpander implementation of the GtkBuildable interface supports placing a child in the label position by specifying “label” as the “type” attribute of a <child> element. A normal content child can be specified without specifying a <child> type attribute.

An example of a UI definition fragment with GtkExpander:

<object class="GtkExpander">
  <child type="label">
    <object class="GtkLabel" id="expander-label"/>
  </child>
  <child>
    <object class="GtkEntry" id="expander-content"/>
  </child>
</object>

CSS nodes

(plain Language Example):

expander
├── title
│   ├── arrow
│   ╰── <label widget>
╰── <child>

GtkExpander has three CSS nodes, the main node with the name expander, a subnode with name title and node below it with name arrow. The arrow of an expander that is showing its child gets the :checked pseudoclass added to it.

The ExpanderProtocol protocol exposes the methods and properties of an underlying GtkExpander 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 Expander. Alternatively, use ExpanderRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkExpander instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkExpander instance.

    Default Implementation

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

    Declaration

    Swift

    var expander_ptr: UnsafeMutablePointer<GtkExpander>! { get }
  • Required Initialiser for types conforming to ExpanderProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

Expander Class

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

    Declaration

    Swift

    @discardableResult
    @inlinable
    func bind<Q, T>(property source_property: ExpanderPropertyName, 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 Expander property

    Declaration

    Swift

    @inlinable
    func get(property: ExpanderPropertyName) -> 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 Expander property. Note that this will only have an effect on properties that are writable and not construct-only!

    Declaration

    Swift

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

    Parameters

    property

    the property to get the value for

    Return Value

    the value of the named property

Expander signals

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

    Declaration

    Swift

    @discardableResult
    @inlinable
    func connect(signal s: ExpanderSignalName, 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 ExpanderSignalName signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func connect(signal s: ExpanderSignalName, 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)

  • onActivate(flags:handler:) Extension method

    Note

    This represents the underlying activate signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onActivate(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ExpanderRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    handler

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

  • activateSignal Extension method

    Typed activate signal for using the connect(signal:) methods

    Declaration

    Swift

    static var activateSignal: ExpanderSignalName { 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::expanded signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyExpanded(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ExpanderRef, _ 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 notifyExpanded signal is emitted

  • notifyExpandedSignal Extension method

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

    Declaration

    Swift

    static var notifyExpandedSignal: ExpanderSignalName { 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::label signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyLabel(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ExpanderRef, _ 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 notifyLabel signal is emitted

  • notifyLabelSignal Extension method

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

    Declaration

    Swift

    static var notifyLabelSignal: ExpanderSignalName { 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::label-fill signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyLabelFill(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ExpanderRef, _ 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 notifyLabelFill signal is emitted

  • notifyLabelFillSignal Extension method

    Typed notify::label-fill signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyLabelFillSignal: ExpanderSignalName { 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::label-widget signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyLabelWidget(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ExpanderRef, _ 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 notifyLabelWidget signal is emitted

  • notifyLabelWidgetSignal Extension method

    Typed notify::label-widget signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyLabelWidgetSignal: ExpanderSignalName { 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::resize-toplevel signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyResizeToplevel(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ExpanderRef, _ 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 notifyResizeToplevel signal is emitted

  • notifyResizeToplevelSignal Extension method

    Typed notify::resize-toplevel signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyResizeToplevelSignal: ExpanderSignalName { 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::spacing signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifySpacing(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ExpanderRef, _ 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 notifySpacing signal is emitted

  • notifySpacingSignal Extension method

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

    Declaration

    Swift

    static var notifySpacingSignal: ExpanderSignalName { 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::use-markup signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyUseMarkup(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ExpanderRef, _ 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 notifyUseMarkup signal is emitted

  • notifyUseMarkupSignal Extension method

    Typed notify::use-markup signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyUseMarkupSignal: ExpanderSignalName { 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::use-underline signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyUseUnderline(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ExpanderRef, _ 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 notifyUseUnderline signal is emitted

  • notifyUseUnderlineSignal Extension method

    Typed notify::use-underline signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyUseUnderlineSignal: ExpanderSignalName { get }

Expander Class: ExpanderProtocol extension (methods and fields)

  • getExpanded() Extension method

    Queries a GtkExpander and returns its current state. Returns true if the child widget is revealed.

    See gtk_expander_set_expanded().

    Declaration

    Swift

    @inlinable
    func getExpanded() -> Bool
  • getLabel() Extension method

    Fetches the text from a label widget including any embedded underlines indicating mnemonics and Pango markup, as set by gtk_expander_set_label(). If the label text has not been set the return value will be nil. This will be the case if you create an empty button with gtk_button_new() to use as a container.

    Note that this function behaved differently in versions prior to 2.14 and used to return the label text stripped of embedded underlines indicating mnemonics and Pango markup. This problem can be avoided by fetching the label text directly from the label widget.

    Declaration

    Swift

    @inlinable
    func getLabel() -> String!
  • getLabelFill() Extension method

    Returns whether the label widget will fill all available horizontal space allocated to expander.

    Declaration

    Swift

    @inlinable
    func getLabelFill() -> Bool
  • getLabelWidget() Extension method

    Retrieves the label widget for the frame. See gtk_expander_set_label_widget().

    Declaration

    Swift

    @inlinable
    func getLabelWidget() -> WidgetRef!
  • getResizeToplevel() Extension method

    Returns whether the expander will resize the toplevel widget containing the expander upon resizing and collpasing.

    Declaration

    Swift

    @inlinable
    func getResizeToplevel() -> Bool
  • getSpacing() Extension method

    Gets the value set by gtk_expander_set_spacing().

    get_spacing is deprecated: Use margins on the child instead.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getSpacing() -> Int
  • getUseMarkup() Extension method

    Returns whether the label’s text is interpreted as marked up with the Pango text markup language. See gtk_expander_set_use_markup().

    Declaration

    Swift

    @inlinable
    func getUseMarkup() -> Bool
  • getUseUnderline() Extension method

    Returns whether an embedded underline in the expander label indicates a mnemonic. See gtk_expander_set_use_underline().

    Declaration

    Swift

    @inlinable
    func getUseUnderline() -> Bool
  • set(expanded:) Extension method

    Sets the state of the expander. Set to true, if you want the child widget to be revealed, and false if you want the child widget to be hidden.

    Declaration

    Swift

    @inlinable
    func set(expanded: Bool)
  • set(label:) Extension method

    Sets the text of the label of the expander to label.

    This will also clear any previously set labels.

    Declaration

    Swift

    @inlinable
    func set(label: UnsafePointer<gchar>? = nil)
  • set(labelFill:) Extension method

    Sets whether the label widget should fill all available horizontal space allocated to expander.

    Note that this function has no effect since 3.20.

    Declaration

    Swift

    @inlinable
    func set(labelFill: Bool)
  • set(labelWidget:) Extension method

    Set the label widget for the expander. This is the widget that will appear embedded alongside the expander arrow.

    Declaration

    Swift

    @inlinable
    func set(labelWidget: WidgetRef? = nil)
  • set(labelWidget:) Extension method

    Set the label widget for the expander. This is the widget that will appear embedded alongside the expander arrow.

    Declaration

    Swift

    @inlinable
    func set<WidgetT>(labelWidget: WidgetT?) where WidgetT : WidgetProtocol
  • set(resizeToplevel:) Extension method

    Sets whether the expander will resize the toplevel widget containing the expander upon resizing and collpasing.

    Declaration

    Swift

    @inlinable
    func set(resizeToplevel: Bool)
  • set(spacing:) Extension method

    Sets the spacing field of expander, which is the number of pixels to place between expander and the child.

    set_spacing is deprecated: Use margins on the child instead.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(spacing: Int)
  • set(useMarkup:) Extension method

    Sets whether the text of the label contains markup in Pango’s text markup language. See gtk_label_set_markup().

    Declaration

    Swift

    @inlinable
    func set(useMarkup: Bool)
  • set(useUnderline:) Extension method

    If true, an underline in the text of the expander label indicates the next character should be used for the mnemonic accelerator key.

    Declaration

    Swift

    @inlinable
    func set(useUnderline: Bool)
  • expanded Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var expanded: Bool { get nonmutating set }
  • label Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var label: String! { get nonmutating set }
  • labelFill Extension method

    Returns whether the label widget will fill all available horizontal space allocated to expander.

    Declaration

    Swift

    @inlinable
    var labelFill: Bool { get nonmutating set }
  • labelWidget Extension method

    Retrieves the label widget for the frame. See gtk_expander_set_label_widget().

    Declaration

    Swift

    @inlinable
    var labelWidget: WidgetRef! { get nonmutating set }
  • resizeToplevel Extension method

    Returns whether the expander will resize the toplevel widget containing the expander upon resizing and collpasing.

    Declaration

    Swift

    @inlinable
    var resizeToplevel: Bool { get nonmutating set }
  • spacing Extension method

    Space to put between the label and the child when the expander is expanded.

    spacing is deprecated: This property is deprecated and ignored. Use margins on the child instead.

    Declaration

    Swift

    @inlinable
    var spacing: Int { get nonmutating set }
  • useMarkup Extension method

    Returns whether the label’s text is interpreted as marked up with the Pango text markup language. See gtk_expander_set_use_markup().

    Declaration

    Swift

    @inlinable
    var useMarkup: Bool { get nonmutating set }
  • useUnderline Extension method

    Returns whether an embedded underline in the expander label indicates a mnemonic. See gtk_expander_set_use_underline().

    Declaration

    Swift

    @inlinable
    var useUnderline: Bool { get nonmutating set }
  • bin Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var bin: GtkBin { get }