Inheritance diagram for CmTree:
Public Methods | |
CmTree (CmContainer *parent, MTFont font, int width, int height, int n_types) | |
CmTree widget. | |
void | setImages (int type, const char *norm, const char *open, const char *sel) |
Sets the images to be associated to a given node type. | |
void | setImages (int type, CmImage *norm, CmImage *open, CmImage *sel) |
Sets the images to be associated to a give node type. | |
void | setHighLightColors (CmColor *bgc, CmColor *fgc) |
Sets the text foreground and background colors to be used to highlight a selected node. | |
void | setHighLightFGColor (CmColor *fgc) |
Sets the text foreground color to be used to highlight a selected node. | |
void | setLineColor (CmColor *color) |
Sets the color to be used to draw node connecting lines. | |
void | setSliderColor (CmColor *color) |
Sets the color of the sliders in the scrollbars of a CmTree object. | |
void | setSliderColorShift (int percentage) |
Sets the color of the sliders in the scrollbars of a CmTree object as a percentage of their normal color. | |
CmTreeNode * | getSelectedNode (void) |
Returns a reference to the currently selected node. | |
CmTreeNode * | getFirstNode (void) |
Returns a reference to the the first node in the tree. | |
void | setOpenCallback (CmCallback *owner, MTREENODE_CB cb) |
Sets the node open callback at Tree level (same callback for all nodes). | |
void | setCloseCallback (CmCallback *owner, MTREENODE_CB cb) |
Sets the node close callback at Tree level (same callback for all nodes). | |
void | setSelectCallback (CmCallback *owner, MTREENODE_CB cb) |
Sets the node select callback at Tree level (same callback for all nodes). |
It is used by the MFileBrowse utility function. It was made up using the standard MGui API.
|
CmTree widget.
|
|
Returns a reference to the the first node in the tree.
|
|
Returns a reference to the currently selected node.
|
|
Sets the node close callback at Tree level (same callback for all nodes).
|
|
Sets the text foreground and background colors to be used to highlight a selected node.
|
|
Sets the text foreground color to be used to highlight a selected node.
|
|
Sets the images to be associated to a give node type. The set images are used by default to draw node icons.
|
|
Sets the images to be associated to a given node type. The set images are used by default to draw icons for all nodes of the same type.
|
|
Sets the color to be used to draw node connecting lines.
|
|
Sets the node open callback at Tree level (same callback for all nodes).
|
|
Sets the node select callback at Tree level (same callback for all nodes).
|
|
Sets the color of the sliders in the scrollbars of a CmTree object.
|
|
Sets the color of the sliders in the scrollbars of a CmTree object as a percentage of their normal color.
|