|
RIT VEXU Core API
|
InitializerPage provides a way to Select a desired Initialization on the Screen. More...
#include <legacy.h>
Public Member Functions | |
| InitializerPage (const Initializer &initializer, size_t starting_index=0) | |
| Creates an InitializerPage. | |
| void | update (bool was_pressed, int x, int y) override |
| void | draw (vex::brain::lcd &, bool first_draw, unsigned int frame_number) override |
Static Public Member Functions | |
| static InitializerPage * | Next () |
| Creates an InitializerPage that renders the following Initializations from the last. | |
| static size_t | selector () |
| When using InitializerPage to select an Initialization, use this as the raw selector function. | |
| static std::function< Selector::selector_t > | timed_selector (unsigned int seconds, size_t fallback=DEFAULT_CANCELATION_INDEX) |
| When using InitializerPage wrapped by a timeout, call this to generate the desired selector function. | |
| static void | cancel (size_t selected) |
| When using a selector function wrapper that may cancel or otherwise cause the InitializerPage's selector to fail, call this. | |
Static Public Attributes | |
| static const size_t | DEFAULT_CANCELATION_INDEX = Selector::NO_SELECTION_INDEX - 1 |
| The default selected index if a cancelation occured during selection. | |
InitializerPage provides a way to Select a desired Initialization on the Screen.
| LegacyScreen::InitializerPage::InitializerPage | ( | const Initializer & | initializer, |
| size_t | starting_index = 0 ) |
Creates an InitializerPage.
| initializer | The initializer object for which this page provides a GUI of |
| starting_index | The first Initialization to be rendered on the page (note that 8 Initializations are rendered per page) |
|
static |
When using a selector function wrapper that may cancel or otherwise cause the InitializerPage's selector to fail, call this.
| selected | The value selected that ended up being selected. |
|
overridevirtual |
Reimplemented from LegacyScreen::Page.
|
inlinestatic |
When using InitializerPage wrapped by a timeout, call this to generate the desired selector function.
| seconds | The amount of seconds after which the selector function will timeout |
| fallback | The value which ends up being selected should the selector function timeout |
|
overridevirtual |
Reimplemented from LegacyScreen::Page.