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 gtk_app_chooser_dialog_get_widget()
and call its methods if
the generic GtkAppChooser
interface is not sufficient for your needs.
To set the heading that is shown above the GtkAppChooserWidget
,
use gtk_app_chooser_dialog_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_ptr
property instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkAppChooserDialog>)
-
Designated initialiser from a constant pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkAppChooserDialog>)
-
Conditional initialiser from an optional pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkAppChooserDialog>?)
-
Conditional initialiser from an optional, non-mutable pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkAppChooserDialog>?)
-
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
AppChooserDialogProtocol
Declaration
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`,
to allow the user to select an application for it.
Declaration
Swift
@inlinable init<FileT, WindowT>(parent: WindowT?, flags: DialogFlags, file: FileT) where FileT : FileProtocol, WindowT : WindowProtocol
-
Creates a new
GtkAppChooserDialog
for the provided content type, to allow the user to select an application for it.Declaration
Swift
@inlinable init<WindowT>(contentType parent: WindowT?, flags: DialogFlags, contentType: UnsafePointer<gchar>!) where WindowT : WindowProtocol
-
Creates a new
GtkAppChooserDialog
for the provided content type, to allow the user to select an application for it.Declaration
Swift
@inlinable static func newFor<WindowT>(contentType parent: WindowT?, flags: DialogFlags, contentType: UnsafePointer<gchar>!) -> WidgetRef! where WindowT : WindowProtocol