Status view widget with icon, primary label, and auxiliary label.
More...
Go to the source code of this file.
|
|
typedef struct StatusView | StatusView |
| | StatusView opaque structure.
|
| |
Status view widget with icon, primary label, and auxiliary label.
◆ status_view_alloc()
Create a new StatusView instance.
- Parameters
-
| [in,out] | parent | pointer to the parent Widget instance |
- Returns
- pointer to the newly created StatusView instance
◆ status_view_free()
Delete a StatusView instance.
- Parameters
-
| [in,out] | instance | pointer to the StatusView instance to be deleted |
◆ status_view_get_base()
Get a pointer to the base class instance.
The return value can be used in all Widget methods.
- Parameters
-
| [in,out] | instance | pointer to the StatusView instance to be queried |
- Returns
- pointer to the base class instance
◆ status_view_set_auxiliary_text()
| void status_view_set_auxiliary_text |
( |
StatusView * | instance, |
|
|
const char * | text ) |
Set the auxiliary text of the StatusView.
Displayed in a muted color. Passing NULL hides the label.
- Parameters
-
| [in,out] | instance | pointer to the StatusView instance to be modified |
| [in] | text | zero-terminated string with the auxiliary text, or NULL to hide |
◆ status_view_set_icon()
| void status_view_set_icon |
( |
StatusView * | instance, |
|
|
const void * | source, |
|
|
bool | is_animated ) |
Set the icon displayed by the StatusView.
Supports static image paths (.image) and animated icons (.anim). Passing NULL hides the icon.
- Parameters
-
| [in,out] | instance | pointer to the StatusView instance to be modified |
| [in] | source | zero-terminated string containing the icon resource path or pointer to lv_image_dsc_t |
| [in] | is_animated | true if the icon is an animation, false for a static image |
◆ status_view_set_primary_text()
| void status_view_set_primary_text |
( |
StatusView * | instance, |
|
|
const char * | text ) |
Set the primary text of the StatusView.
Displayed in white. Passing NULL hides the label.
- Parameters
-
| [in,out] | instance | pointer to the StatusView instance to be modified |
| [in] | text | zero-terminated string with the primary text, or NULL to hide |