bool touch_register_area(TOUCH_AREA_STRUCT *area)
const char * text
The label of the button.
Receive an event when the pen moves inside the region (pen is down)
uint16_t txtcolor
The 16-bit text color.
Receive an event when the pen goes down inside the region.
Receive an event when the pen goes up inside the region.
bool gui_checkbox_add(CHECKBOX_STRUCT *checkbox)
void tft_draw_circle(uint16_t x, uint16_t y, uint16_t r, uint16_t color)
void tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
uint16_t x
The x-Coordinate of the Top-Left Starting Point.
uint16_t y1
Top Left Y-Coordinate of Area.
void tft_print_line(uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, uint8_t font, const char *text)
uint16_t x1
Top Left X-Coordinate of Area.
bool checked
A boolean which indicates whether or not the checkbox is currently checked.
uint16_t bgcolor
The 16-bit background color of the button.
static void touchCB(void *touchArea, TOUCH_ACTION triggeredAction)
TOUCH_AREA_STRUCT base
Basic geometry of the button. You only need to set the x1, y1, x2, y2 members of this struct...
NUMUPDOWN_CALLBACK callback
Callback which is executed when the value changes.
uint16_t y2
Bottom Right Y-Coordinate of Area.
uint16_t y
The y-Coordinate of the Top-Left Starting Point.
int16_t max
The maximum possible value (inclusive)
void tft_draw_pixel(uint16_t x, uint16_t y, uint16_t color)
TOUCH_CALLBACK callback
Callback which is executed when an event occurred in this Area.
void tft_clear(uint16_t color)
uint16_t x2
Bottom Right X-Coordinate of Area.
Receive an event when the pen enters the region (pen was down before)
int16_t min
The minimum possible value (inclusive)
void tft_fill_rectangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
static TOUCH_AREA_STRUCT a_area
TOUCH_ACTION hookedActions
Actions to listen to.
static void checkboxCB(void *checkbox, bool checked)
uint16_t fgcolor
The 16-bit color of the value-text.
void tft_draw_rectangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
static void n_updown_cb(void *numupdown, int16_t value)
TOUCH_AREA_STRUCT base
Basic geometry of the Checkbox. You only need to set the x1, y1, x2, y2 members of this struct...
static NUMUPDOWN_STRUCT n_updown
int16_t value
The current/default value.
uint16_t fgcolor
The 16-bit color of the tickmark.
static BUTTON_STRUCT b_back
BUTTON_CALLBACK callback
Callback which is executed when the button is pressed.
CHECKBOX_CALLBACK callback
Callback which is executed when the checkbox changes state.
uint8_t font
The number of the font to use.
static void b_back_cb(void *button)
static CHECKBOX_STRUCT c_cbox
Receive an event when the pen leaves the region (pen was inside region before)
bool gui_numupdown_add(NUMUPDOWN_STRUCT *numupdown)