EasyGUI
guii_touch_data_t Struct Reference

Internal touch structure used for widget callbacks. More...

#include <gui_defs.h>

Data Fields

gui_touch_data_t ts
 
gui_dim_t x_old [GUI_CFG_TOUCH_MAX_PRESSES]
 
gui_dim_t y_old [GUI_CFG_TOUCH_MAX_PRESSES]
 
gui_dim_t x_rel [GUI_CFG_TOUCH_MAX_PRESSES]
 
gui_dim_t y_rel [GUI_CFG_TOUCH_MAX_PRESSES]
 
gui_dim_t x_diff [GUI_CFG_TOUCH_MAX_PRESSES]
 
gui_dim_t y_diff [GUI_CFG_TOUCH_MAX_PRESSES]
 
gui_dim_t widget_x
 
gui_dim_t widget_y
 
gui_dim_t widget_width
 
gui_dim_t widget_height
 
float distance_old
 
float distance
 
struct pt pt
 

Detailed Description

Internal touch structure used for widget callbacks.

Field Documentation

◆ distance

float distance

Distance between 2 points when 2 touch elements are detected

◆ distance_old

float distance_old

Old distance between 2 points

◆ pt

struct pt pt

Protothread structure

◆ ts

Touch data structure, used to read from buffer

◆ widget_height

gui_dim_t widget_height

Widget height

◆ widget_width

gui_dim_t widget_width

Widget width

◆ widget_x

gui_dim_t widget_x

Widget absolute X position

◆ widget_y

gui_dim_t widget_y

Widget absolute Y position

◆ x_diff

X difference between old and new touch position

◆ x_old

Old absolute X position

◆ x_rel

Relative X position to current widget

◆ y_diff

Y difference between old and new touch position

◆ y_old

Old absolute Y position

◆ y_rel

Relative Y position to current widget