|
Embedded SDK
Embedded SDK
|
The construction of a navigation bar with buttons super-object. More...
#include "nbgl_debug.h"#include "nbgl_draw.h"#include "nbgl_obj.h"#include "nbgl_layout_internal.h"#include "os_print.h"#include "os_helpers.h"#include "glyphs.h"
Go to the source code of this file.
Macros | |
| #define | INTERNAL_SMALL_MARGIN 8 |
| #define | BORDER_COLOR WHITE |
Enumerations | |
| enum | { EXIT_BUTTON_INDEX = 0 , PREVIOUS_PAGE_INDEX , NEXT_PAGE_INDEX , PAGE_INDICATOR_INDEX , NB_MAX_CHILDREN } |
Functions | |
| bool | layoutNavigationCallback (nbgl_obj_t *obj, nbgl_touchType_t eventType, uint8_t nbPages, uint8_t *activePage) |
| function to be called when any of the controls in navigation bar is touched | |
| void | layoutNavigationPopulate (nbgl_container_t *navContainer, const nbgl_layoutNavigationBar_t *navConfig, uint8_t layer) |
| This function creates a full navigation bar "object", with buttons and returns it as a container. | |
The construction of a navigation bar with buttons super-object.
Definition in file nbgl_layout_navigation.c.
| #define BORDER_COLOR WHITE |
Definition at line 26 of file nbgl_layout_navigation.c.
| #define INTERNAL_SMALL_MARGIN 8 |
Definition at line 24 of file nbgl_layout_navigation.c.
| anonymous enum |
| Enumerator | |
|---|---|
| EXIT_BUTTON_INDEX | |
| PREVIOUS_PAGE_INDEX | |
| NEXT_PAGE_INDEX | |
| PAGE_INDICATOR_INDEX | |
| NB_MAX_CHILDREN | |
Definition at line 47 of file nbgl_layout_navigation.c.
| bool layoutNavigationCallback | ( | nbgl_obj_t * | obj, |
| nbgl_touchType_t | eventType, | ||
| uint8_t | nbPages, | ||
| uint8_t * | activePage | ||
| ) |
function to be called when any of the controls in navigation bar is touched
| obj | touched object (button or container) |
| eventType | type of touch (only TOUCHED or SWIPED is accepted) |
| nbPages | number of pages for navigation (if < 2, no navigation keys) |
| activePage | current active page |
Definition at line 94 of file nbgl_layout_navigation.c.
| void layoutNavigationPopulate | ( | nbgl_container_t * | navContainer, |
| const nbgl_layoutNavigationBar_t * | navConfig, | ||
| uint8_t | layer | ||
| ) |
This function creates a full navigation bar "object", with buttons and returns it as a container.
| navContainer | container used for the objects of the navigation |
| navConfig | configuration to create the navigation bar, at the bottom of the screen |
| layer | layer (screen) to create the navigation bar in |
Definition at line 151 of file nbgl_layout_navigation.c.