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:
parent
04500c1ae2
commit
52e846df87
3 changed files with 18 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue