1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

VisualBuilder: Add [x, y, width, height] properties for all widgets.

At first I tried doing this as a single "rect" property but I like the
feel of the individual properties much better. :^)
This commit is contained in:
Andreas Kling 2019-04-11 22:54:04 +02:00
parent c425bc2e71
commit 3cddc3484e
5 changed files with 32 additions and 5 deletions

View file

@ -51,10 +51,11 @@ public:
VBWidgetPropertyModel& property_model() { return *m_property_model; }
protected:
VBWidget(VBWidgetType, VBForm&);
void synchronize_properties();
private:
VBWidget(VBWidgetType, VBForm&);
VBWidgetType m_type { VBWidgetType::None };
VBForm& m_form;
GWidget* m_gwidget { nullptr };