mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 23:17:44 +00:00
LibGUI: Add Window::center_within(Window)
This allows you to easily center one window within another window.
This commit is contained in:
parent
4a2da10e38
commit
04e3bcfa75
2 changed files with 10 additions and 0 deletions
|
@ -108,6 +108,7 @@ public:
|
|||
void resize(const Gfx::IntSize& size) { set_rect({ position(), size }); }
|
||||
|
||||
void center_on_screen();
|
||||
void center_within(const Window&);
|
||||
|
||||
virtual void event(Core::Event&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue