Allow getting the node's icon
This commit is contained in:
parent
6c9d0aaee7
commit
034ba7c2f2
|
@ -1551,6 +1551,17 @@ const char *tree_node_element_get_text(struct node_element *element)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the node element's icon
|
||||
*
|
||||
* \return the node element's icon
|
||||
*/
|
||||
struct bitmap *tree_node_element_get_icon(struct node_element *element)
|
||||
{
|
||||
return element->bitmap;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the root node of a tree
|
||||
*
|
||||
|
|
|
@ -200,6 +200,7 @@ void tree_update_node_element(struct tree *tree, struct node_element *element,
|
|||
const char *text, void *bitmap);
|
||||
bool tree_update_element_text(struct tree *tree, struct node_element *element, char *text);
|
||||
const char *tree_node_element_get_text(struct node_element *element);
|
||||
struct bitmap *tree_node_element_get_icon(struct node_element *element);
|
||||
struct node *tree_get_root(struct tree *tree);
|
||||
bool tree_is_edited(struct tree *tree);
|
||||
tree_drag_type tree_drag_status(struct tree *tree);
|
||||
|
|
Loading…
Reference in New Issue