1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

GWindow: Add resize(width, height) and resize(size).

This commit is contained in:
Andreas Kling 2019-04-26 17:33:20 +02:00
parent b204b77b29
commit d93c278d29

View file

@ -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;