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.

  • ptr
    Untyped pointer to the underlying `GtkBuilderListItemFactory` instance.
    

    For type-safe access, use the generated, typed pointer builder_list_item_factory_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

BuilderListItemFactory Class