Functions | |
MOBJECT | MCreateTree (MOBJECT parent, MTFont font, int width, int height, int n_types) |
Create an empty MTree widget. | |
MTNODE | MTreeCreateNode (MOBJECT tree, MTNODE parent, CARD16 type, CARD16 flags, const char *text, void *ud) |
Adds a node to the MTree. | |
void | MTreeDestroyNode (MTNODE node, int notify) |
Destroys a node and all its contained nodes. | |
void | MTreeDestroyNodeContainee (MTNODE node, int notify) |
Destroys all contained nodes, but not the node itself. | |
void | MTreeOpenNode (MTNODE node, int notify) |
Opens a node making its children available. | |
void | MTreeCloseNode (MTNODE node, int notify) |
Closes a node making its children unavailable. | |
void | MTreeSelectNode (MTNODE node, int notify) |
Selects a node (passing it the input focus). | |
void | MTreeSetOpenCallback (MOBJECT tree, MTREE_NODE_CB cb, void *ud) |
Sets the node open callback at Tree level (same callback for all nodes). | |
void | MTreeSetCloseCallback (MOBJECT tree, MTREE_NODE_CB cb, void *ud) |
Sets the node close callback at Tree level (same callback for all nodes). | |
void | MTreeSetSelectCallback (MOBJECT tree, MTREE_NODE_CB cb, void *ud) |
Sets the node select callback at Tree level (same callback for all nodes). | |
void | MTreeSetDestroyCallback (MOBJECT tree, MTREE_NODE_CB cb, void *ud) |
Sets the node close callback at Tree level (same callback for all nodes). | |
void | MTreeSetImagesByName (MOBJECT tree, int type, const char *norm, const char *open, const char *sel) |
Sets the images to be associated to a given node type. | |
void | MTreeSetImagesByData (MOBJECT tree, int type, MIMAGE norm, MIMAGE open, MIMAGE sel) |
Sets the images to be associated to a give node type. | |
void | MTreeSetHighLightColors (MOBJECT tree, MTColor bgc, MTColor fgc) |
Sets the text foreground and background colors to be used to highlight a selected node. | |
void | MTreeSetHighLightFGColor (MOBJECT tree, MTColor fgc) |
Sets the text foreground color to be used to highlight a selected node. | |
void | MTreeSetLineColor (MOBJECT tree, MTColor color) |
Sets the color to be used to draw node connecting lines. | |
MOBJECT | MTreeGetVScrollBar (MOBJECT tree) |
Returns the widget identifier of the vertical scrollbar in an MTree object. | |
MOBJECT | MTreeGetHScrollBar (MOBJECT tree) |
Returns the widget identifier of the horizontal scrollbar in an MTree object. | |
void | MTreeSetSliderColor (MOBJECT tree, MTColor color) |
Sets the color of the sliders in the scrollbars of an MTree object. | |
void | MTreeSetSliderColorShift (MOBJECT tree, int percentage) |
Sets the color of the sliders in the scrollbars of an MTree object as a percentage of their normal color. | |
MTNODE | MTreeGetSelectedNode (MOBJECT tree) |
Returns the identifier of the currently selected node. | |
MTNODE | MTreeGetFirstNode (MOBJECT tree) |
Returns the identifier of the first node in an MTree object. | |
MTNODE | MTreeNodeGetNext (MTNODE node) |
Returns the identifier of the node following the one specified as argument. | |
MTNODE | MTreeNodeGetFirstChild (MTNODE node) |
Returns the identifier of the first node contained inside the one specified as argument. | |
MTNODE | MTreeNodeGetParent (MTNODE node) |
Returns the identifier of the parent node of the one specified as argument. | |
char * | MTreeNodeGetPath (MTNODE node, char separator, char *buff) |
Creates a path composed by concatenating the name of all nodes starting from the root up to the node specified as argument. | |
void | MTreeNodeSetImages (MTNODE node, MIMAGE norm, MIMAGE open, MIMAGE sel) |
Sets the images to be associated to a specific node. | |
void | MTreeNodeSetText (MTNODE node, const char *text) |
Changes the text associated to a node. | |
char * | MTreeNodeGetText (MTNODE node, char *text) |
Retrieves the text associated to a node. | |
void | MTreeNodeSetUserData (MTNODE node, void *ud) |
Sets the user data associated to a node. | |
void * | MTreeNodeGetUserData (MTNODE node) |
Retrieves the value of the user data for node callbacks. | |
MOBJECT | MTreeNodeGetMTree (MTNODE node) |
Retrieves the MTree container for a node. | |
CARD16 | MTreeNodeGetType (MTNODE node) |
Retrieves the type of the specified node. | |
void | MTreeNodeSetOpenCallback (MTNODE node, MTREE_NODE_CB cb, void *ud) |
Sets the node open callback at local level (callback applies to this node only). | |
void | MTreeNodeSetCloseCallback (MTNODE node, MTREE_NODE_CB cb, void *ud) |
Sets the node close callback at local level (callback applies to this node only). | |
void | MTreeNodeSetSelectCallback (MTNODE node, MTREE_NODE_CB cb, void *ud) |
Sets the node select callback at local level (callback applies to this node only). | |
void | MTreeNodeSetDestroyCallback (MTNODE node, MTREE_NODE_CB cb, void *ud) |
Sets the node destroy callback at local level (callback applies to this node only). |
It is used by the MFileBrowse utility function. It was made up using the standard MGui API.
|
Create an empty MTree widget.
|
|
Closes a node making its children unavailable.
|
|
Adds a node to the MTree.
|
|
Destroys a node and all its contained nodes.
|
|
Destroys all contained nodes, but not the node itself.
|
|
Returns the identifier of the first node in an MTree object.
|
|
Returns the widget identifier of the horizontal scrollbar in an MTree object.
|
|
Returns the identifier of the currently selected node.
|
|
Returns the widget identifier of the vertical scrollbar in an MTree object.
|
|
Returns the identifier of the first node contained inside the one specified as argument.
|
|
Retrieves the MTree container for a node.
|
|
Returns the identifier of the node following the one specified as argument.
|
|
Returns the identifier of the parent node of the one specified as argument.
|
|
Creates a path composed by concatenating the name of all nodes starting from the root up to the node specified as argument.
|
|
Retrieves the text associated to a node.
|
|
Retrieves the type of the specified node.
|
|
Retrieves the value of the user data for node callbacks.
|
|
Sets the node close callback at local level (callback applies to this node only).
|
|
Sets the node destroy callback at local level (callback applies to this node only).
|
|
Sets the images to be associated to a specific node. The set images are used only for the node specified as argument.
|
|
Sets the node open callback at local level (callback applies to this node only).
|
|
Sets the node select callback at local level (callback applies to this node only).
|
|
Changes the text associated to a node.
|
|
Sets the user data associated to a node. This value is passed back to the application whenever one of the MTree callbacks is called for the given node. There is no global value for user data, you have to supply it for all nodes individually if you're interested in getting a not NULL value as the userd data in the callbacks.
|
|
Opens a node making its children available.
|
|
Selects a node (passing it the input focus).
|
|
Sets the node close callback at Tree level (same callback for all nodes).
|
|
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 an MTree object.
|
|
Sets the color of the sliders in the scrollbars of an MTree object as a percentage of their normal color.
|