RecentChooserWidgetRef
public struct RecentChooserWidgetRef : RecentChooserWidgetProtocol, GWeakCapturing
GtkRecentChooserWidget
is a widget suitable for selecting recently used
files. It is the main building block of a GtkRecentChooserDialog
. Most
applications will only need to use the latter; you can use
GtkRecentChooserWidget
as part of a larger window if you have special needs.
Note that GtkRecentChooserWidget
does not have any methods of its own.
Instead, you should use the functions that work on a GtkRecentChooser
.
Recently used files are supported since GTK+ 2.10.
The RecentChooserWidgetRef
type acts as a lightweight Swift reference to an underlying GtkRecentChooserWidget
instance.
It exposes methods that can operate on this data type through RecentChooserWidgetProtocol
conformance.
Use RecentChooserWidgetRef
only as an unowned
reference to an existing GtkRecentChooserWidget
instance.
-
Untyped pointer to the underlying `GtkRecentChooserWidget` instance.
For type-safe access, use the generated, typed pointer
recent_chooser_widget_ptr
property instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkRecentChooserWidget>)
-
Designated initialiser from a constant pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkRecentChooserWidget>)
-
Conditional initialiser from an optional pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkRecentChooserWidget>?)
-
Conditional initialiser from an optional, non-mutable pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkRecentChooserWidget>?)
-
Conditional initialiser from an optional
gpointer
Declaration
Swift
@inlinable init!(gpointer g: gpointer?)
-
Conditional initialiser from an optional, non-mutable
gconstpointer
Declaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?)
-
Reference intialiser for a related type that implements
RecentChooserWidgetProtocol
Declaration
Swift
@inlinable init<T>(_ other: T) where T : RecentChooserWidgetProtocol
-
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>
Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> RecentChooserWidgetRef where T : RecentChooserWidgetProtocol
-
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
RecentChooserWidgetProtocol
.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
RecentChooserWidgetProtocol
.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
RecentChooserWidgetProtocol
.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
RecentChooserWidgetProtocol
.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
RecentChooserWidgetProtocol
.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer)
-
Creates a new `GtkRecentChooserWidget` object. This is an embeddable widget
used to access the recently used resources list.
Declaration
Swift
@inlinable init()
-
Creates a new
GtkRecentChooserWidget
with a specified recent manager.This is useful if you have implemented your own recent manager, or if you have a customized instance of a
GtkRecentManager
object.Declaration
Swift
@inlinable init<RecentManagerT>(manager: RecentManagerT) where RecentManagerT : RecentManagerProtocol
-
Creates a new
GtkRecentChooserWidget
with a specified recent manager.This is useful if you have implemented your own recent manager, or if you have a customized instance of a
GtkRecentManager
object.Declaration
Swift
@inlinable static func newFor<RecentManagerT>(manager: RecentManagerT) -> WidgetRef! where RecentManagerT : RecentManagerProtocol