24 #define SHORT_TOUCH_DURATION 0
26 #define LONG_TOUCH_DURATION 1500
API to draw all basic graphic objects.
struct PACKED__ nbgl_obj_s nbgl_obj_t
Common structure for all graphical objects.
void nbgl_touchHandler(nbgl_touchStatePosition_t *touchEvent, uint32_t currentTimeMs)
Function to be called periodically to check touchscreen state and coordinates.
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)
common types for Graphical Library
The low level Touchscreen event, coming from driver.