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

This structure contains info to build a single button. More...

#include <nbgl_layout.h>

Public Attributes

const char * text
 button text
const nbgl_icon_details_t * icon
 a buffer containing the 1BPP icon for button
uint8_t token
 the token that will be used as argument of the callback
nbgl_layoutButtonStyle_t style
bool fittingContent
 if set to true, fit the width of button to text, otherwise full width
bool onBottom
tune_index_e tuneId
 if not NBGL_NO_TUNE, a tune will be played

Detailed Description

This structure contains info to build a single button.

Definition at line 380 of file nbgl_layout.h.

Member Data Documentation

◆ fittingContent

bool nbgl_layoutButton_t::fittingContent

if set to true, fit the width of button to text, otherwise full width

Definition at line 385 of file nbgl_layout.h.

◆ icon

const nbgl_icon_details_t* nbgl_layoutButton_t::icon

a buffer containing the 1BPP icon for button

Definition at line 382 of file nbgl_layout.h.

◆ onBottom

bool nbgl_layoutButton_t::onBottom

if set to true, align on bottom of page, otherwise put on bottom of previous object

Definition at line 386 of file nbgl_layout.h.

◆ style

nbgl_layoutButtonStyle_t nbgl_layoutButton_t::style

Definition at line 384 of file nbgl_layout.h.

◆ text

const char* nbgl_layoutButton_t::text

button text

Definition at line 381 of file nbgl_layout.h.

◆ token

uint8_t nbgl_layoutButton_t::token

the token that will be used as argument of the callback

Definition at line 383 of file nbgl_layout.h.

◆ tuneId

tune_index_e nbgl_layoutButton_t::tuneId

if not NBGL_NO_TUNE, a tune will be played

Definition at line 388 of file nbgl_layout.h.


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