Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions
nbgl_layout_internal.h File Reference

Internal functions/constants of NBGL layout layer. More...

#include "nbgl_layout.h"
Include dependency graph for nbgl_layout_internal.h:

Go to the source code of this file.

Classes

struct  layoutObj_t
 
struct  nbgl_layoutInternal_s
 Structure containing all information about the current layout. More...
 

Macros

#define INTERNAL_MARGIN   8
 
#define LAYOUT_OBJ_POOL_LEN   16
 Max number of complex objects with callback retrievable from pool.
 
#define KEYBOARD_FOOTER_TYPE   99
 
#define KEYPAD_FOOTER_TYPE   98
 

Typedefs

typedef struct nbgl_layoutInternal_s nbgl_layoutInternal_t
 Structure containing all information about the current layout.
 

Enumerations

enum  nbgl_swipe_usage_t { SWIPE_USAGE_NAVIGATION , SWIPE_USAGE_CUSTOM , SWIPE_USAGE_SUGGESTIONS , NB_SWIPE_USAGE }
 
enum  {
  HEADER_INDEX = 0 , MAIN_CONTAINER_INDEX , TOP_RIGHT_BUTTON_INDEX , FOOTER_INDEX ,
  UP_FOOTER_INDEX , LEFT_BORDER_INDEX , NB_MAX_SCREEN_CHILDREN
}
 

Functions

bool keyboardSwipeCallback (nbgl_layoutInternal_t *layoutInt, nbgl_obj_t *obj, nbgl_touchType_t eventType)
 
void layoutAddObject (nbgl_layoutInternal_t *layout, nbgl_obj_t *obj)
 adds the given obj to the layout
 
layoutObj_tlayoutAddCallbackObj (nbgl_layoutInternal_t *layout, nbgl_obj_t *obj, uint8_t token, tune_index_e tuneId)
 
void layoutUpdateCallbackObjToken (nbgl_layoutInternal_t *layout, nbgl_obj_t *obj, uint8_t token)
 
void layoutNavigationPopulate (nbgl_container_t *navContainer, const nbgl_layoutNavigationBar_t *navConfig, uint8_t layer)
 
bool layoutNavigationCallback (nbgl_obj_t *obj, nbgl_touchType_t eventType, uint8_t nbPages, uint8_t *activePage)
 

Detailed Description

Internal functions/constants of NBGL layout layer.

Definition in file nbgl_layout_internal.h.

Macro Definition Documentation

◆ INTERNAL_MARGIN

#define INTERNAL_MARGIN   8

Definition at line 24 of file nbgl_layout_internal.h.

◆ KEYBOARD_FOOTER_TYPE

#define KEYBOARD_FOOTER_TYPE   99

Definition at line 42 of file nbgl_layout_internal.h.

◆ KEYPAD_FOOTER_TYPE

#define KEYPAD_FOOTER_TYPE   98

Definition at line 43 of file nbgl_layout_internal.h.

◆ LAYOUT_OBJ_POOL_LEN

#define LAYOUT_OBJ_POOL_LEN   16

Max number of complex objects with callback retrievable from pool.

Definition at line 40 of file nbgl_layout_internal.h.

Typedef Documentation

◆ nbgl_layoutInternal_t

Structure containing all information about the current layout.

Note
It shall not be used externally

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
HEADER_INDEX 
MAIN_CONTAINER_INDEX 
TOP_RIGHT_BUTTON_INDEX 
FOOTER_INDEX 
UP_FOOTER_INDEX 
LEFT_BORDER_INDEX 
NB_MAX_SCREEN_CHILDREN 

Definition at line 63 of file nbgl_layout_internal.h.

◆ nbgl_swipe_usage_t

Enumerator
SWIPE_USAGE_NAVIGATION 
SWIPE_USAGE_CUSTOM 
SWIPE_USAGE_SUGGESTIONS 
NB_SWIPE_USAGE 

Definition at line 55 of file nbgl_layout_internal.h.

Function Documentation

◆ keyboardSwipeCallback()

bool keyboardSwipeCallback ( nbgl_layoutInternal_t layoutInt,
nbgl_obj_t obj,
nbgl_touchType_t  eventType 
)

◆ layoutAddCallbackObj()

layoutObj_t * layoutAddCallbackObj ( nbgl_layoutInternal_t layout,
nbgl_obj_t obj,
uint8_t  token,
tune_index_e  tuneId 
)

◆ layoutAddObject()

void layoutAddObject ( nbgl_layoutInternal_t layout,
nbgl_obj_t obj 
)

adds the given obj to the layout

Parameters
layout
obj

Definition at line 119 of file nbgl_layout_nanos.c.

◆ layoutNavigationCallback()

bool layoutNavigationCallback ( nbgl_obj_t obj,
nbgl_touchType_t  eventType,
uint8_t  nbPages,
uint8_t *  activePage 
)

◆ layoutNavigationPopulate()

void layoutNavigationPopulate ( nbgl_container_t navContainer,
const nbgl_layoutNavigationBar_t navConfig,
uint8_t  layer 
)

◆ layoutUpdateCallbackObjToken()

void layoutUpdateCallbackObjToken ( nbgl_layoutInternal_t layout,
nbgl_obj_t obj,
uint8_t  token 
)