mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibGUI: Add Window::constrain_to_desktop() helper
And a center_within(IntRect const&) overload
This commit is contained in:
parent
2d64147f02
commit
dfe06096c7
Notes:
sideshowbarker
2024-07-17 05:41:34 +09:00
Author: https://github.com/thankyouverycool
Commit: dfe06096c7
Pull-request: https://github.com/SerenityOS/serenity/pull/18797
2 changed files with 25 additions and 0 deletions
|
@ -129,7 +129,10 @@ public:
|
|||
void resize(Gfx::IntSize size) { set_rect({ position(), size }); }
|
||||
|
||||
void center_on_screen();
|
||||
void constrain_to_desktop();
|
||||
|
||||
void center_within(Window const&);
|
||||
void center_within(Gfx::IntRect const&);
|
||||
|
||||
virtual void event(Core::Event&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue