Add empty paint() method to Checkbox & Button
This commit is contained in:
committed by
Raphael Coeffic
parent
a0624cc17a
commit
5597524b7a
+2
@@ -116,6 +116,8 @@ class TextButton: public Button
|
||||
bgColorHandler = std::move(handler);
|
||||
}
|
||||
|
||||
void paint(BitmapBuffer* dc) override {}
|
||||
|
||||
protected:
|
||||
lv_obj_t * label = nullptr;
|
||||
|
||||
|
||||
@@ -66,6 +66,8 @@ class CheckBox : public FormField {
|
||||
_setValue = std::move(handler);
|
||||
}
|
||||
|
||||
void paint(BitmapBuffer* dc) override {}
|
||||
|
||||
protected:
|
||||
std::string label;
|
||||
std::function<uint8_t()> _getValue;
|
||||
|
||||
Reference in New Issue
Block a user