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

This structure contains info to build suggestion buttons. More...

#include <nbgl_layout_types.h>

Public Attributes

const char ** buttons
 array of 4 strings for buttons (last ones can be NULL)
int firstButtonToken
uint8_t nbUsedButtons
 the number of actually used (displayed) buttons
uint16_t nbCandidates

Detailed Description

This structure contains info to build suggestion buttons.

Definition at line 54 of file nbgl_layout_types.h.

Member Data Documentation

◆ buttons

const char** nbgl_layoutSuggestionButtons_t::buttons

array of 4 strings for buttons (last ones can be NULL)

Definition at line 55 of file nbgl_layout_types.h.

◆ firstButtonToken

int nbgl_layoutSuggestionButtons_t::firstButtonToken

first token used for buttons, provided in onActionCallback (the next 3 values will be used for other buttons)

Definition at line 56 of file nbgl_layout_types.h.

◆ nbCandidates

uint16_t nbgl_layoutSuggestionButtons_t::nbCandidates

total number of matching candidates, which may be greater than nbUsedButtons when the displayed buttons are capped. On Nano it is used to decide when the whole candidate list fits in the selection page. If left to 0, nbUsedButtons is used instead (legacy behaviour).

Definition at line 59 of file nbgl_layout_types.h.

◆ nbUsedButtons

uint8_t nbgl_layoutSuggestionButtons_t::nbUsedButtons

the number of actually used (displayed) buttons

Definition at line 58 of file nbgl_layout_types.h.


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