RIT VEXU Core API
Loading...
Searching...
No Matches
screen::Page Class Reference

Page describes one part of the screen slideshow. More...

#include <screen.h>

Inheritance diagram for screen::Page:
AutoChooser screen::FunctionPage screen::OdometryPage screen::PIDPage screen::StatsPage

Public Member Functions

virtual void update (bool was_pressed, int x, int y)
 collect data, respond to screen input, do fast things (runs at 50hz even if you're not focused on this Page (only drawn page gets touch updates))
 
virtual void draw (vex::brain::lcd &screen, bool first_draw, unsigned int frame_number)
 draw stored data to the screen (runs at 10 hz and only runs if this page is in front)
 

Detailed Description

Page describes one part of the screen slideshow.

Member Function Documentation

◆ draw()

virtual void screen::Page::draw ( vex::brain::lcd & screen,
bool first_draw,
unsigned int frame_number )
virtual

draw stored data to the screen (runs at 10 hz and only runs if this page is in front)

Parameters
first_drawtrue if we just switched to this page
frame_numberframe of drawing we are on (basically an animation tick)

Reimplemented in screen::StatsPage, screen::OdometryPage, screen::FunctionPage, and screen::PIDPage.

◆ update()

virtual void screen::Page::update ( bool was_pressed,
int x,
int y )
virtual

collect data, respond to screen input, do fast things (runs at 50hz even if you're not focused on this Page (only drawn page gets touch updates))

Parameters
was_pressedtrue if the screen has been pressed
xx position of screen press (if the screen was pressed)
yy position of screen press (if the screen was pressed)

Reimplemented in screen::StatsPage, screen::OdometryPage, screen::FunctionPage, and screen::PIDPage.


The documentation for this class was generated from the following file: