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/Window.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/Window.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Window.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibGUI/Window.h b/Userland/Libraries/LibGUI/Window.h index 48ba6de9d2..03a4bece7c 100644 --- a/Userland/Libraries/LibGUI/Window.h +++ b/Userland/Libraries/LibGUI/Window.h @@ -113,14 +113,14 @@ public: Gfx::IntPoint position() const { return rect().location(); } Gfx::IntSize minimum_size() const; - void set_minimum_size(Gfx::IntSize const&); + void set_minimum_size(Gfx::IntSize); void set_minimum_size(int width, int height) { set_minimum_size({ width, height }); } void move_to(int x, int y) { move_to({ x, y }); } void move_to(Gfx::IntPoint point) { set_rect({ point, size() }); } void resize(int width, int height) { resize({ width, height }); } - void resize(Gfx::IntSize const& size) { set_rect({ position(), size }); } + void resize(Gfx::IntSize size) { set_rect({ position(), size }); } void center_on_screen(); void center_within(Window const&); @@ -180,9 +180,9 @@ public: Gfx::Bitmap* back_bitmap(); Gfx::IntSize size_increment() const { return m_size_increment; } - void set_size_increment(Gfx::IntSize const&); + void set_size_increment(Gfx::IntSize); Gfx::IntSize base_size() const { return m_base_size; } - void set_base_size(Gfx::IntSize const&); + void set_base_size(Gfx::IntSize); Optional<Gfx::IntSize> const& resize_aspect_ratio() const { return m_resize_aspect_ratio; } void set_resize_aspect_ratio(int width, int height) { set_resize_aspect_ratio(Gfx::IntSize(width, height)); } void set_no_resize_aspect_ratio() { set_resize_aspect_ratio({}); } @@ -270,7 +270,7 @@ private: void server_did_destroy(); - OwnPtr<WindowBackingStore> create_backing_store(Gfx::IntSize const&); + OwnPtr<WindowBackingStore> create_backing_store(Gfx::IntSize); void set_current_backing_store(WindowBackingStore&, bool flush_immediately = false); void flip(Vector<Gfx::IntRect, 32> const& dirty_rects); void force_update(); |