BuilderListItemFactory

open class BuilderListItemFactory(pointer: <Error class: unknown class><<Error class: unknown class>>) : ListItemFactory

GtkBuilderListItemFactory is a GtkListItemFactory that creates widgets by instantiating GtkBuilder UI templates.

The templates must be extending GtkListItem, and 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(pointer: <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

Functions

Link copied to clipboard
open fun getBytes(): <Error class: unknown class>

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

Link copied to clipboard
open fun getResource(): String?

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

Link copied to clipboard
open fun getScope(): BuilderScope?

Gets the scope used when constructing listitems.