Embedded SDK
Embedded SDK
|
struct to represent a text area (TEXT_AREA type) More...
#include <nbgl_obj.h>
Public Attributes | |
nbgl_obj_t | obj |
common part More... | |
color_t | textColor |
color set to '1' bits in text. '0' are set to backgroundColor color. More... | |
nbgl_aligment_t | textAlignment |
alignment of text within the area More... | |
nbgl_style_t | style |
to define the style of border More... | |
nbgl_font_id_e | fontId |
id of the font to use More... | |
bool | autoHideLongLine |
bool | wrapping |
if set to true, break lines on ' ' when possible More... | |
uint8_t | nbMaxLines |
const char * | text |
ASCII text to draw (NULL terminated). Can be NULL. More... | |
uint16_t | len |
number of bytes to write (if 0, max number of chars or strlen is used) More... | |
onTextDrawCallback_t | onDrawCallback |
function called if not NULL to get the text of the text area More... | |
uint8_t | token |
token to use as param of onDrawCallback More... | |
struct to represent a text area (TEXT_AREA type)
Definition at line 415 of file nbgl_obj.h.
bool nbgl_text_area_s::autoHideLongLine |
if set to true, replace beginning of line by ... to keep it single line
Definition at line 421 of file nbgl_obj.h.
nbgl_font_id_e nbgl_text_area_s::fontId |
id of the font to use
Definition at line 420 of file nbgl_obj.h.
uint16_t nbgl_text_area_s::len |
number of bytes to write (if 0, max number of chars or strlen is used)
Definition at line 427 of file nbgl_obj.h.
uint8_t nbgl_text_area_s::nbMaxLines |
if >0, replace end (3 last chars) of line (nbMaxLines-1) by "..." and stop display here
Definition at line 424 of file nbgl_obj.h.
nbgl_obj_t nbgl_text_area_s::obj |
common part
Definition at line 416 of file nbgl_obj.h.
onTextDrawCallback_t nbgl_text_area_s::onDrawCallback |
function called if not NULL to get the text of the text area
Definition at line 429 of file nbgl_obj.h.
nbgl_style_t nbgl_text_area_s::style |
to define the style of border
Definition at line 419 of file nbgl_obj.h.
const char* nbgl_text_area_s::text |
ASCII text to draw (NULL terminated). Can be NULL.
Definition at line 426 of file nbgl_obj.h.
nbgl_aligment_t nbgl_text_area_s::textAlignment |
alignment of text within the area
Definition at line 418 of file nbgl_obj.h.
color_t nbgl_text_area_s::textColor |
color set to '1' bits in text. '0' are set to backgroundColor color.
Definition at line 417 of file nbgl_obj.h.
uint8_t nbgl_text_area_s::token |
token to use as param of onDrawCallback
Definition at line 430 of file nbgl_obj.h.
bool nbgl_text_area_s::wrapping |
if set to true, break lines on ' ' when possible
Definition at line 423 of file nbgl_obj.h.