Embedded SDK
Embedded SDK
nbgl_layout_internal_nanos.h
Go to the documentation of this file.
1 
7 #ifndef NBGL_LAYOUT_INTERNAL_NANOS_H
8 #define NBGL_LAYOUT_INTERNAL_NANOS_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 #include "nbgl_layout.h"
15 
16 /*********************
17  * INCLUDES
18  *********************/
19 
20 /*********************
21  * DEFINES
22  *********************/
27 #define LAYOUT_OBJ_POOL_LEN 10
28 
29 /**********************
30  * TYPEDEFS
31  **********************/
32 
38 typedef struct nbgl_layoutInternal_s {
39  bool modal;
40  uint8_t layer;
44 
45  nbgl_layoutButtonCallback_t callback; // user callback for all controls
47 
48 /**********************
49  * GLOBAL PROTOTYPES
50  **********************/
52 
53 /**********************
54  * MACROS
55  **********************/
56 
57 #ifdef __cplusplus
58 } /* extern "C" */
59 #endif
60 
61 #endif /* NBGL_LAYOUT_INTERNAL_NANOS_H */
API of the Advanced BOLOS Graphical Library, for predefined layouts.
void(* nbgl_layoutButtonCallback_t)(nbgl_layout_t *layout, nbgl_buttonEvent_t event)
prototype of function to be called when buttons are touched on a screen
Definition: nbgl_layout.h:111
void layoutAddObject(nbgl_layoutInternal_t *layout, nbgl_obj_t *obj)
adds the given obj to the main container
Definition: nbgl_layout.c:519
struct nbgl_layoutInternal_s nbgl_layoutInternal_t
Structure containing all information about the current layout.
struct PACKED__ nbgl_obj_s nbgl_obj_t
Common structure for all graphical objects.
Structure containing all information about the current layout.
nbgl_layoutButtonCallback_t callback
bool modal
if true, means the screen is a modal
uint8_t nbChildren
number of children in above array
nbgl_obj_t ** children
children for main screen
unsigned char uint8_t
Definition: usbd_conf.h:53