Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new API functions to get/set table column widths. #514

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

szanni
Copy link

@szanni szanni commented Sep 19, 2020

Proposal to add API functions to get and set table column widths:

int uiTableColumnWidth(uiTable *t, int column);
void uiTableColumnSetWidth(uiTable *t, int column, int width);

Same as in #513 we need a way to identify columns, so I cherry picked the commit that does column identification by index.

Implementations provided for all platforms (darwin, unix, windows) with a testbed in page16.

To be able to identify table columns individually use the order
that columns have been added to the table as the ID.
First added column: 0, second: 1, ...
uiTableColumnWidth
uiTableColumnSetWidth

Implementations provided for darwin, unix, and windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant