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 ui files.
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 [[email protected] ]. 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` XML 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 void custom_finished (Builder builder, Object ? child, string tagname, void * data)
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)
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 BuildableParser parser, out void * data)
Called for each unknown element under `<child>`.
public unowned string ? get_buildable_id ()
Gets the ID of the this object.
public abstract unowned string get_id ()
public abstract unowned Object get_internal_child (Builder builder, string childname)
Retrieves the internal child called childname
of the
this object.
public abstract void parser_finished (Builder builder)
public abstract void set_buildable_property (Builder builder, string name, Value value)
public abstract void set_id (string id)
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