Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
nbgl_step_internal.h File Reference

Internal functions of NBGL step layer. More...

#include "nbgl_step.h"
Include dependency graph for nbgl_step_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nbgl_step_t stepDrawText (nbgl_stepPosition_t pos, nbgl_stepButtonCallback_t onActionCallback, nbgl_screenTickerConfiguration_t *ticker, const char *text, const char *subText, nbgl_contentCenteredInfoStyle_t style, bool modal, uint8_t nbMaxLinesForSubText)
 Same as nbgl_stepDrawText(), with the possibility to truncate subText.

Detailed Description

Internal functions of NBGL step layer.

Definition in file nbgl_step_internal.h.

Function Documentation

◆ stepDrawText()

nbgl_step_t stepDrawText ( nbgl_stepPosition_t pos,
nbgl_stepButtonCallback_t onActionCallback,
nbgl_screenTickerConfiguration_t * ticker,
const char * text,
const char * subText,
nbgl_contentCenteredInfoStyle_t style,
bool modal,
uint8_t nbMaxLinesForSubText )

Same as nbgl_stepDrawText(), with the possibility to truncate subText.

Parameters
posposition of this step in the flow (first, last, single, not_first_nor_last)
onActionCallbackcommon callback for all actions on this page
tickerticker configuration, set to NULL to disable it
texttext to display (depending of style)
subTexttext to display under text (depending of style)
stylestyle to use for text and subText
modalif true, means this step shall be displayed on top of existing one
nbMaxLinesForSubTextif > 0, subText is displayed in a single page, in at most this number of lines (or buttons in BUTTON_INFO style), the last one ending with "..." if it doesn't fit. Otherwise, subText is displayed in as many pages as necessary
Returns
the step context (or NULL if error)

Definition at line 524 of file nbgl_step.c.