widgetView {RGtkViewers} | R Documentation |
This is the top-level user entry point for
a tool that displays the hierarchical structure
of widgets within a particular Gtk GUI.
It can be used as a simple device
for learning how existing GUIs have been constructed.
It can also be customized to provide facilities
for interactively modifying aspects
of a GUI after it has been created,
as an editres
-like facility.
widgetView(top, callback = NULL, expand = TRUE)
top |
the top-most widget of the hierarchy. This must be an
object of class GtkWidget , and presumably of class
GtkContainer to have any children.
|
callback |
A callback function that is to be registered for each node (tree item) in the tree which is called when it is selected. This is used to customize the behavior and utility of the tree. |
expand |
a logical value indicating whether the sub-nodes are to be expanded in the initial view. (This currently does not work as one might expect!) |
The top-level Gtk GUI window displaying the class hierarchy.
This is an object of class GtkWindow
.
Duncan Temple Lang <duncan@research.bell-labs.com>
tmp <- viewHtml(system.file("examples", "form.html")) widgetView(tmp$win)