ToggleActionEntryProtocol

public protocol ToggleActionEntryProtocol

GtkToggleActionEntry structs are used with gtk_action_group_add_toggle_actions() to construct toggle actions.

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

  • ptr

    Untyped pointer to the underlying GtkToggleActionEntry instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkToggleActionEntry instance.

    Default Implementation

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

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GtkToggleActionEntry>! { get }
  • Required Initialiser for types conforming to ToggleActionEntryProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

ToggleActionEntry Record: ToggleActionEntryProtocol extension (methods and fields)

  • name Extension method

    The name of the action.

    Declaration

    Swift

    @inlinable
    var name: UnsafePointer<gchar>! { get set }
  • stockID Extension method

    The stock id for the action, or the name of an icon from the icon theme.

    Declaration

    Swift

    @inlinable
    var stockID: UnsafePointer<gchar>! { get set }
  • label Extension method

    The label for the action. This field should typically be marked for translation, see gtk_action_group_set_translation_domain().

    Declaration

    Swift

    @inlinable
    var label: UnsafePointer<gchar>! { get set }
  • accelerator Extension method

    The accelerator for the action, in the format understood by gtk_accelerator_parse().

    Declaration

    Swift

    @inlinable
    var accelerator: UnsafePointer<gchar>! { get set }
  • tooltip Extension method

    The tooltip for the action. This field should typically be marked for translation, see gtk_action_group_set_translation_domain().

    Declaration

    Swift

    @inlinable
    var tooltip: UnsafePointer<gchar>! { get set }
  • callback Extension method

    The function to call when the action is activated.

    Declaration

    Swift

    @inlinable
    var callback: GCallback! { get set }
  • isActive Extension method

    The initial state of the toggle action.

    Declaration

    Swift

    @inlinable
    var isActive: gboolean { get set }