pros::screen namespace

Contents

Functions

std::uint32_t pros::screen::set_pen(pros::Color color)
Screen Graphical Display Functions
std::uint32_t pros::screen::set_pen(std::uint32_t color)
Set the pen color for subsequent graphics operations.
std::uint32_t pros::screen::set_eraser(pros::Color color)
Set the eraser color for erasing and the current background.
std::uint32_t pros::screen::set_eraser(std::uint32_t color)
Set the eraser color for erasing and the current background.
std::uint32_t pros::screen::get_pen()
Get the current pen color.
std::uint32_t pros::screen::get_eraser()
Get the current eraser color.
std::uint32_t pros::screen::erase()
Clear display with eraser color.
std::uint32_t pros::screen::scroll(const std::int16_t start_line, const std::int16_t lines)
Scroll lines on the display upwards.
std::uint32_t pros::screen::scroll_area(const std::int16_t x0, const std::int16_t y0, const std::int16_t x1, const std::int16_t y1, std::int16_t lines)
Scroll lines within a region on the display.
std::uint32_t pros::screen::copy_area(const std::int16_t x0, const std::int16_t y0, const std::int16_t x1, const std::int16_t y1, uint32_t* buf, const std::int32_t stride)
Copy a screen region (designated by a rectangle) from an off-screen buffer to the screen.
std::uint32_t pros::screen::draw_pixel(const std::int16_t x, const std::int16_t y)
Draw a single pixel on the screen using the current pen color.
std::uint32_t pros::screen::erase_pixel(const std::int16_t x, const std::int16_t y)
Erase a pixel from the screen (Sets the location)
std::uint32_t pros::screen::draw_line(const std::int16_t x0, const std::int16_t y0, const std::int16_t x1, const std::int16_t y1)
Draw a line on the screen using the current pen color.
std::uint32_t pros::screen::erase_line(const std::int16_t x0, const std::int16_t y0, const std::int16_t x1, const std::int16_t y1)
Erase a line on the screen using the current eraser color.
std::uint32_t pros::screen::draw_rect(const std::int16_t x0, const std::int16_t y0, const std::int16_t x1, const std::int16_t y1)
Draw a rectangle on the screen using the current pen color.
std::uint32_t pros::screen::erase_rect(const std::int16_t x0, const std::int16_t y0, const std::int16_t x1, const std::int16_t y1)
Erase a rectangle on the screen using the current eraser color.
std::uint32_t pros::screen::fill_rect(const std::int16_t x0, const std::int16_t y0, const std::int16_t x1, const std::int16_t y1)
Fill a rectangular region of the screen using the current pen color.
std::uint32_t pros::screen::draw_circle(const std::int16_t x, const std::int16_t y, const std::int16_t radius)
Draw a circle on the screen using the current pen color.
std::uint32_t pros::screen::erase_circle(const std::int16_t x, const std::int16_t y, const std::int16_t radius)
Erase a circle on the screen using the current eraser color.
std::uint32_t pros::screen::fill_circle(const std::int16_t x, const std::int16_t y, const std::int16_t radius)
Fill a circular region of the screen using the current pen color.
screen_touch_status_s_t pros::screen::touch_status()
Screen Text Display Functions
std::uint32_t pros::screen::touch_callback(touch_event_cb_fn_t cb, last_touch_e_t event_type)
Assigns a callback function to be called when a certain touch event happens.