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.
 
 
 
 

23 lines
457 B

#ifndef LV_DROP_DOWN_h
#define LV_DROP_DOWN_h
#include "lvBase.h"
class LvDropdown : public LvBase<LvDropdown> {
public:
explicit LvDropdown(lv_obj_t* parent) {
obj = lv_dropdown_create(parent);
}
LvDropdown& options(const char* opts) {
lv_dropdown_set_options(obj, opts);
return *this;
}
LvDropdown& selected(uint16_t idx) {
lv_dropdown_set_selected(obj, idx);
return *this;
}
};
#endif