#include <GTree.h>
Public Member Functions | |
char * | GetText (int i=0) |
Get the text for the node. | |
bool | SetText (const char *s, int i=0) |
Sets the text for the node. | |
int | GetImage (int Flags=0) |
Returns the icon index into the parent tree's GImageList. | |
void | SetImage (int i) |
Sets the icon index into the parent tree's GImageList. | |
void | Update () |
bool | Select () |
Returns true if the tree item is currently selected. | |
void | Select (bool b) |
Selects or deselects the tree item. | |
bool | Expanded () |
Returns true if the node has children and is open. | |
void | Expanded (bool b) |
Opens or closes the node to show or hide the children. | |
void | ScrollTo () |
Scrolls the tree view so this node is visible. | |
virtual void | OnExpand (bool b) |
Called when the node expands/contracts to show or hide it's children. | |
void | OnPaint (ItemPaintCtx &Ctx) |
Paints the item. | |
Friends | |
class | GTree |
char * GTreeItem::GetText | ( | int | i = 0 |
) | [virtual] |
bool GTreeItem::SetText | ( | const char * | s, | |
int | i = 0 | |||
) | [virtual] |
void GTreeItem::Update | ( | ) | [virtual] |
Tells the item to update itself on the screen when the GTreeItem::GetText data has changed.
Reimplemented from GItem.
References GRect::x2.
Referenced by GTree::OnFocus(), Select(), GTree::SelectDropTarget(), and SetText().