produceOptionNameByIndexCallback for GEMSelect and GEMSpinner - #141
Open
Spirik wants to merge 3 commits into
Open
produceOptionNameByIndexCallback for GEMSelect and GEMSpinner#141Spirik wants to merge 3 commits into
GEMSelect and GEMSpinner#141Spirik wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
produceOptionNameByIndexCallback()callback that is called before option name ofGEMSelectorGEMSpinneris printed on the screen (allows to override option name being printed, e.g. to form it dynamically based on index of an option, or modify to add ellipsis character for overflowing values, etc.);GEMSelect::setProduceOptionNameByIndexCallback(),GEMSpinner::setProduceOptionNameByIndexCallback()andGEMSelect::removeProduceOptionNameByIndexCallback(),GEMSpinner::removeProduceOptionNameByIndexCallback()methods;::getMenuItemValueLength()method made public (returns length available for menu item value to fit on screen);::getMenuItemTitleLength()method made public (returns length available for menu item title to fit on screen);GEMSelect::getType(),GEMSelect::getLength(),GEMSelect::getSelectedOptionNum(),GEMSelect::getSelectedOptionName(),GEMSelect::getOptionNameByIndex()methods made public;GEMSpinner::getType(),GEMSpinner::getLength(),GEMSpinner::getSelectedOptionNum()methods made public;GEMSpinner::optionNameToCharBuffer()method to copy option name of the suppliedGEMSpinnerValueobject to providedchar*buffer;GEMSelect::setOptions()method to specify another set of available options (e.g. to support different option names for different languages);detectEncoder()function in supplied examples with rotary encoder that makes compiled sketch size a little smaller andloop()easier to read.