diff options
author | MacDue <macdue@dueutil.tech> | 2022-12-06 21:35:32 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-07 11:48:27 +0100 |
commit | 27fae783359ece05400dcbee66c50fee97cd1b0b (patch) | |
tree | 7918baf077884d287a8dce3ad7ccad9f9d1aaaf0 /Userland/Libraries/LibGUI/Event.h | |
parent | e011eafd3790ca0375a4678a9cb2debd0ae95ac7 (diff) | |
download | serenity-27fae783359ece05400dcbee66c50fee97cd1b0b.zip |
Meta+Userland: Pass Gfx::IntSize by value
Just two ints like Gfx::IntPoint.
Diffstat (limited to 'Userland/Libraries/LibGUI/Event.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Event.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Userland/Libraries/LibGUI/Event.h b/Userland/Libraries/LibGUI/Event.h index cdce3a944a..9b64b72b04 100644 --- a/Userland/Libraries/LibGUI/Event.h +++ b/Userland/Libraries/LibGUI/Event.h @@ -143,13 +143,13 @@ private: class WMAppletAreaSizeChangedEvent : public WMEvent { public: - explicit WMAppletAreaSizeChangedEvent(Gfx::IntSize const& size) + explicit WMAppletAreaSizeChangedEvent(Gfx::IntSize size) : WMEvent(Event::Type::WM_AppletAreaSizeChanged, 0, 0) , m_size(size) { } - Gfx::IntSize const& size() const { return m_size; } + Gfx::IntSize size() const { return m_size; } private: Gfx::IntSize m_size; @@ -265,7 +265,7 @@ private: class MultiPaintEvent final : public Event { public: - explicit MultiPaintEvent(Vector<Gfx::IntRect, 32> rects, Gfx::IntSize const& window_size) + explicit MultiPaintEvent(Vector<Gfx::IntRect, 32> rects, Gfx::IntSize window_size) : Event(Event::MultiPaint) , m_rects(move(rects)) , m_window_size(window_size) @@ -273,7 +273,7 @@ public: } Vector<Gfx::IntRect, 32> const& rects() const { return m_rects; } - Gfx::IntSize const& window_size() const { return m_window_size; } + Gfx::IntSize window_size() const { return m_window_size; } private: Vector<Gfx::IntRect, 32> m_rects; @@ -282,7 +282,7 @@ private: class PaintEvent final : public Event { public: - explicit PaintEvent(Gfx::IntRect const& rect, Gfx::IntSize const& window_size = {}) + explicit PaintEvent(Gfx::IntRect const& rect, Gfx::IntSize window_size = {}) : Event(Event::Paint) , m_rect(rect) , m_window_size(window_size) @@ -290,7 +290,7 @@ public: } Gfx::IntRect const& rect() const { return m_rect; } - Gfx::IntSize const& window_size() const { return m_window_size; } + Gfx::IntSize window_size() const { return m_window_size; } private: Gfx::IntRect m_rect; @@ -299,13 +299,13 @@ private: class ResizeEvent final : public Event { public: - explicit ResizeEvent(Gfx::IntSize const& size) + explicit ResizeEvent(Gfx::IntSize size) : Event(Event::Resize) , m_size(size) { } - Gfx::IntSize const& size() const { return m_size; } + Gfx::IntSize size() const { return m_size; } private: Gfx::IntSize m_size; |