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

This structure contains a list of [tag,value] pairs. More...

#include <nbgl_content.h>

Collaboration diagram for nbgl_contentTagValueList_s:

Public Attributes

const nbgl_contentTagValue_t * pairs
 array of [tag,value] pairs (nbPairs items). If NULL, callback is used instead
nbgl_contentTagValueCallback_t callback
 function to call to retrieve a given pair
uint8_t nbPairs
uint8_t startIndex
bool hideEndOfLastLine
 if set to true, replace 3 last chars of last line by "..."
uint8_t nbMaxLinesForValue
uint8_t token
bool smallCaseForValue
bool wrapping
 if set to true, value text will be wrapped on ' ' to avoid cutting words
nbgl_contentActionCallback_t actionCallback
 called when a valueIcon is touched on a given pair

Detailed Description

This structure contains a list of [tag,value] pairs.

Definition at line 237 of file nbgl_content.h.

Member Data Documentation

◆ actionCallback

nbgl_contentActionCallback_t nbgl_contentTagValueList_s::actionCallback

called when a valueIcon is touched on a given pair

Definition at line 255 of file nbgl_content.h.

◆ callback

nbgl_contentTagValueCallback_t nbgl_contentTagValueList_s::callback

function to call to retrieve a given pair

Definition at line 240 of file nbgl_content.h.

◆ hideEndOfLastLine

bool nbgl_contentTagValueList_s::hideEndOfLastLine

if set to true, replace 3 last chars of last line by "..."

Definition at line 245 of file nbgl_content.h.

◆ nbMaxLinesForValue

uint8_t nbgl_contentTagValueList_s::nbMaxLinesForValue

if > 0, set the max number of lines for value field. Meant for the layout and page APIs: most review use cases override it (use nbMaxLinesForValue of the pairs instead)

Definition at line 246 of file nbgl_content.h.

◆ nbPairs

uint8_t nbgl_contentTagValueList_s::nbPairs

number of pairs in pairs array (or max number of pairs to retrieve with callback)

Definition at line 241 of file nbgl_content.h.

◆ pairs

const nbgl_contentTagValue_t* nbgl_contentTagValueList_s::pairs

array of [tag,value] pairs (nbPairs items). If NULL, callback is used instead

Definition at line 239 of file nbgl_content.h.

◆ smallCaseForValue

bool nbgl_contentTagValueList_s::smallCaseForValue

if set to true, a 24px font is used for value text, otherwise a 32px font is used

Definition at line 251 of file nbgl_content.h.

◆ startIndex

uint8_t nbgl_contentTagValueList_s::startIndex

index of the first pair to get with callback (pairs are retrieved with callback(startIndex) to callback(startIndex + nbPairs - 1))

Definition at line 243 of file nbgl_content.h.

◆ token

uint8_t nbgl_contentTagValueList_s::token

the token that will be used as argument of the callback if icon in any tag/value pair is touched (index is the index of the pair in pairs[])

Definition at line 249 of file nbgl_content.h.

◆ wrapping

bool nbgl_contentTagValueList_s::wrapping

if set to true, value text will be wrapped on ' ' to avoid cutting words

Definition at line 253 of file nbgl_content.h.


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