diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-10 10:57:59 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-10 10:59:04 +0200 |
commit | 116cf92156090bb3f5c15d5be145f1283884d65d (patch) | |
tree | 4496ab3e8c90add1c40da2eceee71324369ec0c6 /DevTools/HackStudio/CursorTool.cpp | |
parent | 656b01eb0fb659fb2d3ee4e6e4413a82543414e3 (diff) | |
download | serenity-116cf92156090bb3f5c15d5be145f1283884d65d.zip |
LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize
This fits nicer with FloatRect,FloatPoint,FloatSize and gives a much
better visual clue about what type of metric is being used.
Diffstat (limited to 'DevTools/HackStudio/CursorTool.cpp')
-rw-r--r-- | DevTools/HackStudio/CursorTool.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DevTools/HackStudio/CursorTool.cpp b/DevTools/HackStudio/CursorTool.cpp index 920862037f..dd0e1516c8 100644 --- a/DevTools/HackStudio/CursorTool.cpp +++ b/DevTools/HackStudio/CursorTool.cpp @@ -153,7 +153,7 @@ void CursorTool::on_keydown(GUI::KeyEvent& event) } } -void CursorTool::set_rubber_band_position(const Gfx::Point& position) +void CursorTool::set_rubber_band_position(const Gfx::IntPoint& position) { if (m_rubber_band_position == position) return; @@ -171,11 +171,11 @@ void CursorTool::set_rubber_band_position(const Gfx::Point& position) m_editor.form_widget().update(); } -Gfx::Rect CursorTool::rubber_band_rect() const +Gfx::IntRect CursorTool::rubber_band_rect() const { if (!m_rubber_banding) return {}; - return Gfx::Rect::from_two_points(m_rubber_band_origin, m_rubber_band_position); + return Gfx::IntRect::from_two_points(m_rubber_band_origin, m_rubber_band_position); } void CursorTool::on_second_paint(GUI::Painter& painter, GUI::PaintEvent&) |