createWidgetTree {RGtkViewers}R Documentation

Create GtkTree displaying widget hierarchy.

Description

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.

Usage

createWidgetTree(node, callback = NULL, display = function(x) class(x)[1], tree = gtkTree(), expand = FALSE)

Arguments

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.

Value

A GtkTree object.

Author(s)

Duncan Temple Lang <duncan@research.bell-labs.com>

References

http://www.omegahat.org/RGtk, http://www.gtk.org

See Also

showGtkInheritance

Examples



[Package RGtkViewers version 0.7 Index]