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

Simplified creation of new GUI widgets #120

Closed
ImpulseAdventure opened this issue Feb 27, 2019 · 1 comment
Closed

Simplified creation of new GUI widgets #120

ImpulseAdventure opened this issue Feb 27, 2019 · 1 comment
Assignees
Labels
enhancement feedback requested Looking for input from users on idea
Milestone

Comments

@ImpulseAdventure
Copy link
Owner

ImpulseAdventure commented Feb 27, 2019

Currently, the GUIslice library provides a number of built-in element types (ie. "widgets") in the core library GUIslice.c. A number of extended elements types have been provided in GUIslice_ex.c, including textboxes, sliders, graphs, etc.

In order to increase the ease for users in creating new elements types, I would like to eliminate the GUIslice_ex file and instead provide individual widgets in /src/elem/XWidget.c (for example). This way, it would be a simple matter to create new widgets simply by adding them to the /src/elem folder, and not needing to deal with a monolithic file.

/src/elem/XCheckbox.*
/src/elem/XGauge.*
/src/elem/XSlider.*
...

User sketches could simply include the desired extended widget types at the top of the file, rather than needing to enable special FEATURE #defines.

Another advantage of this approach is that it would be easy for users to submit new widget types to the GUIslice repository by uploading a new standalone file, rather than having to merge with existing GUIslice code.

UPDATE:

@ImpulseAdventure ImpulseAdventure self-assigned this Feb 27, 2019
@ImpulseAdventure ImpulseAdventure added enhancement feedback requested Looking for input from users on idea labels Feb 27, 2019
@ImpulseAdventure ImpulseAdventure added this to the 0.12.0 milestone Feb 27, 2019
ImpulseAdventure added a commit that referenced this issue Mar 1, 2019
Intention of this change is to simplify the creation of new extended elements #120 
- Migrated extended elements out of `/src/GUIslice_ex` into separate files within `/src/elem/*`
@ImpulseAdventure
Copy link
Owner Author

Library change has now been integrated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feedback requested Looking for input from users on idea
Projects
None yet
Development

No branches or pull requests

1 participant