AppChooserRef
public struct AppChooserRef : AppChooserProtocol, GWeakCapturing
GtkAppChooser
is an interface for widgets which allow the user to
choose an application.
The main objects that implement this interface are
[classGtk.AppChooserWidget
],
[classGtk.AppChooserDialog
] and [classGtk.AppChooserButton
].
Applications are represented by GIO GAppInfo
objects here.
GIO has a concept of recommended and fallback applications for a
given content type. Recommended applications are those that claim
to handle the content type itself, while fallback also includes
applications that handle a more generic content type. GIO also
knows the default and last-used application for a given content
type. The GtkAppChooserWidget
provides detailed control over
whether the shown list of applications should include default,
recommended or fallback applications.
To obtain the application that has been selected in a GtkAppChooser
,
use [methodGtk.AppChooser.get_app_info
].
The AppChooserRef
type acts as a lightweight Swift reference to an underlying GtkAppChooser
instance.
It exposes methods that can operate on this data type through AppChooserProtocol
conformance.
Use AppChooserRef
only as an unowned
reference to an existing GtkAppChooser
instance.
-
Untyped pointer to the underlying `GtkAppChooser` instance.
For type-safe access, use the generated, typed pointer
app_chooser_ptr
property instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkAppChooser>)
-
Designated initialiser from a constant pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkAppChooser>)
-
Conditional initialiser from an optional pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkAppChooser>?)
-
Conditional initialiser from an optional, non-mutable pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkAppChooser>?)
-
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
AppChooserProtocol
Declaration
Swift
@inlinable init<T>(_ other: T) where T : AppChooserProtocol
-
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>
Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> AppChooserRef where T : AppChooserProtocol
-
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
AppChooserProtocol
.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
AppChooserProtocol
.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
AppChooserProtocol
.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
AppChooserProtocol
.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
AppChooserProtocol
.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer)