From d93c278d296089b1d7dccd2b0d6a459580cdf4d9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 26 Apr 2019 17:33:20 +0200 Subject: [PATCH] GWindow: Add resize(width, height) and resize(size). --- LibGUI/GWindow.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LibGUI/GWindow.h b/LibGUI/GWindow.h index 0a8f6ce821..cddebcef02 100644 --- a/LibGUI/GWindow.h +++ b/LibGUI/GWindow.h @@ -59,6 +59,9 @@ public: void move_to(int x, int y) { move_to({ x, y }); } void move_to(const Point& point) { set_rect({ point, size() }); } + void resize(int width, int height) { resize({ width, height }); } + void resize(const Size& size) { set_rect({ position(), size }); } + virtual void event(CEvent&) override; bool is_visible() const;