RecentActionRef
public struct RecentActionRef : RecentActionProtocol, GWeakCapturing
A GtkRecentAction represents a list of recently used files, which
can be shown by widgets such as GtkRecentChooserDialog or
GtkRecentChooserMenu.
To construct a submenu showing recently used files, use a GtkRecentAction
as the action for a <menuitem>. To construct a menu toolbutton showing
the recently used files in the popup menu, use a GtkRecentAction as the
action for a <toolitem> element.
The RecentActionRef type acts as a lightweight Swift reference to an underlying GtkRecentAction instance.
It exposes methods that can operate on this data type through RecentActionProtocol conformance.
Use RecentActionRef only as an unowned reference to an existing GtkRecentAction instance.
-
Untyped pointer to the underlying `GtkRecentAction` instance.For type-safe access, use the generated, typed pointer
recent_action_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkRecentAction>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkRecentAction>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkRecentAction>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkRecentAction>?) -
Conditional initialiser from an optional
gpointerDeclaration
Swift
@inlinable init!(gpointer g: gpointer?) -
Conditional initialiser from an optional, non-mutable
gconstpointerDeclaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?) -
Reference intialiser for a related type that implements
RecentActionProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : RecentActionProtocol -
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> RecentActionRef where T : RecentActionProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
RecentActionProtocol.Declaration
Swift
@inlinable init<T>(cPointer: UnsafeMutablePointer<T>) -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
RecentActionProtocol.Declaration
Swift
@inlinable init<T>(constPointer: UnsafePointer<T>) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
RecentActionProtocol.Declaration
Swift
@inlinable init(mutating raw: UnsafeRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
RecentActionProtocol.Declaration
Swift
@inlinable init(raw: UnsafeMutableRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
RecentActionProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
Creates a new `GtkRecentAction` object. To add the action toa
GtkActionGroupand set the accelerator for the action, callgtk_action_group_add_action_with_accel().new is deprecated: This method is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable init(name: UnsafePointer<gchar>!, label: UnsafePointer<gchar>? = nil, tooltip: UnsafePointer<gchar>? = nil, stockID: UnsafePointer<gchar>? = nil) -
Creates a new
GtkRecentActionobject. To add the action to aGtkActionGroupand set the accelerator for the action, callgtk_action_group_add_action_with_accel().new_for_manager is deprecated: This method is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable init<RecentManagerT>(manager name: UnsafePointer<gchar>!, label: UnsafePointer<gchar>? = nil, tooltip: UnsafePointer<gchar>? = nil, stockID: UnsafePointer<gchar>? = nil, manager: RecentManagerT?) where RecentManagerT : RecentManagerProtocol -
Creates a new
GtkRecentActionobject. To add the action to aGtkActionGroupand set the accelerator for the action, callgtk_action_group_add_action_with_accel().new_for_manager is deprecated: This method is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable static func newFor<RecentManagerT>(manager name: UnsafePointer<gchar>!, label: UnsafePointer<gchar>? = nil, tooltip: UnsafePointer<gchar>? = nil, stockID: UnsafePointer<gchar>? = nil, manager: RecentManagerT?) -> ActionRef! where RecentManagerT : RecentManagerProtocol
View on GitHub
Install in Dash
RecentActionRef Structure Reference