ActionEntryProtocol
public protocol ActionEntryProtocol
GtkActionEntry structs are used with gtk_action_group_add_actions() to
construct actions.
The ActionEntryProtocol protocol exposes the methods and properties of an underlying GtkActionEntry 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 ActionEntry.
Alternatively, use ActionEntryRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkActionEntryinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GtkActionEntryinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkActionEntryinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GtkActionEntry>! { get } -
Required Initialiser for types conforming to
ActionEntryProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
nameExtension methodThe name of the action.
Declaration
Swift
@inlinable var name: UnsafePointer<gchar>! { get set } -
stockIDExtension methodThe stock id for the action, or the name of an icon from the icon theme.
Declaration
Swift
@inlinable var stockID: UnsafePointer<gchar>! { get set } -
labelExtension methodThe label for the action. This field should typically be marked for translation, see
gtk_action_group_set_translation_domain(). Iflabelisnil, the label of the stock item with idstock_idis used.Declaration
Swift
@inlinable var label: UnsafePointer<gchar>! { get set } -
acceleratorExtension methodThe accelerator for the action, in the format understood by
gtk_accelerator_parse().Declaration
Swift
@inlinable var accelerator: UnsafePointer<gchar>! { get set } -
tooltipExtension methodThe 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 } -
callbackExtension methodThe function to call when the action is activated.
Declaration
Swift
@inlinable var callback: GCallback! { get set }
View on GitHub
Install in Dash
ActionEntryProtocol Protocol Reference