BSB Developer Docs
Loading...
Searching...
No Matches
smenu_item_i.h
1#pragma once
2
3#include "smenu_item.h"
4#include "../../widget_i.h"
5
6#define SMENU_ITEM_RIGHT_FLEX_GROW_FLAG LV_OBJ_FLAG_WIDGET_1
7#define SMENU_ITEM_LONG_TEXT_ANIM_SPEED_PX_PER_M (1000)
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13struct SMenuItem {
14 Widget base;
15
16 lv_obj_t* cursor_label;
17 lv_obj_t* left_container;
18 lv_obj_t* right_container;
19
20 SMenuItemCallback callback;
21
22 bool do_draw_fader;
23 bool is_active;
24};
25
26extern const lv_obj_class_t smenu_item_lvgl_class;
27extern const lv_anim_t smenu_item_long_text_anim_template;
28
29#ifdef __cplusplus
30}
31#endif
Base class for smenu item widgets.
void(* SMenuItemCallback)(SMenuItem *item)
SMenu item callback function type.
Definition smenu_item.h:24
Definition smenu_item_i.h:13
Definition widget_i.h:35