form line: add constructor without lvobj

This commit is contained in:
Raphael Coeffic
2022-06-19 14:24:03 +02:00
parent 42b98362c3
commit 0d8628f0ce
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -73,6 +73,12 @@ FormGroup::Line::Line(Window* parent, lv_obj_t* obj, FlexGridLayout* layout) :
construct(); construct();
} }
FormGroup::Line::Line(Window* parent, FlexGridLayout* layout) :
Window(parent, rect_t{}), layout(layout)
{
construct();
}
void FormGroup::Line::construct() void FormGroup::Line::construct()
{ {
// forward scroll and focus // forward scroll and focus
+1
View File
@@ -88,6 +88,7 @@ class FormGroup : public Window
public: public:
Line(Window *parent, lv_obj_t *obj, FlexGridLayout *layout = nullptr); Line(Window *parent, lv_obj_t *obj, FlexGridLayout *layout = nullptr);
Line(Window *parent, FlexGridLayout *layout = nullptr);
protected: protected:
void addChild(Window *window) override; void addChild(Window *window) override;