libui icon indicating copy to clipboard operation
libui copied to clipboard

Add new API functions to get and set the visibility of table headers.

Open szanni opened this issue 5 years ago • 0 comments

Proposal for two new API additions to un/hide table headers:

int uiTableHeaderVisible(uiTable *t);
void uiTableHeaderSetVisible(uiTable *t, int visible);

@nowind is this similar to what you had in mind with your comment in #310?

--

Added API functions: uiTableHeaderVisible() to determine whether the table header is visible. uiTableHeaderSetVisible() to set the visibility of the table header.

Implementation provided for unix, darwin, and windows.

Notes: as darwin does not provide an API for hiding or recreating the table header I opted for saving a reference and restoring that when the visibility is set back to true. Setting the header to nil to hide it is the suggested method for hiding the header according to the docs.

szanni avatar Sep 15 '20 14:09 szanni