24 #define SHORT_TOUCH_DURATION 0
26 #define LONG_TOUCH_DURATION 3000
API to draw all basic graphic objects.
struct PACKED__ nbgl_obj_s nbgl_obj_t
Common structure for all graphical objects.
bool nbgl_touchGetTouchedPosition(nbgl_obj_t *obj, nbgl_touchStatePosition_t **firstPos, nbgl_touchStatePosition_t **lastPos)
nbgl_obj_t * nbgl_touchGetObjectFromId(nbgl_obj_t *obj, uint8_t id)
parse all the children of the given object, recursively, until an object with the given touch if is f...
uint32_t nbgl_touchGetTouchDuration(nbgl_obj_t *obj)
void nbgl_touchInit(bool fromUx)
Function to initialize the touch context.
void nbgl_touchHandler(bool fromUx, nbgl_touchStatePosition_t *touchEvent, uint32_t currentTimeMs)
Function to be called periodically to check touchscreen state and coordinates.
common types for Graphical Library
The low level Touchscreen event, coming from driver.