mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibGUI: Add min_size to Layout
This commit is contained in:
parent
2600669b73
commit
b2951a2116
Notes:
sideshowbarker
2024-07-17 09:55:15 +09:00
Author: https://github.com/frhun
Commit: b2951a2116
Pull-request: https://github.com/SerenityOS/serenity/pull/14261
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/mjz19910
3 changed files with 53 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <LibCore/Object.h>
|
||||
#include <LibGUI/Forward.h>
|
||||
#include <LibGUI/Margins.h>
|
||||
#include <LibGUI/UIDimensions.h>
|
||||
#include <LibGfx/Forward.h>
|
||||
|
||||
namespace Core {
|
||||
|
@ -49,6 +50,7 @@ public:
|
|||
|
||||
virtual void run(Widget&) = 0;
|
||||
virtual Gfx::IntSize preferred_size() const = 0;
|
||||
virtual UISize min_size() const = 0;
|
||||
|
||||
void notify_adopted(Badge<Widget>, Widget&);
|
||||
void notify_disowned(Badge<Widget>, Widget&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue