BuilderListItemFactoryRef
public struct BuilderListItemFactoryRef : BuilderListItemFactoryProtocol, GWeakCapturing
GtkBuilderListItemFactory is a GtkListItemFactory that creates
widgets by instantiating GtkBuilder UI templates.
The templates must be extending GtkListItem, and typically use
GtkExpressions to obtain data from the items in the model.
Example:
<interface>
<template class="GtkListItem">
<property name="child">
<object class="GtkLabel">
<property name="xalign">0</property>
<binding name="label">
<lookup name="name" type="SettingsKey">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
</object>
</property>
</template>
</interface>
The BuilderListItemFactoryRef type acts as a lightweight Swift reference to an underlying GtkBuilderListItemFactory instance.
It exposes methods that can operate on this data type through BuilderListItemFactoryProtocol conformance.
Use BuilderListItemFactoryRef only as an unowned reference to an existing GtkBuilderListItemFactory instance.
-
Untyped pointer to the underlying `GtkBuilderListItemFactory` instance.For type-safe access, use the generated, typed pointer
builder_list_item_factory_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkBuilderListItemFactory>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkBuilderListItemFactory>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkBuilderListItemFactory>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkBuilderListItemFactory>?) -
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
BuilderListItemFactoryProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : BuilderListItemFactoryProtocol -
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> BuilderListItemFactoryRef where T : BuilderListItemFactoryProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
BuilderListItemFactoryProtocol.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
BuilderListItemFactoryProtocol.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
BuilderListItemFactoryProtocol.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
BuilderListItemFactoryProtocol.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
BuilderListItemFactoryProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
Creates a new `GtkBuilderListItemFactory` that instantiates widgetsusing
bytesas the data to pass toGtkBuilder.Declaration
Swift
@inlinable init<BuilderScopeT, BytesT>(bytes scope: BuilderScopeT?, bytes: BytesT) where BuilderScopeT : BuilderScopeProtocol, BytesT : BytesProtocol -
Creates a new
GtkBuilderListItemFactorythat instantiates widgets using data read from the givenresource_pathto pass toGtkBuilder.Declaration
Swift
@inlinable init<BuilderScopeT>(resource scope: BuilderScopeT?, resourcePath: UnsafePointer<CChar>!) where BuilderScopeT : BuilderScopeProtocol -
Creates a new
GtkBuilderListItemFactorythat instantiates widgets usingbytesas the data to pass toGtkBuilder.Declaration
Swift
@inlinable static func newFrom<BuilderScopeT, BytesT>(bytes scope: BuilderScopeT?, bytes: BytesT) -> ListItemFactoryRef! where BuilderScopeT : BuilderScopeProtocol, BytesT : BytesProtocol -
Creates a new
GtkBuilderListItemFactorythat instantiates widgets using data read from the givenresource_pathto pass toGtkBuilder.Declaration
Swift
@inlinable static func newFrom<BuilderScopeT>(resource scope: BuilderScopeT?, resourcePath: UnsafePointer<CChar>!) -> ListItemFactoryRef! where BuilderScopeT : BuilderScopeProtocol
View on GitHub
Install in Dash
BuilderListItemFactoryRef Structure Reference