GObject.Object
Gtk.Builder
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkBuilder |
Class : | Builder |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
parent_instance : GObject.Object
read only
|
Gtk.Builder | |
priv : Gtk.BuilderPrivate
read only
|
Gtk.Builder | |
translation_domain : String
The translation domain used when translating property values that
have been marked as translatable in interface descriptions. The translation domain used when translating property values that
have been marked as translatable in interface descriptions. If the translation domain is NULL, GtkBuilder uses gettext(), otherwise g_dgettext(). |
Gtk.Builder |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.Builder
(Object properties)
Create a new Gtk.Builder
Create a new Gtk.Builder
|
||
Parses a file containing a GtkBuilder
UI definition and merges it with the current contents of builder.
Parses a file containing a GtkBuilder
UI definition and merges it with the current contents of builder. Upon errors 0 will be returned and error will be assigned a GError from the GTK_BUILDER_ERROR, G_MARKUP_ERROR or G_FILE_ERROR domain.
|
Gtk.Builder | |
Parses a string containing a GtkBuilder
UI definition and merges it with the current contents of builder.
Parses a string containing a GtkBuilder
UI definition and merges it with the current contents of builder. Upon errors 0 will be returned and error will be assigned a GError from the GTK_BUILDER_ERROR or G_MARKUP_ERROR domain.
|
Gtk.Builder | |
Parses a file containing a GtkBuilder
UI definition building only the requested objects and merges them with the current contents of builder.
Parses a file containing a GtkBuilder
UI definition building only the requested objects and merges them with the current contents of builder. Upon errors 0 will be returned and error will be assigned a GError from the GTK_BUILDER_ERROR, G_MARKUP_ERROR or G_FILE_ERROR domain. If you are adding an object that depends on an object that is not its child (for instance a GtkTreeView that depends on its GtkTreeModel), you have to explicitely list all of them in object_ids.
|
Gtk.Builder | |
Parses a string containing a GtkBuilder
UI definition building only the requested objects and merges them with the current contents of builder.
Parses a string containing a GtkBuilder
UI definition building only the requested objects and merges them with the current contents of builder. Upon errors 0 will be returned and error will be assigned a GError from the GTK_BUILDER_ERROR or G_MARKUP_ERROR domain. If you are adding an object that depends on an object that is not its child (for instance a GtkTreeView that depends on its GtkTreeModel), you have to explicitely list all of them in object_ids.
|
Gtk.Builder | |
connect_signals
(void* user_data)
:
none
This method is a simpler variation of gtk_builder_connect_signals_full().
This method is a simpler variation of gtk_builder_connect_signals_full().
It uses GModule's introspective features (by opening the module NULL) to look at the application's symbol table. From here it tries to match the signal handler names given in the interface description with symbols in the application and connects the signals. Note that this function will not work correctly if GModule is not supported on the platform. When compiling applications for Windows, you must declare signal callbacks with G_MODULE_EXPORT, or they will not be put in the symbol table. On Linux and Unices, this is not necessary; applications should instead be compiled with the -Wl,--export-dynamic CFLAGS, and linked against gmodule-export-2.0.
|
Gtk.Builder | |
This function can be thought of the interpreted language binding
version of gtk_builder_connect_signals(), except that it does not require GModule to function correctly.
This function can be thought of the interpreted language binding
version of gtk_builder_connect_signals(), except that it does not require GModule to function correctly.
|
Gtk.Builder | |
get_object
(String name)
:
GObject.Object
Gets the object named name.
Gets the object named name. Note that this function does not
increment the reference count of the returned object. it could not be found in the object tree.
|
Gtk.Builder | |
get_objects
()
:
Array
Gets all objects that have been constructed by builder.
Gets all objects that have been constructed by builder. Note that
this function does not increment the reference counts of the returned objects. constructed by the GtkBuilder instance. It should be freed by g_slist_free()
|
Gtk.Builder | |
get_translation_domain
()
:
String
Gets the translation domain of builder.
Gets the translation domain of builder.
by the builder object and must not be modified or freed.
|
Gtk.Builder | |
Looks up a type by name, using the virtual function that
GtkBuilder has for that purpose.
Looks up a type by name, using the virtual function that
GtkBuilder has for that purpose. This is mainly used when implementing the GtkBuildable interface on a type. if no type was found
|
Gtk.Builder | |
set_translation_domain
(String domain)
:
none
Sets the translation domain of builder.
Sets the translation domain of builder.
See GtkBuilder:translation-domain.
|
Gtk.Builder | |
This function demarshals a value from a string.
This function demarshals a value from a string. This function
calls g_value_init() on the value argument, so it need not be initialised beforehand. This function can handle char, uchar, boolean, int, uint, long, ulong, enum, flags, float, double, string, GdkColor and GtkAdjustment type values. Support for GtkWidget type values is still to come. Upon errors FALSE will be returned and error will be assigned a GError from the GTK_BUILDER_ERROR domain.
|
Gtk.Builder | |
Like gtk_builder_value_from_string(), this function demarshals
a value from a string, but takes a GType instead of GParamSpec.
Like gtk_builder_value_from_string(), this function demarshals
a value from a string, but takes a GType instead of GParamSpec. This function calls g_value_init() on the value argument, so it need not be initialised beforehand. Upon errors FALSE will be returned and error will be assigned a GError from the GTK_BUILDER_ERROR domain.
|
Gtk.Builder |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.Buildable
Method |
Adds a child to buildable.
|
Gtk.Buildable
Method |
Constructs a child of buildable with the name name.
|
Gtk.Buildable
Method |
This is similar to gtk_buildable_parser_finished() but is
called once for each custom tag handled by the buildable. |
Gtk.Buildable
Method |
This is called at the end of each custom element handled by
the buildable. |
Gtk.Buildable
Method |
This is called for each unknown element under <child>.
|
Gtk.Buildable
Method |
Get the internal child called childname of the buildable object.
|
Gtk.Buildable
Method |
parser_finished
(Builder builder)
:
none
Called when the builder finishes the parsing of a
GtkBuilder UI definition. |
Gtk.Buildable
Method |
Sets the property name name to value on the buildable object.
|