BuilderListItemFactory
open class BuilderListItemFactory(val gtkBuilderListItemFactoryPointer: <Error class: unknown class><<Error class: unknown class>>) : ListItemFactory(source)
GtkBuilderListItemFactory is a GtkListItemFactory that creates widgets by instantiating GtkBuilder UI templates.
The templates must extend the class that the parent widget expects. For example, a factory provided to property@Gtk.ListView:factory must have a template that extends class@Gtk.ListItem.
Templates 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>Content copied to clipboard
Constructors
Link copied to clipboard
Creates a new GtkBuilderListItemFactory that instantiates widgets using @bytes as the data to pass to GtkBuilder.
Creates a new GtkBuilderListItemFactory that instantiates widgets using data read from the given @resource_path to pass to GtkBuilder.
constructor(gtkBuilderListItemFactoryPointer: <Error class: unknown class><<Error class: unknown class>>)