gtk.builder_list_item_factory
Module for [BuilderListItemFactory] class
Types 3
[gtk.builder_list_item_factory.BuilderListItemFactory] is a [gtk.list_item_factory.ListItemFactory] that creates widgets by instantiating [gtk.builder.Builder] UI templates.
The templates must be extending [gtk.list_item.ListItem], and typically use [gtk.expression.Expression]s 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>Methods
BuilderListItemFactory self()Returns `this`, for use in `with` statements.BuilderListItemFactoryGidBuilder builder()Get builder for [gtk.builderlistitem_factory.BuilderListItemFactory] Returns: New builder objectglib.bytes.Bytes bytes() @propertyGet `bytes` property. Returns: [glib.bytes.Bytes] containing the UI definition.string resource() @propertyGet `resource` property. Returns: Path of the resource containing the UI definition.gtk.builder_scope.BuilderScope scope_() @propertyGet `scope` property. Returns: [gtk.builderscope.BuilderScope] to use when instantiating listitemsgtk.builder_list_item_factory.BuilderListItemFactory newFromBytes(gtk.builder_scope.BuilderScope scope_, glib.bytes.Bytes bytes)Creates a new [gtk.builderlistitem_factory.BuilderListItemFactory] that instantiates widgets using bytes as the data to pass to [gtk.builder.Builder].gtk.builder_list_item_factory.BuilderListItemFactory newFromResource(gtk.builder_scope.BuilderScope scope_, string resourcePath)Creates a new [gtk.builderlistitemfactory.BuilderListItemFactory] that instantiates widgets using data read from the given resourcepath to pass to [gtk.builder.Builder].glib.bytes.Bytes getBytes()Gets the data used as the [gtk.builder.Builder] UI template for constructing listitems. Returns: The [gtk.builder.Builder] datastring getResource()If the data references a resource, gets the path of that resource. Returns: The path to the resourcegtk.builder_scope.BuilderScope getScope()Gets the scope used when constructing listitems. Returns: The scope used when constructing listitemsclassBuilderListItemFactoryGidBuilderImpl(T) : gtk.list_item_factory.ListItemFactoryGidBuilderImpl!T
Methods
T bytes(glib.bytes.Bytes propval)Set `bytes` property. Params: propval = [glib.bytes.Bytes] containing the UI definition. Returns: Builder instance for fluent chainingT resource(string propval)Set `resource` property. Params: propval = Path of the resource containing the UI definition. Returns: Builder instance for fluent chainingT scope_(gtk.builder_scope.BuilderScope propval)Set `scope` property. Params: propval = [gtk.builderscope.BuilderScope] to use when instantiating listitems Returns: Builder instance for fluent chainingclassBuilderListItemFactoryGidBuilder : BuilderListItemFactoryGidBuilderImpl!BuilderListItemFactoryGidBuilder
Fluent builder for [gtk.builder_list_item_factory.BuilderListItemFactory]
Methods