InitializerPage provides a way to Select a desired Initialization on the Screen.
More...
#include <screen_pages.h>
|
|
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.
◆ InitializerPage()
| InitializerPage::InitializerPage |
( |
const Initializer & | initializer, |
|
|
size_t | starting_index = 0 ) |
Creates an InitializerPage.
- Parameters
-
| 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) |
◆ cancel()
| void InitializerPage::cancel |
( |
size_t | selected | ) |
|
|
static |
When using a selector function wrapper that may cancel or otherwise cause the InitializerPage's selector to fail, call this.
- Parameters
-
| selected | The value selected that ended up being selected. |
◆ draw()
| void InitializerPage::draw |
( |
vex::brain::lcd & | scr, |
|
|
bool | first_draw, |
|
|
unsigned int | frame_number ) |
|
overridevirtual |
◆ timed_selector()
When using InitializerPage wrapped by a timeout, call this to generate the desired selector function.
- Parameters
-
| 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 |
- Returns
- A selector function wrapped in a Selector::timeout
◆ update()
| void InitializerPage::update |
( |
bool | was_pressed, |
|
|
int | x, |
|
|
int | y ) |
|
overridevirtual |
- See also
- Page#update
Reimplemented from ScreenPage.
The documentation for this class was generated from the following files: