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>

Constructors

Link copied to clipboard
constructor(scope: BuilderScope? = null, bytes: <Error class: unknown class>)

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

constructor(scope: BuilderScope? = null, resourcePath: String)

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>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val bytes: <Error class: unknown class>

GBytes containing the UI definition.

Link copied to clipboard
val gtkBuilderListItemFactoryPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkListItemFactoryPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val resource: String?

Path of the resource containing the UI definition.

Link copied to clipboard
open val scope: BuilderScope?

GtkBuilderScope to use when instantiating listitems