ComboBoxProtocol

public protocol ComboBoxProtocol : BinProtocol, CellEditableProtocol, CellLayoutProtocol

A GtkComboBox is a widget that allows the user to choose from a list of valid choices. The GtkComboBox displays the selected choice. When activated, the GtkComboBox displays a popup which allows the user to make a new choice. The style in which the selected value is displayed, and the style of the popup is determined by the current theme. It may be similar to a Windows-style combo box.

The GtkComboBox uses the model-view pattern; the list of valid choices is specified in the form of a tree model, and the display of the choices can be adapted to the data in the model by using cell renderers, as you would in a tree view. This is possible since GtkComboBox implements the GtkCellLayout interface. The tree model holding the valid choices is not restricted to a flat list, it can be a real tree, and the popup will reflect the tree structure.

To allow the user to enter values not in the model, the “has-entry” property allows the GtkComboBox to contain a GtkEntry. This entry can be accessed by calling gtk_bin_get_child() on the combo box.

For a simple list of textual choices, the model-view API of GtkComboBox can be a bit overwhelming. In this case, GtkComboBoxText offers a simple alternative. Both GtkComboBox and GtkComboBoxText can contain an entry.

CSS nodes

(plain Language Example):

combobox
├── box.linked
│   ╰── button.combo
│       ╰── box
│           ├── cellview
│           ╰── arrow
╰── window.popup

A normal combobox contains a box with the .linked class, a button with the .combo class and inside those buttons, there are a cellview and an arrow.

(plain Language Example):

combobox
├── box.linked
│   ├── entry.combo
│   ╰── button.combo
│       ╰── box
│           ╰── arrow
╰── window.popup

A GtkComboBox with an entry has a single CSS node with name combobox. It contains a box with the .linked class. That box contains an entry and a button, both with the .combo class added. The button also contains another node with name arrow.

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

  • ptr

    Untyped pointer to the underlying GtkComboBox instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkComboBox instance.

    Default Implementation

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

    Declaration

    Swift

    var combo_box_ptr: UnsafeMutablePointer<GtkComboBox>! { get }
  • Required Initialiser for types conforming to ComboBoxProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

ComboBox Class

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Parameters

    property

    the property to get the value for

    Return Value

    the value of the named property

ComboBox signals

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

    Declaration

    Swift

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

    Declaration

    Swift

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

  • onChanged(flags:handler:) Extension method

    The changed signal is emitted when the active item is changed. The can be due to the user selecting a different item from the list, or due to a call to gtk_combo_box_set_active_iter(). It will also be emitted while typing into the entry of a combo box with an entry.

    Note

    This represents the underlying changed signal

    Declaration

    Swift

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

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    handler

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

  • changedSignal Extension method

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

    Declaration

    Swift

    static var changedSignal: ComboBoxSignalName { get }
  • For combo boxes that are created with an entry (See GtkComboBox:has-entry).

    A signal which allows you to change how the text displayed in a combo box’s entry is displayed.

    Connect a signal handler which returns an allocated string representing path. That string will then be used to set the text in the combo box’s entry. The default signal handler uses the text from the GtkComboBoxentry-text-column model column.

    Here’s an example signal handler which fetches data from the model and displays it in the entry. (C Language Example):

    static gchar*
    format_entry_text_callback (GtkComboBox *combo,
                                const gchar *path,
                                gpointer     user_data)
    {
      GtkTreeIter iter;
      GtkTreeModel model;
      gdouble      value;
    
      model = gtk_combo_box_get_model (combo);
    
      gtk_tree_model_get_iter_from_string (model, &iter, path);
      gtk_tree_model_get (model, &iter,
                          THE_DOUBLE_VALUE_COLUMN, &value,
                          -1);
    
      return g_strdup_printf ("%g", value);
    }
    

    Note

    This represents the underlying format-entry-text signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onFormatEntryText(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ComboBoxRef, _ path: String) -> String) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    path

    the GtkTreePath string from the combo box’s current model to format text for

    handler

    a newly allocated string representing path for the current GtkComboBox model. Run the given callback whenever the formatEntryText signal is emitted

  • formatEntryTextSignal Extension method

    Typed format-entry-text signal for using the connect(signal:) methods

    Declaration

    Swift

    static var formatEntryTextSignal: ComboBoxSignalName { get }
  • onMoveActive(flags:handler:) Extension method

    The move-active signal is a keybinding signal which gets emitted to move the active selection.

    Note

    This represents the underlying move-active signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onMoveActive(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ComboBoxRef, _ scrollType: ScrollType) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    scrollType

    a GtkScrollType

    handler

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

  • moveActiveSignal Extension method

    Typed move-active signal for using the connect(signal:) methods

    Declaration

    Swift

    static var moveActiveSignal: ComboBoxSignalName { get }
  • onPopdown(flags:handler:) Extension method

    The popdown signal is a keybinding signal which gets emitted to popdown the combo box list.

    The default bindings for this signal are Alt+Up and Escape.

    Note

    This represents the underlying popdown signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onPopdown(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ComboBoxRef) -> Bool) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    handler

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

  • popdownSignal Extension method

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

    Declaration

    Swift

    static var popdownSignal: ComboBoxSignalName { get }
  • onPopup(flags:handler:) Extension method

    The popup signal is a keybinding signal which gets emitted to popup the combo box list.

    The default binding for this signal is Alt+Down.

    Note

    This represents the underlying popup signal

    Declaration

    Swift

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

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    handler

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

  • popupSignal Extension method

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

    Declaration

    Swift

    static var popupSignal: ComboBoxSignalName { 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::active signal

    Declaration

    Swift

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

  • notifyActiveSignal Extension method

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

    Declaration

    Swift

    static var notifyActiveSignal: ComboBoxSignalName { 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::active-id signal

    Declaration

    Swift

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

  • notifyActiveIDSignal Extension method

    Typed notify::active-id signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyActiveIDSignal: ComboBoxSignalName { 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::add-tearoffs signal

    Declaration

    Swift

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

  • notifyAddTearoffsSignal Extension method

    Typed notify::add-tearoffs signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyAddTearoffsSignal: ComboBoxSignalName { 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::button-sensitivity signal

    Declaration

    Swift

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

  • Typed notify::button-sensitivity signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyButtonSensitivitySignal: ComboBoxSignalName { 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::cell-area signal

    Declaration

    Swift

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

  • notifyCellAreaSignal Extension method

    Typed notify::cell-area signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyCellAreaSignal: ComboBoxSignalName { 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::column-span-column signal

    Declaration

    Swift

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

  • notifyColumnSpanColumnSignal Extension method

    Typed notify::column-span-column signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyColumnSpanColumnSignal: ComboBoxSignalName { 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::entry-text-column signal

    Declaration

    Swift

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

  • notifyEntryTextColumnSignal Extension method

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

    Declaration

    Swift

    static var notifyEntryTextColumnSignal: ComboBoxSignalName { 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::has-entry signal

    Declaration

    Swift

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

  • notifyHasEntrySignal Extension method

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

    Declaration

    Swift

    static var notifyHasEntrySignal: ComboBoxSignalName { 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::has-frame signal

    Declaration

    Swift

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

  • notifyHasFrameSignal Extension method

    Typed notify::has-frame signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyHasFrameSignal: ComboBoxSignalName { 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::id-column signal

    Declaration

    Swift

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

  • notifyIDColumnSignal Extension method

    Typed notify::id-column signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyIDColumnSignal: ComboBoxSignalName { 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::model signal

    Declaration

    Swift

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

  • notifyModelSignal Extension method

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

    Declaration

    Swift

    static var notifyModelSignal: ComboBoxSignalName { 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::popup-fixed-width signal

    Declaration

    Swift

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

  • notifyPopupFixedWidthSignal Extension method

    Typed notify::popup-fixed-width signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyPopupFixedWidthSignal: ComboBoxSignalName { 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::popup-shown signal

    Declaration

    Swift

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

  • notifyPopupShownSignal Extension method

    Typed notify::popup-shown signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyPopupShownSignal: ComboBoxSignalName { 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::row-span-column signal

    Declaration

    Swift

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

  • notifyRowSpanColumnSignal Extension method

    Typed notify::row-span-column signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyRowSpanColumnSignal: ComboBoxSignalName { 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::tearoff-title signal

    Declaration

    Swift

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

  • notifyTearoffTitleSignal Extension method

    Typed notify::tearoff-title signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyTearoffTitleSignal: ComboBoxSignalName { 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::wrap-width signal

    Declaration

    Swift

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

  • notifyWrapWidthSignal Extension method

    Typed notify::wrap-width signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyWrapWidthSignal: ComboBoxSignalName { get }

ComboBox Class: ComboBoxProtocol extension (methods and fields)

  • getActive() Extension method

    Returns the index of the currently active item, or -1 if there’s no active item. If the model is a non-flat treemodel, and the active item is not an immediate child of the root of the tree, this function returns gtk_tree_path_get_indices (path)[0], where path is the GtkTreePath of the active item.

    Declaration

    Swift

    @inlinable
    func getActive() -> Int
  • getActiveID() Extension method

    Returns the ID of the active row of combo_box. This value is taken from the active row and the column specified by the GtkComboBox:id-column property of combo_box (see gtk_combo_box_set_id_column()).

    The returned value is an interned string which means that you can compare the pointer by value to other interned strings and that you must not free it.

    If the GtkComboBox:id-column property of combo_box is not set, or if no row is active, or if the active row has a nil ID value, then nil is returned.

    Declaration

    Swift

    @inlinable
    func getActiveID() -> String!
  • getActive(iter:) Extension method

    Sets iter to point to the currently active item, if any item is active. Otherwise, iter is left unchanged.

    Declaration

    Swift

    @inlinable
    func getActive<TreeIterT>(iter: TreeIterT) -> Bool where TreeIterT : TreeIterProtocol
  • getAddTearoffs() Extension method

    Gets the current value of the :add-tearoffs property.

    get_add_tearoffs is deprecated: This method is deprecated.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getAddTearoffs() -> Bool
  • getButtonSensitivity() Extension method

    Returns whether the combo box sets the dropdown button sensitive or not when there are no items in the model.

    Declaration

    Swift

    @inlinable
    func getButtonSensitivity() -> GtkSensitivityType
  • getColumnSpanColumn() Extension method

    Returns the column with column span information for combo_box.

    Declaration

    Swift

    @inlinable
    func getColumnSpanColumn() -> Int
  • getEntryTextColumn() Extension method

    Returns the column which combo_box is using to get the strings from to display in the internal entry.

    Declaration

    Swift

    @inlinable
    func getEntryTextColumn() -> Int
  • getFocusOnClick() Extension method

    Returns whether the combo box grabs focus when it is clicked with the mouse. See gtk_combo_box_set_focus_on_click().

    get_focus_on_click is deprecated: Use gtk_widget_get_focus_on_click() instead

    Declaration

    Swift

    @available(*, deprecated)
    @available(*, deprecated)
    @inlinable
    func getFocusOnClick() -> Bool
  • getHasEntry() Extension method

    Returns whether the combo box has an entry.

    Declaration

    Swift

    @inlinable
    func getHasEntry() -> Bool
  • getIDColumn() Extension method

    Returns the column which combo_box is using to get string IDs for values from.

    Declaration

    Swift

    @inlinable
    func getIDColumn() -> Int
  • getModel() Extension method

    Returns the GtkTreeModel which is acting as data source for combo_box.

    Declaration

    Swift

    @inlinable
    func getModel() -> TreeModelRef!
  • getPopupAccessible() Extension method

    Gets the accessible object corresponding to the combo box’s popup.

    This function is mostly intended for use by accessibility technologies; applications should have little use for it.

    Declaration

    Swift

    @inlinable
    func getPopupAccessible() -> Atk.ObjectRef!
  • getPopupFixedWidth() Extension method

    Gets whether the popup uses a fixed width matching the allocated width of the combo box.

    Declaration

    Swift

    @inlinable
    func getPopupFixedWidth() -> Bool
  • getRowSeparatorFunc() Extension method

    Returns the current row separator function.

    Declaration

    Swift

    @inlinable
    func getRowSeparatorFunc() -> GtkTreeViewRowSeparatorFunc!
  • getRowSpanColumn() Extension method

    Returns the column with row span information for combo_box.

    Declaration

    Swift

    @inlinable
    func getRowSpanColumn() -> Int
  • getTitle() Extension method

    Gets the current title of the menu in tearoff mode. See gtk_combo_box_set_add_tearoffs().

    get_title is deprecated: This method is deprecated.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getTitle() -> String!
  • getWrapWidth() Extension method

    Returns the wrap width which is used to determine the number of columns for the popup menu. If the wrap width is larger than 1, the combo box is in table mode.

    Declaration

    Swift

    @inlinable
    func getWrapWidth() -> Int
  • popdown() Extension method

    Hides the menu or dropdown list of combo_box.

    This function is mostly intended for use by accessibility technologies; applications should have little use for it.

    Declaration

    Swift

    @inlinable
    func popdown()
  • popup() Extension method

    Pops up the menu or dropdown list of combo_box.

    This function is mostly intended for use by accessibility technologies; applications should have little use for it.

    Before calling this, combo_box must be mapped, or nothing will happen.

    Declaration

    Swift

    @inlinable
    func popup()
  • popupFor(device:) Extension method

    Pops up the menu or dropdown list of combo_box, the popup window will be grabbed so only device and its associated pointer/keyboard are the only GdkDevices able to send events to it.

    Declaration

    Swift

    @inlinable
    func popupFor<DeviceT>(device: DeviceT) where DeviceT : DeviceProtocol
  • setActive(index:) Extension method

    Sets the active item of combo_box to be the item at index.

    Declaration

    Swift

    @inlinable
    func setActive(index: Int)
  • set(activeID:) Extension method

    Changes the active row of combo_box to the one that has an ID equal to active_id, or unsets the active row if active_id is nil. Rows having a nil ID string cannot be made active by this function.

    If the GtkComboBox:id-column property of combo_box is unset or if no row has the given ID then the function does nothing and returns false.

    Declaration

    Swift

    @inlinable
    func set(activeID: UnsafePointer<gchar>? = nil) -> Bool
  • setActive(iter:) Extension method

    Sets the current active item to be the one referenced by iter, or unsets the active item if iter is nil.

    Declaration

    Swift

    @inlinable
    func setActive(iter: TreeIterRef? = nil)
  • setActive(iter:) Extension method

    Sets the current active item to be the one referenced by iter, or unsets the active item if iter is nil.

    Declaration

    Swift

    @inlinable
    func setActive<TreeIterT>(iter: TreeIterT?) where TreeIterT : TreeIterProtocol
  • set(addTearoffs:) Extension method

    Sets whether the popup menu should have a tearoff menu item.

    set_add_tearoffs is deprecated: This method is deprecated.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(addTearoffs: Bool)
  • setButton(sensitivity:) Extension method

    Sets whether the dropdown button of the combo box should be always sensitive (GTK_SENSITIVITY_ON), never sensitive (GTK_SENSITIVITY_OFF) or only if there is at least one item to display (GTK_SENSITIVITY_AUTO).

    Declaration

    Swift

    @inlinable
    func setButton(sensitivity: GtkSensitivityType)
  • Sets the column with column span information for combo_box to be column_span. The column span column contains integers which indicate how many columns an item should span.

    Declaration

    Swift

    @inlinable
    func setColumnSpanColumn(columnSpan: Int)
  • setEntry(textColumn:) Extension method

    Sets the model column which combo_box should use to get strings from to be text_column. The column text_column in the model of combo_box must be of type G_TYPE_STRING.

    This is only relevant if combo_box has been created with GtkComboBox:has-entry as true.

    Declaration

    Swift

    @inlinable
    func setEntry(textColumn: Int)
  • set(focusOnClick:) Extension method

    Sets whether the combo box will grab focus when it is clicked with the mouse. Making mouse clicks not grab focus is useful in places like toolbars where you don’t want the keyboard focus removed from the main area of the application.

    set_focus_on_click is deprecated: Use gtk_widget_set_focus_on_click() instead

    Declaration

    Swift

    @available(*, deprecated)
    @available(*, deprecated)
    @inlinable
    func set(focusOnClick: Bool)
  • set(idColumn:) Extension method

    Sets the model column which combo_box should use to get string IDs for values from. The column id_column in the model of combo_box must be of type G_TYPE_STRING.

    Declaration

    Swift

    @inlinable
    func set(idColumn: Int)
  • set(model:) Extension method

    Sets the model used by combo_box to be model. Will unset a previously set model (if applicable). If model is nil, then it will unset the model.

    Note that this function does not clear the cell renderers, you have to call gtk_cell_layout_clear() yourself if you need to set up different cell renderers for the new model.

    Declaration

    Swift

    @inlinable
    func set(model: TreeModelRef? = nil)
  • set(model:) Extension method

    Sets the model used by combo_box to be model. Will unset a previously set model (if applicable). If model is nil, then it will unset the model.

    Note that this function does not clear the cell renderers, you have to call gtk_cell_layout_clear() yourself if you need to set up different cell renderers for the new model.

    Declaration

    Swift

    @inlinable
    func set<TreeModelT>(model: TreeModelT?) where TreeModelT : TreeModelProtocol
  • setPopupFixedWidth(fixed:) Extension method

    Specifies whether the popup’s width should be a fixed width matching the allocated width of the combo box.

    Declaration

    Swift

    @inlinable
    func setPopupFixedWidth(fixed: Bool)
  • Sets the row separator function, which is used to determine whether a row should be drawn as a separator. If the row separator function is nil, no separators are drawn. This is the default value.

    Declaration

    Swift

    @inlinable
    func setRowSeparatorFunc(func: GtkTreeViewRowSeparatorFunc?, data: gpointer! = nil, destroy: GDestroyNotify? = nil)
  • setRowSpanColumn(rowSpan:) Extension method

    Sets the column with row span information for combo_box to be row_span. The row span column contains integers which indicate how many rows an item should span.

    Declaration

    Swift

    @inlinable
    func setRowSpanColumn(rowSpan: Int)
  • set(title:) Extension method

    Sets the menu’s title in tearoff mode.

    set_title is deprecated: This method is deprecated.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(title: UnsafePointer<gchar>!)
  • setWrap(width:) Extension method

    Sets the wrap width of combo_box to be width. The wrap width is basically the preferred number of columns when you want the popup to be layed out in a table.

    Declaration

    Swift

    @inlinable
    func setWrap(width: Int)
  • active Extension method

    The item which is currently active. If the model is a non-flat treemodel, and the active item is not an immediate child of the root of the tree, this property has the value gtk_tree_path_get_indices (path)[0], where path is the GtkTreePath of the active item.

    Declaration

    Swift

    @inlinable
    var active: Int { get nonmutating set }
  • activeID Extension method

    Returns the ID of the active row of combo_box. This value is taken from the active row and the column specified by the GtkComboBox:id-column property of combo_box (see gtk_combo_box_set_id_column()).

    The returned value is an interned string which means that you can compare the pointer by value to other interned strings and that you must not free it.

    If the GtkComboBox:id-column property of combo_box is not set, or if no row is active, or if the active row has a nil ID value, then nil is returned.

    Declaration

    Swift

    @inlinable
    var activeID: String! { get nonmutating set }
  • addTearoffs Extension method

    Gets the current value of the :add-tearoffs property.

    get_add_tearoffs is deprecated: This method is deprecated.

    Declaration

    Swift

    @inlinable
    var addTearoffs: Bool { get nonmutating set }
  • buttonSensitivity Extension method

    Returns whether the combo box sets the dropdown button sensitive or not when there are no items in the model.

    Declaration

    Swift

    @inlinable
    var buttonSensitivity: GtkSensitivityType { get nonmutating set }
  • columnSpanColumn Extension method

    Returns the column with column span information for combo_box.

    Declaration

    Swift

    @inlinable
    var columnSpanColumn: Int { get nonmutating set }
  • entryTextColumn Extension method

    Returns the column which combo_box is using to get the strings from to display in the internal entry.

    Declaration

    Swift

    @inlinable
    var entryTextColumn: Int { get nonmutating set }
  • focusOnClick Extension method

    Returns whether the combo box grabs focus when it is clicked with the mouse. See gtk_combo_box_set_focus_on_click().

    get_focus_on_click is deprecated: Use gtk_widget_get_focus_on_click() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    var focusOnClick: Bool { get nonmutating set }
  • hasEntry Extension method

    Returns whether the combo box has an entry.

    Declaration

    Swift

    @inlinable
    var hasEntry: Bool { get }
  • idColumn Extension method

    Returns the column which combo_box is using to get string IDs for values from.

    Declaration

    Swift

    @inlinable
    var idColumn: Int { get nonmutating set }
  • model Extension method

    The model from which the combo box takes the values shown in the list.

    Declaration

    Swift

    @inlinable
    var model: TreeModelRef! { get nonmutating set }
  • popupAccessible Extension method

    Gets the accessible object corresponding to the combo box’s popup.

    This function is mostly intended for use by accessibility technologies; applications should have little use for it.

    Declaration

    Swift

    @inlinable
    var popupAccessible: Atk.ObjectRef! { get }
  • popupFixedWidth Extension method

    Gets whether the popup uses a fixed width matching the allocated width of the combo box.

    Declaration

    Swift

    @inlinable
    var popupFixedWidth: Bool { get nonmutating set }
  • rowSeparatorFunc Extension method

    Returns the current row separator function.

    Declaration

    Swift

    @inlinable
    var rowSeparatorFunc: GtkTreeViewRowSeparatorFunc! { get }
  • rowSpanColumn Extension method

    Returns the column with row span information for combo_box.

    Declaration

    Swift

    @inlinable
    var rowSpanColumn: Int { get nonmutating set }
  • title Extension method

    Gets the current title of the menu in tearoff mode. See gtk_combo_box_set_add_tearoffs().

    get_title is deprecated: This method is deprecated.

    Declaration

    Swift

    @inlinable
    var title: String! { get nonmutating set }
  • wrapWidth Extension method

    Returns the wrap width which is used to determine the number of columns for the popup menu. If the wrap width is larger than 1, the combo box is in table mode.

    Declaration

    Swift

    @inlinable
    var wrapWidth: Int { get nonmutating set }
  • parentInstance Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var parentInstance: GtkBin { get }