|
Embedded SDK
Embedded SDK
|
This structure contains info to build a centered (vertically and horizontally) area, with a possible Icon, a possible text under it, and a possible sub-text gray under it. More...
#include <nbgl_content.h>
Public Attributes | |
| const char * | text1 |
| first text (can be null) | |
| const char * | text2 |
| second text (can be null) | |
| const nbgl_icon_details_t * | icon |
| a buffer containing the 1BPP icon | |
| bool | onTop |
| if set to true, align only horizontally | |
| nbgl_contentCenteredInfoStyle_t | style |
| style to apply to this info | |
| bool | bottomIcon |
This structure contains info to build a centered (vertically and horizontally) area, with a possible Icon, a possible text under it, and a possible sub-text gray under it.
Definition at line 57 of file nbgl_content.h.
| bool nbgl_contentCenteredInfo_t::bottomIcon |
Nano only: when true and icon is non-NULL, the icon is rendered at the bottom of the screen (BOTTOM_MIDDLE) instead of above text1. Incompatible with onTop: when both are set, onTop is ignored (text is laid out via the standard text path and the icon stays pinned to the screen bottom). Designed for short contextual hints (selection marker, sub-menu chevron, ...): the icon should be small (~14 px) and text1 / text2 should stay short. The Nano screen is only 64 px tall, so the caller is responsible for keeping text1 + text2 + icon within that budget — multi-line text1 combined with text2 will clip at the top and overlap the icon at the bottom.
Definition at line 69 of file nbgl_content.h.
| const nbgl_icon_details_t* nbgl_contentCenteredInfo_t::icon |
a buffer containing the 1BPP icon
Definition at line 63 of file nbgl_content.h.
| bool nbgl_contentCenteredInfo_t::onTop |
if set to true, align only horizontally
Definition at line 64 of file nbgl_content.h.
| nbgl_contentCenteredInfoStyle_t nbgl_contentCenteredInfo_t::style |
style to apply to this info
Definition at line 65 of file nbgl_content.h.
| const char* nbgl_contentCenteredInfo_t::text1 |
first text (can be null)
Definition at line 58 of file nbgl_content.h.
| const char* nbgl_contentCenteredInfo_t::text2 |
second text (can be null)
Definition at line 59 of file nbgl_content.h.