file: builderlistitemfactory.aus

class: BuilderListItemFactoryMeta

[175:14] static extends: object

Generated metadata helpers for BuilderListItemFactory class surfaces.

Methods

class: BuilderListItemFactoryCtors

[153:14] static extends: object

Alternate constructors for BuilderListItemFactory. Usage: BuilderListItemFactoryCtors.<name>(...). The primary constructor lives directly on BuilderListItemFactory.

Methods

class: BuilderListItemFactory

[24:7] extends: object

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 [class@Gtk.Expression] to obtain data from the items in the model. Example: xml <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> A common approach is to embed such templates as CDATA marked sections into a surrounding UI file. Note that if you use this approach, extracting translatable strings with xgettext will not work for strings inside the marked section.

Members

Methods