Buildable
Object Hierarchy:
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable
GLib.Object
GLib.Object
GLib.Object->Gtk.Buildable
Description:
[ CCode ( type_id = "gtk_buildable_get_type ()" ) ]public interface Buildable : Object
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 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 Builder format or
run any extra routines at deserialization time.
All known implementing classes:
Content:
Methods:
public abstract void add_child (Builder builder, Object child, string ? type)
Adds a child to this .
public abstract Object construct_child (Builder builder, string name)
Constructs a child of this with the
name name
.
public abstract void custom_finished (Builder builder, Object ? child, string tagname, void * data)
This is similar to
parser_finished but is called once for each custom tag
handled by the this .
public abstract void custom_tag_end (Builder builder, Object ? child, string tagname, void * data)
This is called at the end of each custom element handled by the
buildable.
public abstract bool custom_tag_start (Builder builder, Object ? child, string tagname, out MarkupParser parser, out void * data)
This is called for each unknown element under `<child>`.
public abstract unowned Object get_internal_child (Builder builder, string childname)
Get the internal child called childname
of the
this object.
public abstract unowned string get_name ()
Gets the name of the this object.
public abstract void parser_finished (Builder builder)
public abstract void set_buildable_property (Builder builder, string name, Value value)
Sets the property name name
to value
on the
this object.
public abstract void set_name (string name)
Sets the name of the this object.
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