It derives from <GtkListItemFactory>.
Creates widgets by instantiating <GtkBuilder> UI
templates.
The templates must extend the class that the parent widget expects. For
example, a factory provided to list-view: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>
A common approach is to embed such templates as CDATA marked sections into a surrounding UI file. Note that if you use this approach, extracting translatable strings with xgettext will not work for strings inside the marked section.
<GBytes> containing the UI definition.
Its value is a <GBytes>, or #f.
It can only be set when the object is made, with #:bytes.
Path of the resource containing the UI definition.
Its value is a string, or #f.
It can only be set when the object is made, with #:resource.
<GtkBuilderScope> to use when instantiating
listitems
Its value is a <GtkBuilderScope>, or
#f.
It can only be set when the object is made, with #:scope.
Gets the data used as the <GtkBuilder> UI template
for constructing listitems.
Passed: a
<GtkBuilderListItemFactory>.
Returned: a <GBytes>.
The <GtkBuilder> data
If the data references a resource, gets the path of that resource.
Passed: a
<GtkBuilderListItemFactory>.
Returned: a string, or #f.
The path to the resource
Gets the scope used when constructing listitems.
Passed: a
<GtkBuilderListItemFactory>.
Returned: a <GtkBuilderScope>, or #f.
The scope used when constructing listitems
Creates a new
<GtkBuilderListItemFactory> that
instantiates widgets using bytes as the data to pass to
<GtkBuilder>.
Passed: a <GtkBuilderScope>, or #f.
A scope to use when instantiating
Passed: a <GBytes>.
the <GBytes> containing the UI definition to
instantiate
Returned: a <GtkListItemFactory>.
Creates a new
<GtkBuilderListItemFactory> that
instantiates widgets using data read from the given resource-path
to pass to <GtkBuilder>.
Passed: a <GtkBuilderScope>, or #f.
A scope to use when instantiating
Passed: a string.
valid path to a resource that contains the UI definition
Returned: a <GtkListItemFactory>.