BuilderListItemFactory

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.

Constructors

this
this(GtkBuilderListItemFactory* gtkBuilderListItemFactory, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(BuilderScopeIF scope_, Bytes bytes)

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

this
this(BuilderScopeIF scope_, string resourcePath)

Creates a new GtkBuilderListItemFactory that instantiates widgets using data read from the given @resource_path to pass to GtkBuilder.

Members

Functions

getBuilderListItemFactoryStruct
GtkBuilderListItemFactory* getBuilderListItemFactoryStruct(bool transferOwnership)

Get the main Gtk struct

getBytes
Bytes getBytes()

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

getResource
string getResource()

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

getScope
BuilderScopeIF getScope()

Gets the scope used when constructing listitems.

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkBuilderListItemFactory
GtkBuilderListItemFactory* gtkBuilderListItemFactory;

the main Gtk struct

Inherited Members

From ListItemFactory

gtkListItemFactory
GtkListItemFactory* gtkListItemFactory;

the main Gtk struct

getListItemFactoryStruct
GtkListItemFactory* getListItemFactoryStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()

Examples

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

Meta