RIT VEXU Core API
|
Simple page that stores no internal data. the draw and update functions use only global data rather than storing anything. More...
#include <screen.h>
Public Member Functions | |
FunctionPage (update_func_t update_f, draw_func_t draw_t) | |
Creates a function page. | |
void | update (bool was_pressed, int x, int y) override |
update uses the supplied update function to update this page | |
void | draw (vex::brain::lcd &, bool first_draw, unsigned int frame_number) override |
draw uses the supplied draw function to draw to the screen | |
Simple page that stores no internal data. the draw and update functions use only global data rather than storing anything.
screen::FunctionPage::FunctionPage | ( | update_func_t | update_f, |
draw_func_t | draw_f ) |
Creates a function page.
update_f | the function called every tick to respond to user input or do data collection |
draw_t | the function called to draw to the screen |
update_f | drawing function |
draw_f | drawing function |
|
overridevirtual |
draw uses the supplied draw function to draw to the screen
Reimplemented from screen::Page.
|
overridevirtual |
update uses the supplied update function to update this page
Reimplemented from screen::Page.