Add height getter.

This commit is contained in:
Michael Drake 2013-08-28 14:12:30 +01:00
parent 28dec67c64
commit bc14d492d2

View File

@ -3145,6 +3145,16 @@ void treeview_mouse_action(treeview *tree,
}
/* Exported interface, documented in treeview.h */
int treeview_get_height(treeview *tree)
{
assert(tree != NULL);
assert(tree->root != NULL);
return tree->root->height;
}
/**
* Initialise the plot styles from CSS system colour values.
*/