Module: Gtk::Buildable
- Defined in:
- (unknown)
Overview
GtkBuildable allows objects to extend and customize their deserialization from [GtkBuilder UI descriptions]. 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 Gtk::Builder. 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 Gtk::Builder format or run any extra routines at deserialization time.
Instance Method Summary collapse
- #add_child(buildable, builder, child, type) ⇒ nil
-
#construct_child(buildable, builder, name) ⇒ GObject::Object
The constructed child.
- #custom_finished(buildable, builder, child, tagname, data) ⇒ nil
- #custom_tag_end(buildable, builder, child, tagname, data) ⇒ nil
-
#custom_tag_start(buildable, builder, child, tagname, parser, data) ⇒ TrueClass
True if a object has a custom implementation, false if it doesn’t.
-
#get_internal_child(buildable, builder, childname) ⇒ GObject::Object
The internal child of the buildable object.
-
#get_name(buildable) ⇒ String
The name set with gtk_buildable_set_name().
-
#name ⇒ String
Gets the name of the buildable object.
-
#name=(name) ⇒ nil
Sets the name of the buildable object.
- #parser_finished(buildable, builder) ⇒ nil
- #set_buildable_property(buildable, builder, name, value) ⇒ nil
- #set_name(buildable, name) ⇒ nil
Instance Method Details
#add_child(buildable, builder, child, type) ⇒ nil
#construct_child(buildable, builder, name) ⇒ GObject::Object
Returns the constructed child.
#custom_finished(buildable, builder, child, tagname, data) ⇒ nil
#custom_tag_end(buildable, builder, child, tagname, data) ⇒ nil
#custom_tag_start(buildable, builder, child, tagname, parser, data) ⇒ TrueClass
Returns true if a object has a custom implementation, false if it doesn’t.
#get_internal_child(buildable, builder, childname) ⇒ GObject::Object
Returns the internal child of the buildable object.
#get_name(buildable) ⇒ String
Returns the name set with gtk_buildable_set_name().
#name ⇒ String
Gets the name of the buildable object.
Gtk::Builder sets the name based on the
- GtkBuilder UI definition][BUILDER-UI
-
used to construct the buildable.
#name=(name) ⇒ nil
Sets the name of the buildable object.