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

VisualBuilder: Allow resizing widgets using their grabbers.

This commit is contained in:
Andreas Kling 2019-04-11 02:35:30 +02:00
parent 3c8e53ef2b
commit d73f79a2d2
4 changed files with 94 additions and 2 deletions

View file

@ -22,6 +22,8 @@ protected:
virtual void mouseup_event(GMouseEvent&) override;
private:
void grabber_mousedown_event(GMouseEvent&, VBWidget&, Direction grabber);
String m_name;
int m_grid_size { 5 };
bool m_should_snap_to_grid { true };
@ -29,4 +31,5 @@ private:
WeakPtr<VBWidget> m_selected_widget;
Point m_transform_event_origin;
Rect m_transform_widget_origin_rect;
Direction m_resize_direction { Direction::None };
};