OMOTE/Platformio/OmoteUI/core/UIElement.hpp
MatthewColvin 52cb2e7ce2 Add background color setter in UIElement
Use main to spawn refacoredBasic UI
Start using new screen manager and
screen concepts
2023-09-16 16:44:15 -05:00

19 lines
No EOL
308 B
C++

#pragma once
#include "UIElementIds.hpp"
#include "lvgl.h"
namespace UI {
class UIElement {
public:
UIElement(lv_obj_t *aLvglSelf, const ID aId = ID());
SetBgColor(lv_color_t value, lv_style_selector_t selector = LV_PART_MAIN);
protected:
lv_obj_t *mLvglSelf;
const ID mId;
};
} // namespace UI