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
10
extern
"C"
{
11
#endif
12
13
struct
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
26
extern
const
lv_obj_class_t smenu_item_lvgl_class;
27
extern
const
lv_anim_t smenu_item_long_text_anim_template;
28
29
#ifdef __cplusplus
30
}
31
#endif
smenu_item.h
Base class for smenu item widgets.
SMenuItemCallback
void(* SMenuItemCallback)(SMenuItem *item)
SMenu item callback function type.
Definition
smenu_item.h:24
SMenuItem
Definition
smenu_item_i.h:13
Widget
Definition
widget_i.h:35
applications
services
gui
modules
private
smenu_item_i.h
Generated by
1.12.0