ActionProtocol

public protocol ActionProtocol : ObjectProtocol, BuildableProtocol

> In GTK+ 3.10, GtkAction has been deprecated. Use GAction > instead, and associate actions with GtkActionable widgets. Use > GMenuModel for creating menus with gtk_menu_new_from_model().

Actions represent operations that the user can be perform, along with some information how it should be presented in the interface. Each action provides methods to create icons, menu items and toolbar items representing itself.

As well as the callback that is called when the action gets activated, the following also gets associated with the action:

  • a name (not translated, for path lookup)

  • a label (translated, for display)

  • an accelerator

  • whether label indicates a stock id

  • a tooltip (optional, translated)

  • a toolbar label (optional, shorter than label)

The action will also have some state information:

  • visible (shown/hidden)

  • sensitive (enabled/disabled)

Apart from regular actions, there are toggle actions, which can be toggled between two states and radio actions, of which only one in a group can be in the “active” state. Other actions can be implemented as GtkAction subclasses.

Each action can have one or more proxy widgets. To act as an action proxy, widget needs to implement GtkActivatable interface. Proxies mirror the state of the action and should change when the action’s state changes. Properties that are always mirrored by proxies are GtkAction:sensitive and GtkAction:visible. GtkAction:gicon, GtkAction:icon-name, GtkAction:label, GtkAction:short-label and GtkAction:stock-id properties are only mirorred if proxy widget has GtkActivatable:use-action-appearance property set to true.

When the proxy is activated, it should activate its action.

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

  • ptr

    Untyped pointer to the underlying GtkAction instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkAction instance.

    Default Implementation

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

    Declaration

    Swift

    var action_ptr: UnsafeMutablePointer<GtkAction>! { get }
  • Required Initialiser for types conforming to ActionProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

Action Class

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Parameters

    property

    the property to get the value for

    Return Value

    the value of the named property

Action signals

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    The “activate” signal is emitted when the action is activated.

    Note

    This represents the underlying activate signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onActivate(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: ActionRef) -> 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: ActionSignalName { 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::action-group signal

    Declaration

    Swift

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

  • notifyActionGroupSignal Extension method

    Typed notify::action-group signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyActionGroupSignal: ActionSignalName { 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::always-show-image signal

    Declaration

    Swift

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

  • notifyAlwaysShowImageSignal Extension method

    Typed notify::always-show-image signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyAlwaysShowImageSignal: ActionSignalName { get }
  • onNotifyIcon(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::gicon signal

    Declaration

    Swift

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

  • notifyIconSignal Extension method

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

    Declaration

    Swift

    static var notifyIconSignal: ActionSignalName { 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::hide-if-empty signal

    Declaration

    Swift

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

  • notifyHideIfEmptySignal Extension method

    Typed notify::hide-if-empty signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyHideIfEmptySignal: ActionSignalName { 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::icon-name signal

    Declaration

    Swift

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

  • notifyIconNameSignal Extension method

    Typed notify::icon-name signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyIconNameSignal: ActionSignalName { 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::is-important signal

    Declaration

    Swift

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

  • notifyIsImportantSignal Extension method

    Typed notify::is-important signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyIsImportantSignal: ActionSignalName { 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: ActionRef, _ 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: ActionSignalName { get }
  • onNotifyName(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::name signal

    Declaration

    Swift

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

  • notifyNameSignal Extension method

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

    Declaration

    Swift

    static var notifyNameSignal: ActionSignalName { 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::sensitive signal

    Declaration

    Swift

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

  • notifySensitiveSignal Extension method

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

    Declaration

    Swift

    static var notifySensitiveSignal: ActionSignalName { 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::short-label signal

    Declaration

    Swift

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

  • notifyShortLabelSignal Extension method

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

    Declaration

    Swift

    static var notifyShortLabelSignal: ActionSignalName { 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::stock-id signal

    Declaration

    Swift

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

  • notifyStockIDSignal Extension method

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

    Declaration

    Swift

    static var notifyStockIDSignal: ActionSignalName { 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::tooltip signal

    Declaration

    Swift

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

  • notifyTooltipSignal Extension method

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

    Declaration

    Swift

    static var notifyTooltipSignal: ActionSignalName { 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::visible signal

    Declaration

    Swift

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

  • notifyVisibleSignal Extension method

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

    Declaration

    Swift

    static var notifyVisibleSignal: ActionSignalName { 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::visible-horizontal signal

    Declaration

    Swift

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

  • Typed notify::visible-horizontal signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyVisibleHorizontalSignal: ActionSignalName { 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::visible-overflown signal

    Declaration

    Swift

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

  • notifyVisibleOverflownSignal Extension method

    Typed notify::visible-overflown signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyVisibleOverflownSignal: ActionSignalName { 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::visible-vertical signal

    Declaration

    Swift

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

  • notifyVisibleVerticalSignal Extension method

    Typed notify::visible-vertical signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyVisibleVerticalSignal: ActionSignalName { get }

Action Class: ActionProtocol extension (methods and fields)

  • activate() Extension method

    Emits the “activate” signal on the specified action, if it isn’t insensitive. This gets called by the proxy widgets when they get activated.

    It can also be used to manually activate an action.

    activate is deprecated: Use g_action_group_activate_action() on a #GAction instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func activate()
  • blockActivate() Extension method

    Disable activation signals from the action

    This is needed when updating the state of your proxy GtkActivatable widget could result in calling gtk_action_activate(), this is a convenience function to avoid recursing in those cases (updating toggle state for instance).

    block_activate is deprecated: Use g_simple_action_set_enabled() to disable the

    GSimpleAction instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func blockActivate()
  • connectAccelerator() Extension method

    Installs the accelerator for action if action has an accel path and group. See gtk_action_set_accel_path() and gtk_action_set_accel_group()

    Since multiple proxies may independently trigger the installation of the accelerator, the action counts the number of times this function has been called and doesn’t remove the accelerator until gtk_action_disconnect_accelerator() has been called as many times.

    connect_accelerator is deprecated: Use #GAction and the accelerator group on an associated

    GtkMenu instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func connectAccelerator()
  • createIcon(iconSize:) Extension method

    This function is intended for use by action implementations to create icons displayed in the proxy widgets.

    create_icon is deprecated: Use g_menu_item_set_icon() to set an icon on a #GMenuItem, or gtk_container_add() to add a #GtkImage to a #GtkButton

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func createIcon(iconSize: GtkIconSize) -> WidgetRef!
  • createMenu() Extension method

    If action provides a GtkMenu widget as a submenu for the menu item or the toolbar item it creates, this function returns an instance of that menu.

    create_menu is deprecated: Use #GAction and #GMenuModel instead, and create a

    GtkMenu with gtk_menu_new_from_model()

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func createMenu() -> WidgetRef!
  • createMenuItem() Extension method

    Creates a menu item widget that proxies for the given action.

    create_menu_item is deprecated: Use g_menu_item_new() and associate it with a #GAction instead.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func createMenuItem() -> WidgetRef!
  • createToolItem() Extension method

    Creates a toolbar item widget that proxies for the given action.

    create_tool_item is deprecated: Use a #GtkToolItem and associate it with a #GAction using gtk_actionable_set_action_name() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func createToolItem() -> WidgetRef!
  • disconnectAccelerator() Extension method

    Undoes the effect of one call to gtk_action_connect_accelerator().

    disconnect_accelerator is deprecated: Use #GAction and the accelerator group on an associated

    GtkMenu instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func disconnectAccelerator()
  • getAccelClosure() Extension method

    Returns the accel closure for this action.

    get_accel_closure is deprecated: Use #GAction and #GtkMenu instead, which have no equivalent for getting the accel closure

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getAccelClosure() -> GLibObject.ClosureRef!
  • getAccelPath() Extension method

    Returns the accel path for this action.

    get_accel_path is deprecated: Use #GAction and the accelerator path on an associated

    GtkMenu instead

    Declaration

    Swift

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

    Returns whether action‘s menu item proxies will always show their image, if available.

    get_always_show_image is deprecated: Use g_menu_item_get_attribute_value() on a #GMenuItem instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getAlwaysShowImage() -> Bool
  • getIcon() Extension method

    Gets the gicon of action.

    get_gicon is deprecated: Use #GAction instead, and g_menu_item_get_attribute_value() to get an icon from a #GMenuItem associated with a #GAction

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getIcon() -> GIO.IconRef!
  • getIconName() Extension method

    Gets the icon name of action.

    get_icon_name is deprecated: Use #GAction instead, and g_menu_item_get_attribute_value() to get an icon from a #GMenuItem associated with a #GAction

    Declaration

    Swift

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

    Checks whether action is important or not

    get_is_important is deprecated: Use #GAction instead, and control and monitor whether labels are shown directly

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getIsImportant() -> Bool
  • getLabel() Extension method

    Gets the label text of action.

    get_label is deprecated: Use #GAction instead, and get a label from a menu item with g_menu_item_get_attribute_value(). For #GtkActionable widgets, use the widget-specific API to get a label

    Declaration

    Swift

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

    Returns the name of the action.

    get_name is deprecated: Use g_action_get_name() on a #GAction instead

    Declaration

    Swift

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

    Returns the proxy widgets for an action. See also gtk_activatable_get_related_action().

    get_proxies is deprecated: This method is deprecated.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getProxies() -> GLib.SListRef!
  • getSensitive() Extension method

    Returns whether the action itself is sensitive. Note that this doesn’t necessarily mean effective sensitivity. See gtk_action_is_sensitive() for that.

    get_sensitive is deprecated: Use g_action_get_enabled() on a #GAction instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getSensitive() -> Bool
  • getShortLabel() Extension method

    Gets the short label text of action.

    get_short_label is deprecated: Use #GAction instead, which has no equivalent of short labels

    Declaration

    Swift

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

    Gets the stock id of action.

    get_stock_id is deprecated: Use #GAction instead, which has no equivalent of stock items

    Declaration

    Swift

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

    Gets the tooltip text of action.

    get_tooltip is deprecated: Use #GAction instead, and get tooltips from associated

    GtkActionable widgets with gtk_widget_get_tooltip_text()

    Declaration

    Swift

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

    Returns whether the action itself is visible. Note that this doesn’t necessarily mean effective visibility. See gtk_action_is_sensitive() for that.

    get_visible is deprecated: Use #GAction instead, and control and monitor the state of

    GtkActionable widgets directly

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getVisible() -> Bool
  • getVisibleHorizontal() Extension method

    Checks whether action is visible when horizontal

    get_visible_horizontal is deprecated: Use #GAction instead, and control and monitor the visibility of associated widgets and menu items directly

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getVisibleHorizontal() -> Bool
  • getVisibleVertical() Extension method

    Checks whether action is visible when horizontal

    get_visible_vertical is deprecated: Use #GAction instead, and control and monitor the visibility of associated widgets and menu items directly

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getVisibleVertical() -> Bool
  • set(accelGroup:) Extension method

    Sets the GtkAccelGroup in which the accelerator for this action will be installed.

    set_accel_group is deprecated: Use #GAction and the accelerator group on an associated

    GtkMenu instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(accelGroup: AccelGroupRef? = nil)
  • set(accelGroup:) Extension method

    Sets the GtkAccelGroup in which the accelerator for this action will be installed.

    set_accel_group is deprecated: Use #GAction and the accelerator group on an associated

    GtkMenu instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set<AccelGroupT>(accelGroup: AccelGroupT?) where AccelGroupT : AccelGroupProtocol
  • set(accelPath:) Extension method

    Sets the accel path for this action. All proxy widgets associated with the action will have this accel path, so that their accelerators are consistent.

    Note that accel_path string will be stored in a GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with g_intern_static_string().

    set_accel_path is deprecated: Use #GAction and the accelerator path on an associated

    GtkMenu instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(accelPath: UnsafePointer<gchar>!)
  • Sets whether action‘s menu item proxies will ignore the GtkSettings:gtk-menu-images setting and always show their image, if available.

    Use this if the menu item would be useless or hard to use without their image.

    set_always_show_image is deprecated: Use g_menu_item_set_icon() on a #GMenuItem instead, if the item should have an image

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func setAlwaysShowImage(alwaysShow: Bool)
  • setIcon(icon:) Extension method

    Sets the icon of action.

    set_gicon is deprecated: Use #GAction instead, and g_menu_item_set_icon() to set an icon on a #GMenuItem associated with a #GAction, or gtk_container_add() to add a #GtkImage to a #GtkButton

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func setIcon<IconT>(icon: IconT) where IconT : IconProtocol
  • set(iconName:) Extension method

    Sets the icon name on action

    set_icon_name is deprecated: Use #GAction instead, and g_menu_item_set_icon() to set an icon on a #GMenuItem associated with a #GAction, or gtk_container_add() to add a #GtkImage to a #GtkButton

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(iconName: UnsafePointer<gchar>!)
  • set(isImportant:) Extension method

    Sets whether the action is important, this attribute is used primarily by toolbar items to decide whether to show a label or not.

    set_is_important is deprecated: Use #GAction instead, and control and monitor whether labels are shown directly

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(isImportant: Bool)
  • set(label:) Extension method

    Sets the label of action.

    set_label is deprecated: Use #GAction instead, and set a label on a menu item with g_menu_item_set_label(). For #GtkActionable widgets, use the widget-specific API to set a label

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(label: UnsafePointer<gchar>!)
  • set(sensitive:) Extension method

    Sets the :sensitive property of the action to sensitive. Note that this doesn’t necessarily mean effective sensitivity. See gtk_action_is_sensitive() for that.

    set_sensitive is deprecated: Use g_simple_action_set_enabled() on a #GSimpleAction instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(sensitive: Bool)
  • set(shortLabel:) Extension method

    Sets a shorter label text on action.

    set_short_label is deprecated: Use #GAction instead, which has no equivalent of short labels

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(shortLabel: UnsafePointer<gchar>!)
  • set(stockID:) Extension method

    Sets the stock id on action

    set_stock_id is deprecated: Use #GAction instead, which has no equivalent of stock items

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(stockID: UnsafePointer<gchar>!)
  • set(tooltip:) Extension method

    Sets the tooltip text on action

    set_tooltip is deprecated: Use #GAction instead, and set tooltips on associated

    GtkActionable widgets with gtk_widget_set_tooltip_text()

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(tooltip: UnsafePointer<gchar>!)
  • set(visible:) Extension method

    Sets the :visible property of the action to visible. Note that this doesn’t necessarily mean effective visibility. See gtk_action_is_visible() for that.

    set_visible is deprecated: Use #GAction instead, and control and monitor the state of

    GtkActionable widgets directly

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(visible: Bool)
  • set(visibleHorizontal:) Extension method

    Sets whether action is visible when horizontal

    set_visible_horizontal is deprecated: Use #GAction instead, and control and monitor the visibility of associated widgets and menu items directly

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(visibleHorizontal: Bool)
  • set(visibleVertical:) Extension method

    Sets whether action is visible when vertical

    set_visible_vertical is deprecated: Use #GAction instead, and control and monitor the visibility of associated widgets and menu items directly

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(visibleVertical: Bool)
  • unblockActivate() Extension method

    Reenable activation signals from the action

    unblock_activate is deprecated: Use g_simple_action_set_enabled() to enable the

    GSimpleAction instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func unblockActivate()
  • accelClosure Extension method

    Returns the accel closure for this action.

    get_accel_closure is deprecated: Use #GAction and #GtkMenu instead, which have no equivalent for getting the accel closure

    Declaration

    Swift

    @inlinable
    var accelClosure: GLibObject.ClosureRef! { get }
  • accelPath Extension method

    Returns the accel path for this action.

    get_accel_path is deprecated: Use #GAction and the accelerator path on an associated

    GtkMenu instead

    Declaration

    Swift

    @inlinable
    var accelPath: String! { get nonmutating set }
  • alwaysShowImage Extension method

    Returns whether action‘s menu item proxies will always show their image, if available.

    get_always_show_image is deprecated: Use g_menu_item_get_attribute_value() on a #GMenuItem instead

    Declaration

    Swift

    @inlinable
    var alwaysShowImage: Bool { get nonmutating set }
  • gicon Extension method

    The GIcon displayed in the GtkAction.

    Note that the stock icon is preferred, if the GtkAction:stock-id property holds the id of an existing stock icon.

    This is an appearance property and thus only applies if GtkActivatable:use-action-appearance is true.

    gicon is deprecated: Use the “icon” attribute on a #GMenuItem instead

    Declaration

    Swift

    @inlinable
    var gicon: GIO.IconRef! { get nonmutating set }
  • iconName Extension method

    Gets the icon name of action.

    get_icon_name is deprecated: Use #GAction instead, and g_menu_item_get_attribute_value() to get an icon from a #GMenuItem associated with a #GAction

    Declaration

    Swift

    @inlinable
    var iconName: String! { get nonmutating set }
  • isImportant Extension method

    Checks whether action is important or not

    get_is_important is deprecated: Use #GAction instead, and control and monitor whether labels are shown directly

    Declaration

    Swift

    @inlinable
    var isImportant: Bool { get nonmutating set }
  • isSensitive Extension method

    Returns whether the action is effectively sensitive.

    is_sensitive is deprecated: Use g_action_get_enabled() on a #GAction instead

    Declaration

    Swift

    @inlinable
    var isSensitive: Bool { get }
  • isVisible Extension method

    Returns whether the action is effectively visible.

    is_visible is deprecated: Use #GAction instead, and control and monitor the state of

    GtkActionable widgets directly

    Declaration

    Swift

    @inlinable
    var isVisible: Bool { get }
  • label Extension method

    The label used for menu items and buttons that activate this action. If the label is nil, GTK+ uses the stock label specified via the stock-id property.

    This is an appearance property and thus only applies if GtkActivatable:use-action-appearance is true.

    label is deprecated: Use the “label” attribute on #GMenuItem instead

    Declaration

    Swift

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

    A unique name for the action.

    name is deprecated: Use #GAction:name instead

    Declaration

    Swift

    @inlinable
    var name: String! { get }
  • proxies Extension method

    Returns the proxy widgets for an action. See also gtk_activatable_get_related_action().

    get_proxies is deprecated: This method is deprecated.

    Declaration

    Swift

    @inlinable
    var proxies: GLib.SListRef! { get }
  • sensitive Extension method

    Whether the action is enabled.

    sensitive is deprecated: Use #GAction:enabled and #GSimpleAction:enabled instead

    Declaration

    Swift

    @inlinable
    var sensitive: Bool { get nonmutating set }
  • shortLabel Extension method

    Gets the short label text of action.

    get_short_label is deprecated: Use #GAction instead, which has no equivalent of short labels

    Declaration

    Swift

    @inlinable
    var shortLabel: String! { get nonmutating set }
  • stockID Extension method

    Gets the stock id of action.

    get_stock_id is deprecated: Use #GAction instead, which has no equivalent of stock items

    Declaration

    Swift

    @inlinable
    var stockID: String! { get nonmutating set }
  • tooltip Extension method

    A tooltip for this action.

    tooltip is deprecated: Use gtk_widget_set_tooltip_text() instead

    Declaration

    Swift

    @inlinable
    var tooltip: String! { get nonmutating set }
  • visible Extension method

    Whether the action is visible.

    visible is deprecated: There is no corresponding replacement when using

    GAction

    Declaration

    Swift

    @inlinable
    var visible: Bool { get nonmutating set }
  • visibleHorizontal Extension method

    Checks whether action is visible when horizontal

    get_visible_horizontal is deprecated: Use #GAction instead, and control and monitor the visibility of associated widgets and menu items directly

    Declaration

    Swift

    @inlinable
    var visibleHorizontal: Bool { get nonmutating set }
  • visibleVertical Extension method

    Checks whether action is visible when horizontal

    get_visible_vertical is deprecated: Use #GAction instead, and control and monitor the visibility of associated widgets and menu items directly

    Declaration

    Swift

    @inlinable
    var visibleVertical: Bool { get nonmutating set }
  • object Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var object: GObject { get }