24 void drawCursor()
const;
38 Input(
fontsize_t scale,
color_t textColor,
color_t backgroundColor,
const Size &
size = {0, 0},
radius_t borderRadius = 0,
const Position &pos = {0, 0},
const Alignment &align = {ALIGN_LEFT, ALIGN_TOP},
const Padding &
padding = {0});
51 Input(
const GFXfont &font,
color_t textColor,
color_t backgroundColor,
const Size &
size = {0, 0},
radius_t borderRadius = 0,
const Position &pos = {0, 0},
const Alignment &align = {ALIGN_LEFT, ALIGN_TOP},
const Padding &
padding = {0});
93 void draw()
const override;
96 DERIVE_EVENT_HANDLERS(
Input)
A basic widget that displays a rounded rectangle behind another widget.
Definition panel.hpp:18
Size size() const override
Get the size of the widget.
uint16_t color_t
An RGB565 color value. 5 bits red, 6 bits green, 5 bits blue.
Definition color.hpp:13
uint16_t fontsize_t
A non-negative integer for font sizes.
Definition fontsize.hpp:12
uint16_t radius_t
A non-negative size for the pixel radius of curved shapes.
Definition radius.hpp:12
A struct for storing the pixel coordinates of various UI elements.
Definition coords.hpp:17
A struct that holds the normalized position of a widget.
Definition position.hpp:15
A struct that holds the number of pixels that a widget would take up on the screen.
Definition size.hpp:17