createWidgetTree {RGtkViewers} | R Documentation |
This creates a GtkTree
by recursively traversing
the children within a Gtk widget and creating
a parallel or mirror node for each widget in the existing
tree. It allows the caller to specify the select
callback
for each node.
createWidgetTree(node, callback = NULL, display = function(x) class(x)[1], tree = gtkTree(), expand = FALSE)
node |
the GtkWidget from which to start. |
callback |
the callback function to register as a select
signal handler for each node. |
display |
a function that is called to compute the label to display for a node in the tree given the corresponding widget in the original hierarchy. This can be used to create different visual content. |
tree |
the tree to which new nodes should be added. |
expand |
a logical value indicating whether the tree should be created with its sub-nodes already expanded. This is currently ignored. |
A GtkTree
object.
Duncan Temple Lang <duncan@research.bell-labs.com>
http://www.omegahat.org/RGtk, http://www.gtk.org