mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 03:47:34 +00:00
LibGfx: Unpublish Gfx::Point from global namespace
This commit is contained in:
parent
20cfd2a6bf
commit
9b87843af1
34 changed files with 51 additions and 53 deletions
|
@ -54,7 +54,7 @@ private:
|
|||
Gfx::Rect rubber_band_rect() const;
|
||||
|
||||
Gfx::Point m_drag_origin;
|
||||
HashMap<GUI::Widget*, Point> m_positions_before_drag;
|
||||
HashMap<GUI::Widget*, Gfx::Point> m_positions_before_drag;
|
||||
bool m_dragging { false };
|
||||
|
||||
bool m_rubber_banding { false };
|
||||
|
|
|
@ -90,7 +90,7 @@ void VBForm::insert_widget(VBWidgetType type)
|
|||
{
|
||||
auto* insertion_parent = single_selected_widget();
|
||||
auto widget = VBWidget::create(type, *this, insertion_parent);
|
||||
Point insertion_position = m_next_insertion_position;
|
||||
Gfx::Point insertion_position = m_next_insertion_position;
|
||||
if (insertion_parent)
|
||||
insertion_position.move_by(insertion_parent->gwidget()->window_relative_rect().location());
|
||||
widget->set_rect({ insertion_position, { m_grid_size * 10 + 1, m_grid_size * 5 + 1 } });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue