BuilderListItemFactory
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_builder_list_item_factory_get_type ()" ) ]
public class BuilderListItemFactory :
ListItemFactory
`GtkBuilderListItemFactory` is a `GtkListItemFactory` that creates widgets by instantiating `GtkBuilder` UI templates.
The templates must be extending `GtkListItem`, and typically use `GtkExpression`s 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> ```
Content:
Properties:
- public Bytes bytes { get; construct; }
`GBytes` containing the UI definition.
- public string resource { get; construct; }
Path of the resource containing the UI definition.
- public BuilderScope scope { get; construct; }
`GtkBuilderScope` to use when instantiating listitems
Creation methods:
Methods:
- public unowned Bytes get_bytes ()
Gets the data used as the `GtkBuilder` UI template for constructing
listitems.
- public unowned string? get_resource ()
If the data references a resource, gets the path of that resource.
- public unowned BuilderScope? get_scope ()
Gets the scope used when constructing listitems.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref