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:
parent
3c8e53ef2b
commit
d73f79a2d2
4 changed files with 94 additions and 2 deletions
|
@ -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 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue