Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
TextContext_s Struct Reference

Public Attributes

uint16_t nbPages
uint16_t currentPage
 current page for this text step
const char * txtStart
 pointer on the start point of text (first page)
const char * nextPageStart
 pointer on the start point of text at the next page
const char * subTxtStart
 pointer on the start point of sub-text (first page)
nbgl_stepPosition_t pos
 position of the step within a flow (used for navigation arrows)
bool actionOnAnyButton
 if true, action applies on any button
nbgl_stepButtonCallback_t onActionCallback
char tmpString [TMP_STRING_MAX_LEN]
nbgl_contentCenteredInfoStyle_t style
 style to be used with a CENTERED_INFO_STEP step
uint8_t nbMaxLinesForSubText

Detailed Description

definition of context for a TEXT_STEP or CENTERED_INFO_STEP step

Definition at line 45 of file nbgl_step.c.

Member Data Documentation

◆ actionOnAnyButton

bool TextContext_s::actionOnAnyButton

if true, action applies on any button

Definition at line 54 of file nbgl_step.c.

◆ currentPage

uint16_t TextContext_s::currentPage

current page for this text step

Definition at line 48 of file nbgl_step.c.

◆ nbMaxLinesForSubText

uint8_t TextContext_s::nbMaxLinesForSubText

if > 0, sub-text is truncated to this number of lines (or buttons) in a single page

Definition at line 61 of file nbgl_step.c.

◆ nbPages

uint16_t TextContext_s::nbPages

number of pages for this text step (a page contains at least one byte and text lengths are 16 bits, so it cannot overflow)

Definition at line 46 of file nbgl_step.c.

◆ nextPageStart

const char* TextContext_s::nextPageStart

pointer on the start point of text at the next page

Definition at line 50 of file nbgl_step.c.

◆ onActionCallback

nbgl_stepButtonCallback_t TextContext_s::onActionCallback

function called when key actions done on this step (other than internal navigation)

Definition at line 55 of file nbgl_step.c.

◆ pos

nbgl_stepPosition_t TextContext_s::pos

position of the step within a flow (used for navigation arrows)

Definition at line 53 of file nbgl_step.c.

◆ style

nbgl_contentCenteredInfoStyle_t TextContext_s::style

style to be used with a CENTERED_INFO_STEP step

Definition at line 60 of file nbgl_step.c.

◆ subTxtStart

const char* TextContext_s::subTxtStart

pointer on the start point of sub-text (first page)

Definition at line 51 of file nbgl_step.c.

◆ tmpString

char TextContext_s::tmpString[TMP_STRING_MAX_LEN]

temporary string used for title when text + multi-pages subText

Definition at line 57 of file nbgl_step.c.

◆ txtStart

const char* TextContext_s::txtStart

pointer on the start point of text (first page)

Definition at line 49 of file nbgl_step.c.


The documentation for this struct was generated from the following file: