Embedded SDK
Embedded SDK
|
struct to represent a button (BUTTON type) that can contain a text and/or an icon More...
#include <nbgl_obj.h>
Public Attributes | |
nbgl_obj_t | obj |
common part | |
color_t | innerColor |
color set inside of the button | |
color_t | borderColor |
color set to button's border | |
color_t | foregroundColor |
nbgl_radius_t | radius |
radius of the corners, must be a multiple of 4. | |
nbgl_font_id_e | fontId |
id of the font to use, if any | |
bool | localized |
unused, kept for compatibility | |
const char * | text |
single line UTF-8 text (NULL terminated) | |
onTextDrawCallback_t | onDrawCallback |
uint8_t | token |
token to use as param of onDrawCallback | |
const nbgl_icon_details_t * | icon |
buffer containing icons bitmap. Set to NULL when no icon | |
struct to represent a button (BUTTON type) that can contain a text and/or an icon
Definition at line 416 of file nbgl_obj.h.
color_t nbgl_button_s::borderColor |
color set to button's border
Definition at line 419 of file nbgl_obj.h.
nbgl_font_id_e nbgl_button_s::fontId |
id of the font to use, if any
Definition at line 423 of file nbgl_obj.h.
color_t nbgl_button_s::foregroundColor |
color set to '1' bits in icon, and text. '0' are set to innerColor color.
Definition at line 420 of file nbgl_obj.h.
const nbgl_icon_details_t* nbgl_button_s::icon |
buffer containing icons bitmap. Set to NULL when no icon
Definition at line 429 of file nbgl_obj.h.
color_t nbgl_button_s::innerColor |
color set inside of the button
Definition at line 418 of file nbgl_obj.h.
bool nbgl_button_s::localized |
unused, kept for compatibility
Definition at line 424 of file nbgl_obj.h.
nbgl_obj_t nbgl_button_s::obj |
common part
Definition at line 417 of file nbgl_obj.h.
onTextDrawCallback_t nbgl_button_s::onDrawCallback |
function called if not NULL, with above token as parameter to get the text of the button
Definition at line 426 of file nbgl_obj.h.
nbgl_radius_t nbgl_button_s::radius |
radius of the corners, must be a multiple of 4.
Definition at line 422 of file nbgl_obj.h.
const char* nbgl_button_s::text |
single line UTF-8 text (NULL terminated)
Definition at line 425 of file nbgl_obj.h.
uint8_t nbgl_button_s::token |
token to use as param of onDrawCallback
Definition at line 428 of file nbgl_obj.h.