mirror of https://github.com/meshcore-dev/MeshCore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
596 B
28 lines
596 B
#ifndef LV_LIST_h
|
|
#define LV_LIST_h
|
|
|
|
#include "lvBase.h"
|
|
|
|
class LvList : public LvBase<LvList> {
|
|
public:
|
|
explicit LvList(lv_obj_t* parent) {
|
|
obj = lv_list_create(parent);
|
|
}
|
|
|
|
LvList& transparent() {
|
|
lv_obj_set_style_bg_opa(obj, LV_OPA_TRANSP, 0);
|
|
lv_obj_set_style_border_width(obj, 0, 0);
|
|
|
|
lv_obj_set_style_bg_opa(obj, LV_OPA_TRANSP, LV_PART_ITEMS);
|
|
lv_obj_set_style_border_width(obj, 0, LV_PART_ITEMS);
|
|
|
|
return *this;
|
|
}
|
|
|
|
LvList& padRow(int v) {
|
|
lv_obj_set_style_pad_row(obj, v, 0);
|
|
return *this;
|
|
}
|
|
};
|
|
|
|
#endif
|