BuildableIF

Description In order to allow construction from a GtkBuilder UI description, an object class must implement the GtkBuildable interface. The interface includes methods for setting names and properties of objects, parsing custom tags, 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 gtk_buildable_... functions.

Members

Functions

addChild
void addChild(Builder builder, ObjectG child, string type)

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

buildableGetName
string buildableGetName()

Gets the name of the buildable object. GtkBuilder sets the name based on the the GtkBuilder UI definition used to construct the buildable. Since 2.12

buildableSetName
void buildableSetName(string name)

Sets the name of the buildable object. Since 2.12

constructChild
ObjectG constructChild(Builder builder, string name)

Constructs a child of buildable with the name name. GtkBuilder calls this function if a "constructor" has been specified in the UI definition. Since 2.12

customFinished
void customFinished(Builder builder, ObjectG child, string tagname, void* data)

This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable. Since 2.12

customTagEnd
void customTagEnd(Builder builder, ObjectG child, string tagname, void** data)

This is called at the end of each custom element handled by the buildable. Since 2.12

customTagStart
int customTagStart(Builder builder, ObjectG child, string tagname, GMarkupParser* parser, void** data)

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

getBuildableTStruct
GtkBuildable* getBuildableTStruct()
Undocumented in source.
getInternalChild
ObjectG getInternalChild(Builder builder, string childname)

Get the internal child called childname of the buildable object. Since 2.12

getStruct
void* getStruct()

the main Gtk struct as a void*

parserFinished
void parserFinished(Builder builder)

Called when the builder finishes the parsing of a GtkBuilder UI definition. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder. Since 2.12

setBuildableProperty
void setBuildableProperty(Builder builder, string name, Value value)

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

Meta