1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:17:35 +00:00

VisualBuilder: Make it possible to move widgets to front/back.

This commit is contained in:
Andreas Kling 2019-04-16 03:52:26 +02:00
parent 04500c1ae2
commit 52e846df87
3 changed files with 18 additions and 10 deletions

View file

@ -5,6 +5,7 @@
#include "VBWidget.h"
class VBForm : public GWidget {
friend class VBWidget;
public:
explicit VBForm(const String& name, GWidget* parent = nullptr);
virtual ~VBForm() override;
@ -38,6 +39,7 @@ private:
int m_grid_size { 5 };
bool m_should_snap_to_grid { true };
Vector<Retained<VBWidget>> m_widgets;
HashMap<GWidget*, VBWidget*> m_gwidget_map;
WeakPtr<VBWidget> m_selected_widget;
Point m_transform_event_origin;
Rect m_transform_widget_origin_rect;