AppChooserDialogRef
public struct AppChooserDialogRef : AppChooserDialogProtocol, GWeakCapturing
GtkAppChooserDialog shows a GtkAppChooserWidget inside a GtkDialog.

Note that GtkAppChooserDialog does not have any interesting methods
of its own. Instead, you should get the embedded GtkAppChooserWidget
using [methodGtk.AppChooserDialog.get_widget] and call its methods if
the generic [ifaceGtk.AppChooser] interface is not sufficient for
your needs.
To set the heading that is shown above the GtkAppChooserWidget,
use [methodGtk.AppChooserDialog.set_heading].
The AppChooserDialogRef type acts as a lightweight Swift reference to an underlying GtkAppChooserDialog instance.
It exposes methods that can operate on this data type through AppChooserDialogProtocol conformance.
Use AppChooserDialogRef only as an unowned reference to an existing GtkAppChooserDialog instance.
-
Untyped pointer to the underlying `GtkAppChooserDialog` instance.For type-safe access, use the generated, typed pointer
app_chooser_dialog_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkAppChooserDialog>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkAppChooserDialog>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkAppChooserDialog>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkAppChooserDialog>?) -
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
AppChooserDialogProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : AppChooserDialogProtocol -
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> AppChooserDialogRef where T : AppChooserDialogProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
AppChooserDialogProtocol.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
AppChooserDialogProtocol.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
AppChooserDialogProtocol.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
AppChooserDialogProtocol.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
AppChooserDialogProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
Creates a new `GtkAppChooserDialog` for the provided `GFile`.The dialog will show applications that can open the file.
Declaration
Swift
@inlinable init<FileT, WindowT>(parent: WindowT?, flags: DialogFlags, file: FileT) where FileT : FileProtocol, WindowT : WindowProtocol -
Creates a new
GtkAppChooserDialogfor the provided content type.The dialog will show applications that can open the content type.
Declaration
Swift
@inlinable init<WindowT>(contentType parent: WindowT?, flags: DialogFlags, contentType: UnsafePointer<CChar>!) where WindowT : WindowProtocol -
Creates a new
GtkAppChooserDialogfor the provided content type.The dialog will show applications that can open the content type.
Declaration
Swift
@inlinable static func newFor<WindowT>(contentType parent: WindowT?, flags: DialogFlags, contentType: UnsafePointer<CChar>!) -> WidgetRef! where WindowT : WindowProtocol
View on GitHub
Install in Dash
AppChooserDialogRef Structure Reference