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:
parent
b204b77b29
commit
d93c278d29
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue