summaryrefslogtreecommitdiff
path: root/Services/WindowServer/Screen.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-10 10:57:59 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-10 10:59:04 +0200
commit116cf92156090bb3f5c15d5be145f1283884d65d (patch)
tree4496ab3e8c90add1c40da2eceee71324369ec0c6 /Services/WindowServer/Screen.h
parent656b01eb0fb659fb2d3ee4e6e4413a82543414e3 (diff)
downloadserenity-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 'Services/WindowServer/Screen.h')
-rw-r--r--Services/WindowServer/Screen.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Services/WindowServer/Screen.h b/Services/WindowServer/Screen.h
index d522ea7b96..cce7d23e89 100644
--- a/Services/WindowServer/Screen.h
+++ b/Services/WindowServer/Screen.h
@@ -51,10 +51,10 @@ public:
static Screen& the();
- Gfx::Size size() const { return { width(), height() }; }
- Gfx::Rect rect() const { return { 0, 0, width(), height() }; }
+ Gfx::IntSize size() const { return { width(), height() }; }
+ Gfx::IntRect rect() const { return { 0, 0, width(), height() }; }
- Gfx::Point cursor_location() const { return m_cursor_location; }
+ Gfx::IntPoint cursor_location() const { return m_cursor_location; }
unsigned mouse_button_state() const { return m_mouse_button_state; }
void on_receive_mouse_data(const MousePacket&);
@@ -73,7 +73,7 @@ private:
int m_height { 0 };
int m_framebuffer_fd { -1 };
- Gfx::Point m_cursor_location;
+ Gfx::IntPoint m_cursor_location;
unsigned m_mouse_button_state { 0 };
unsigned m_modifiers { 0 };
};