Embedded SDK
Embedded SDK
|
API of the Advanced BOLOS Graphical Library, for predefined pages. More...
Go to the source code of this file.
Classes | |
struct | nbgl_pageContent_s |
This structure contains data to build a page in multi-pages mode (nbgl_pageDrawGenericContent) More... | |
struct | nbgl_pageNavWithTap_s |
Structure containing all information to create a navigation with "tap". More... | |
struct | nbgl_pageNavWithButtons_s |
Structure containing all information to create a navigation with buttons in bottom nav bar. More... | |
struct | nbgl_pageMultiScreensDescription_s |
Structure containing all specific information when creating a multi-screens page. More... | |
struct | nbgl_pageConfirmationDescription_s |
Structure containing all specific information when creating a confirmation page. More... | |
struct | nbgl_pageAddressConfirmationDescription_s |
Structure containing all specific information when creating a address confirmation page. This page contains the address in a tag/value format, and a white button to dipsplay the same address as a QRCode in a modal window. At the bottom 2 buttons allow to confirm or invalidate the address. More... | |
struct | nbgl_pageInfoDescription_s |
Structure containing all specific information when creating an information page. More... | |
Typedefs | |
typedef nbgl_contentInfoLongPress_t | nbgl_pageInfoLongPress_t |
Deprecated, kept for retro compatibility. More... | |
typedef struct nbgl_pageContent_s | nbgl_pageContent_t |
This structure contains data to build a page in multi-pages mode (nbgl_pageDrawGenericContent) More... | |
typedef void * | nbgl_page_t |
type shared externally More... | |
typedef struct nbgl_pageNavWithTap_s | nbgl_pageNavWithTap_t |
Structure containing all information to create a navigation with "tap". More... | |
typedef struct nbgl_pageNavWithButtons_s | nbgl_pageNavWithButtons_t |
Structure containing all information to create a navigation with buttons in bottom nav bar. More... | |
typedef struct nbgl_pageMultiScreensDescription_s | nbgl_pageNavigationInfo_t |
Structure containing all specific information when creating a multi-screens page. More... | |
typedef struct nbgl_pageConfirmationDescription_s | nbgl_pageConfirmationDescription_t |
Structure containing all specific information when creating a confirmation page. More... | |
typedef struct nbgl_pageAddressConfirmationDescription_s | nbgl_pageAddressConfirmationDescription_t |
Structure containing all specific information when creating a address confirmation page. This page contains the address in a tag/value format, and a white button to dipsplay the same address as a QRCode in a modal window. At the bottom 2 buttons allow to confirm or invalidate the address. More... | |
typedef struct nbgl_pageInfoDescription_s | nbgl_pageInfoDescription_t |
Structure containing all specific information when creating an information page. More... | |
Enumerations | |
enum | nbgl_pageButtonStyle_t { NO_BUTTON_STYLE = 0 , SETTINGS_ICON , QUIT_ICON , INFO_ICON , QUIT_APP_TEXT } |
The different types of top-right / bottom button. More... | |
enum | nbgl_pageNavigationType_t { NAV_WITH_TAP , NAV_WITH_BUTTONS } |
The different types of navigation in a multi-screens page. More... | |
Functions | |
nbgl_page_t * | nbgl_pageDrawLedgerInfo (nbgl_layoutTouchCallback_t onActionCallback, const nbgl_screenTickerConfiguration_t *ticker, const char *text, int tapActionToken) |
draw a page with a centered text in large case, with a round check icon More... | |
nbgl_page_t * | nbgl_pageDrawSpinner (nbgl_layoutTouchCallback_t onActionCallback, const char *text) |
draw a spinner page with the given parameters. The spinner will "rotate" automatically every 800 ms More... | |
nbgl_page_t * | nbgl_pageDrawInfo (nbgl_layoutTouchCallback_t onActionCallback, const nbgl_screenTickerConfiguration_t *ticker, const nbgl_pageInfoDescription_t *info) |
draw a page with a centered info (icon and/or texts) with a touchable footer, in a potential "tapable" area, with an optional top-right button, with an optional bottom button More... | |
nbgl_page_t * | nbgl_pageDrawConfirmation (nbgl_layoutTouchCallback_t onActionCallback, const nbgl_pageConfirmationDescription_t *info) |
draw a confirmation page, with a centered info (icon and/or text), a button to confirm and a footer to cancel More... | |
nbgl_page_t * | nbgl_pageDrawGenericContentExt (nbgl_layoutTouchCallback_t onActionCallback, const nbgl_pageNavigationInfo_t *nav, nbgl_pageContent_t *content, bool modal) |
draw a generic content page, with the given content, and if nav parameter is not NULL, with the given navigation controls (either with navigation bar or with "tap" and "back") More... | |
nbgl_page_t * | nbgl_pageDrawGenericContent (nbgl_layoutTouchCallback_t onActionCallback, const nbgl_pageNavigationInfo_t *nav, nbgl_pageContent_t *content) |
draw a generic content page, with the given content, and if nav parameter is not NULL, with the given navigation controls (either with navigation bar or with "tap" and "back") More... | |
int | nbgl_pageRelease (nbgl_page_t *) |
Release the page obtained with any of the nbgl_pageDrawXXX() functions. More... | |
API of the Advanced BOLOS Graphical Library, for predefined pages.
Definition in file nbgl_page.h.
typedef void* nbgl_page_t |
type shared externally
Definition at line 81 of file nbgl_page.h.
Structure containing all specific information when creating a address confirmation page. This page contains the address in a tag/value format, and a white button to dipsplay the same address as a QRCode in a modal window. At the bottom 2 buttons allow to confirm or invalidate the address.
Structure containing all specific information when creating a confirmation page.
typedef struct nbgl_pageContent_s nbgl_pageContent_t |
This structure contains data to build a page in multi-pages mode (nbgl_pageDrawGenericContent)
typedef struct nbgl_pageInfoDescription_s nbgl_pageInfoDescription_t |
Structure containing all specific information when creating an information page.
Deprecated, kept for retro compatibility.
Definition at line 46 of file nbgl_page.h.
typedef struct nbgl_pageMultiScreensDescription_s nbgl_pageNavigationInfo_t |
Structure containing all specific information when creating a multi-screens page.
typedef struct nbgl_pageNavWithButtons_s nbgl_pageNavWithButtons_t |
Structure containing all information to create a navigation with buttons in bottom nav bar.
typedef struct nbgl_pageNavWithTap_s nbgl_pageNavWithTap_t |
Structure containing all information to create a navigation with "tap".
The different types of top-right / bottom button.
Definition at line 35 of file nbgl_page.h.
The different types of navigation in a multi-screens page.
Enumerator | |
---|---|
NAV_WITH_TAP | move forward with "tap" and possibly backward with top left arrow |
NAV_WITH_BUTTONS | move forward and backward with buttons in bottom nav bar |
Definition at line 87 of file nbgl_page.h.
nbgl_page_t* nbgl_pageDrawConfirmation | ( | nbgl_layoutTouchCallback_t | onActionCallback, |
const nbgl_pageConfirmationDescription_t * | info | ||
) |
draw a confirmation page, with a centered info (icon and/or text), a button to confirm and a footer to cancel
onActionCallback | common callback for all actions on this page |
info | structure describing the centered info and other controls of this page |
Definition at line 455 of file nbgl_page.c.
nbgl_page_t* nbgl_pageDrawGenericContent | ( | nbgl_layoutTouchCallback_t | onActionCallback, |
const nbgl_pageNavigationInfo_t * | nav, | ||
nbgl_pageContent_t * | content | ||
) |
draw a generic content page, with the given content, and if nav parameter is not NULL, with the given navigation controls (either with navigation bar or with "tap" and "back")
onActionCallback | common callback for all actions on this page |
nav | structure describing the navigation controls of this page (no navigation if NULL) |
content | structure describing the main content of this page |
Definition at line 625 of file nbgl_page.c.
nbgl_page_t* nbgl_pageDrawGenericContentExt | ( | nbgl_layoutTouchCallback_t | onActionCallback, |
const nbgl_pageNavigationInfo_t * | nav, | ||
nbgl_pageContent_t * | content, | ||
bool | modal | ||
) |
draw a generic content page, with the given content, and if nav parameter is not NULL, with the given navigation controls (either with navigation bar or with "tap" and "back")
onActionCallback | common callback for all actions on this page |
nav | structure describing the navigation controls of this page (no navigation if NULL) |
content | structure describing the main content of this page |
modal | set to true to draw as a modal |
Definition at line 496 of file nbgl_page.c.
nbgl_page_t* nbgl_pageDrawInfo | ( | nbgl_layoutTouchCallback_t | onActionCallback, |
const nbgl_screenTickerConfiguration_t * | ticker, | ||
const nbgl_pageInfoDescription_t * | info | ||
) |
draw a page with a centered info (icon and/or texts) with a touchable footer, in a potential "tapable" area, with an optional top-right button, with an optional bottom button
onActionCallback | common callback for all actions on this page |
ticker | ticker configuration, set to NULL to disable it |
info | structure describing the centered info and other controls of this page |
Definition at line 337 of file nbgl_page.c.
nbgl_page_t* nbgl_pageDrawLedgerInfo | ( | nbgl_layoutTouchCallback_t | onActionCallback, |
const nbgl_screenTickerConfiguration_t * | ticker, | ||
const char * | text, | ||
int | tapActionToken | ||
) |
draw a page with a centered text in large case, with a round check icon
onActionCallback | common callback for all actions on this page |
ticker | ticker configuration, set to NULL to disable it |
text | text in LEDGER style (UPPER CASE only) |
tapActionToken | token passed to onActionCallback, on a tap event |
Definition at line 264 of file nbgl_page.c.
nbgl_page_t* nbgl_pageDrawSpinner | ( | nbgl_layoutTouchCallback_t | onActionCallback, |
const char * | text | ||
) |
draw a spinner page with the given parameters. The spinner will "rotate" automatically every 800 ms
onActionCallback | common callback for all actions on this page (unused, so set to NULL) |
text | text to use under spinner |
Definition at line 307 of file nbgl_page.c.
int nbgl_pageRelease | ( | nbgl_page_t * | page | ) |
Release the page obtained with any of the nbgl_pageDrawXXX() functions.
page | page to release |
Definition at line 638 of file nbgl_page.c.