Skip to content
New issue

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

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

Already on GitHub? # to your account

Feature request: write an uiBoxInsertAt function #120

Closed
parro-it opened this issue Jun 10, 2016 · 2 comments
Closed

Feature request: write an uiBoxInsertAt function #120

parro-it opened this issue Jun 10, 2016 · 2 comments

Comments

@parro-it
Copy link
Contributor

I noticed that tab widget has an useful insertAt method to add a child at a specified position.
A similar method is missing in box widget.
Since it already has a delete method, it would be a useful addition

It could be something similar to:

void uiBoxInsertAt(uiBox *b, uintmax_t before, uiControl *child, int stretchy);

It would be super useful because it allow one to replace a widget in a box with a different one, without resorting to remove and re-append all subsequent widgets in the box...

@andlabs
Copy link
Owner

andlabs commented Jun 10, 2016

Yes, all the containers need to have Append, InsertAt, and Delete on them; I just haven't gotten around to implementing them all yet.

@andlabs
Copy link
Owner

andlabs commented Mar 23, 2018

Now #309.

@andlabs andlabs closed this as completed Mar 23, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants