AppChooserWidgetRef
public struct AppChooserWidgetRef : AppChooserWidgetProtocol, GWeakCapturing
GtkAppChooserWidget is a widget for selecting applications.
It is the main building block for [classGtk.AppChooserDialog].
Most applications only need to use the latter; but you can use
this widget as part of a larger widget if you have special needs.
GtkAppChooserWidget offers detailed control over what applications
are shown, using the
[propertyGtk.AppChooserWidget:show-default],
[propertyGtk.AppChooserWidget:show-recommended],
[propertyGtk.AppChooserWidget:show-fallback],
[propertyGtk.AppChooserWidget:show-other] and
[propertyGtk.AppChooserWidget:show-all] properties. See the
[ifaceGtk.AppChooser] documentation for more information about these
groups of applications.
To keep track of the selected application, use the
[signalGtk.AppChooserWidget::application-selected] and
[signalGtk.AppChooserWidget::application-activated] signals.
CSS nodes
GtkAppChooserWidget has a single CSS node with name appchooser.
The AppChooserWidgetRef type acts as a lightweight Swift reference to an underlying GtkAppChooserWidget instance.
It exposes methods that can operate on this data type through AppChooserWidgetProtocol conformance.
Use AppChooserWidgetRef only as an unowned reference to an existing GtkAppChooserWidget instance.
-
Untyped pointer to the underlying `GtkAppChooserWidget` instance.For type-safe access, use the generated, typed pointer
app_chooser_widget_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkAppChooserWidget>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkAppChooserWidget>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkAppChooserWidget>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkAppChooserWidget>?) -
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
AppChooserWidgetProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : AppChooserWidgetProtocol -
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> AppChooserWidgetRef where T : AppChooserWidgetProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
AppChooserWidgetProtocol.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
AppChooserWidgetProtocol.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
AppChooserWidgetProtocol.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
AppChooserWidgetProtocol.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
AppChooserWidgetProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
Creates a new `GtkAppChooserWidget` for applicationsthat can handle content of the given type.
Declaration
Swift
@inlinable init(contentType: UnsafePointer<CChar>!)
View on GitHub
Install in Dash
AppChooserWidgetRef Structure Reference