picotui
picotui copied to clipboard
Feature bits
These are basically the extra bits I needed to make an OS installer gui with strict input validation and a progress display. I think they should hopefully be useful enough for everyone; thanks.
Thanks for sharing! I apologize in advance if it may take me quite some time to review these patches in detail. I also apologize in advance if I may find some changes here to be too adhoc and application-specific. Picotui is intended to provide common widgets useful in UIs, but not all possible widgets, nor all possible options for each widgets. Because these possibilities are infinite ;-). Instead, users are supposed to subclass existing widgets or write new to adjust their looks/behavior.
In this regard, this patchset is definitely a good example of what can be done for customization, and how to do that (even though it doesn't follow "subclass" approach).
Don't worry, there is plenty of implementation fun left over, and it doesn't seem too bloaty (I say that, but my brain is a lot more like a geophysical black box :chart_with_downwards_trend: (jello mold?) than it is like a class hierarchy). I did look at a boat-load of other progress "things" but I couldn't find another option that felt right. Thanks for taking the time to at least look at it.
Btw, I'm planning to make some backwards-incompatible changes: https://github.com/pfalcon/picotui/issues/59. Feedback whether that should be 1.3/1.4 or 2.0 is welcome.