1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

VisualBuilder: Add a widget registry and a property class.

I need somewhere to centralize the knowledge about the different widget
types available. And VBProperty represents a property key/value of arbitrary
type (it uses a GVariant for the value.)
This commit is contained in:
Andreas Kling 2019-04-11 16:13:19 +02:00
parent ba4a726e8b
commit f52e66ceda
11 changed files with 193 additions and 88 deletions

View file

@ -20,7 +20,7 @@ public:
void set_should_snap_to_grip(bool snap) { m_should_snap_to_grid = snap; }
bool should_snap_to_grid() const { return m_should_snap_to_grid; }
void insert_widget(WidgetType);
void insert_widget(VBWidgetType);
protected:
virtual void paint_event(GPaintEvent&) override;