GtkTreeItem

GtkTreeItem

One node of a GtkTree widget.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkBin
                     `-- GtkItem
                            `-- GtkTreeItem

Direct subclasses

None.

Description

A GtkTreeItem is one node of a GtkTree. Because GtkTreeItem extends GtkItem, it may contain one child. That child should be a GtkTree.

See also: GtkTree

GtkTreeItem has been deprecated since GTK+ 2.0 and should not be used in newly written code.

Constructor

GtkTreeItem (string node_text );
-- Creates a new GtkTreeItem with the given text.

Methods

set_subtree()
  Adds a tree of children nodes.
remove_subtree()
  Removes a node's subtree.
select()
  Selects the node.
deselect()
  Deselects the node.
expand()
  Shows the node's subtree.
collapse()
  Hides the node's subtree.

Signals

"expand"
  Emitted when expand() is called.
"collapse"
  Emitted when collapse() is called.
"select"
  Emitted when the tree item is selected.
"deselect"
  Emitted when the tree item is deselected.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.