GladeXML {RGtk2}R Documentation

GladeXML

Description

Allows dynamic loading of user interfaces from XML descriptions.

Methods and Functions

gladeXMLNew(fname, root = NULL, domain = NULL)
gladeXMLNewFromBuffer(buffer, size = nchar(buffer), root = NULL, domain = NULL)
gladeXMLConstruct(object, fname, root = NULL, domain = NULL)
gladeXMLSignalConnect(object, handlername, func)
gladeXMLSignalConnectData(object, handlername, func, user.data)
gladeXMLSignalAutoconnect(object)
gladeXMLGetWidget(object, name)
gladeXMLGetWidgetPrefix(object, name)
gladeGetWidgetName(widget)
gladeGetWidgetTree(widget)
gladeXMLSignalConnectFull(object, handler.name, func, user.data)
gladeXMLSignalAutoconnectFull(object, func, user.data)
gladeSetCustomHandler(handler, user.data)
gladeXML(root = NULL, domain = NULL, fname, buffer, size = nchar(buffer))

Hierarchy

  GObject
   +----GladeXML

Detailed Description

This object represents an `instantiation' of an XML interface description. When one of these objects is created, the XML file is read, and the interface is created. The GladeXML object then provides an interface for accessing the widgets in the interface by the names assigned to them inside the XML description.

The GladeXML object can also be used to connect handlers to the named signals in the description. Libglade also provides an interface by which it can look up the signal handler names in the program's symbol table and automatically connect as many handlers up as it can that way.

Structures

GladeXML
undocumented

Convenient Construction

gladeXML is the result of collapsing the constructors of GladeXML (gladeXMLNew, gladeXMLNewFromBuffer) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.

User Functions

GladeXMLConnectFunc(handler.name, object, signal.name, signal.data, connect.object, after, user.data)
This is the signature of a function used to connect signals. It is used by the glade_xml_signal_connect_full and glade_xml_signal_autoconnect_full functions. It is mainly intented for interpreted language bindings, but could be useful where the programmer wants more control over the signal connection process.

handler.name
[character] the name of the handler function to connect.
object
[GObject] the object to connect the signal to.
signal.name
[character] the name of the signal.
signal.data
[character] the string value of the signal data given in the XML file.
connect.object
[GObject] non NULL if g_signal_connect_object should be used.
after
[logical] TRUE if the connection should be made with g_signal_connect_after.
user.data
[R object] the user data argument.

GladeXMLCustomWidgetHandler(xml, func.name, name, string1, string2, int1, int2, user.data)
This prototype is for a function that creates custom widgets.

xml
[GladeXML] the GladeXML object.
func.name
[character] the function name.
name
[character] the name of the widget to be created.
string1
[character] the string1 property.
string2
[character] the string2 property.
int1
[integer] the int1 property.
int2
[integer] the int2 property.
user.data
[R object] the data passed to gladeSetCustomHandler

Returns: [GtkWidget] the GtkWidget.

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://developer.gnome.org/doc/API/2.0/libglade/GladeXML.html


[Package RGtk2 version 2.12.5-3 Index]