Buildable

GtkBuildable allows objects to extend and customize their deserialization from [GtkBuilder UI descriptions][BUILDER-UI]. The interface includes methods for setting names and properties of objects, parsing custom tags and constructing child objects.

The GtkBuildable interface is implemented by all widgets and many of the non-widget objects that are provided by GTK+. The main user of this interface is #GtkBuilder. There should be very little need for applications to call any of these functions directly.

An object only needs to implement this interface if it needs to extend the #GtkBuilder format or run any extra routines at deserialization time.

Members

Functions

addChild
void addChild(gtk.builder.Builder builder, gobject.object.ObjectWrap child, string type)

Adds a child to buildable. type is an optional string describing how the child should be added.

constructChild
gobject.object.ObjectWrap constructChild(gtk.builder.Builder builder, string name)

Constructs a child of buildable with the name name.

customFinished
void customFinished(gtk.builder.Builder builder, gobject.object.ObjectWrap child, string tagname, void* data)

This is similar to gtk.buildable.Buildable.parserFinished but is called once for each custom tag handled by the buildable.

customTagStart
bool customTagStart(gtk.builder.Builder builder, gobject.object.ObjectWrap child, string tagname, glib.types.MarkupParser parser, void* data)

This is called for each unknown element under <child>.

getInternalChild
gobject.object.ObjectWrap getInternalChild(gtk.builder.Builder builder, string childname)

Get the internal child called childname of the buildable object.

getName
string getName()

Gets the name of the buildable object.

parserFinished
void parserFinished(gtk.builder.Builder builder)

Called when the builder finishes the parsing of a [GtkBuilder UI definition][BUILDER-UI]. Note that this will be called once for each time gtk.builder.Builder.addFromFile or gtk.builder.Builder.addFromString is called on a builder.

setBuildableProperty
void setBuildableProperty(gtk.builder.Builder builder, string name, gobject.value.Value value)

Sets the property name name to value on the buildable object.

setName
void setName(string name)

Sets the name of the buildable object.

Static functions

_getGType
GType _getGType()