Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
nbgl_touch.h
Go to the documentation of this file.
1
6
7#ifndef NBGL_TOUCH_H
8#define NBGL_TOUCH_H
9
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16/*********************
17 * INCLUDES
18 *********************/
19#include "nbgl_types.h"
20#include "nbgl_obj.h"
21
22/*********************
23 * DEFINES
24 *********************/
25// duration of a short touch on touch panel (in ms)
26#define SHORT_TOUCH_DURATION 0
27// duration of a long touch on touch panel (in ms)
28#define LONG_TOUCH_DURATION 3000
29/**********************
30 * TYPEDEFS
31 **********************/
32
33/**********************
34 * GLOBAL PROTOTYPES
35 **********************/
36void nbgl_touchInit(bool fromUx);
37void nbgl_touchHandler(bool fromUx, nbgl_touchStatePosition_t *touchEvent, uint32_t currentTimeMs);
43void nbgl_touchClear(bool fromUx);
44
45/**********************
46 * MACROS
47 **********************/
48
49#ifdef __cplusplus
50} /* extern "C" */
51#endif
52
53#endif /* NBGL_TOUCH_H */
Included by every low-level NBGL header, to forbid them in apollo app code.
API to draw all basic graphic objects.
struct PACKED__ nbgl_obj_s nbgl_obj_t
Common structure for all graphical objects.
void nbgl_touchClear(bool fromUx)
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)
uint32_t nbgl_touchGetTouchDuration(nbgl_obj_t *obj)
void nbgl_touchInit(bool fromUx)
void nbgl_touchHandler(bool fromUx, nbgl_touchStatePosition_t *touchEvent, uint32_t currentTimeMs)
common types for Graphical Library
The low level Touchscreen event, coming from driver.
Definition nbgl_obj.h:220