### Class

# Gtk BuilderListItemFactory

#### Description [src]

    final class Gtk.BuilderListItemFactory : Gtk.ListItemFactory
    {
      /* No available fields */
    }

Creates widgets by instantiating `GtkBuilder` UI templates.

The templates must extend the class that the parent widget expects. For example, a factory provided to `GtkListView:factory` must have a template that extends `GtkListItem`.

Templates typically use `GtkExpression` 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>

#### Ancestors

- GtkListItemFactory
- GObject

#### Constructors

###### gtk_builder_list_item_factory_new_from_bytes

Creates a new `GtkBuilderListItemFactory` that instantiates widgets using `bytes` as the data to pass to `GtkBuilder`.

###### gtk_builder_list_item_factory_new_from_resource

Creates a new `GtkBuilderListItemFactory` that instantiates widgets using data read from the given `resource_path` to pass to `GtkBuilder`.

#### Instance methods

###### gtk_builder_list_item_factory_get_bytes

Gets the data used as the `GtkBuilder` UI template for constructing listitems.

###### gtk_builder_list_item_factory_get_resource

If the data references a resource, gets the path of that resource.

###### gtk_builder_list_item_factory_get_scope

Gets the scope used when constructing listitems.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Gtk.BuilderListItemFactory:bytes

`GBytes` containing the UI definition.

###### Gtk.BuilderListItemFactory:resource

Path of the resource containing the UI definition.

###### Gtk.BuilderListItemFactory:scope

`GtkBuilderScope` to use when instantiating listitems.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct GtkBuilderListItemFactoryClass {
      /* no available fields */
    }

No description available.