mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibGUI: Change preferred_size in Layout to new layout system
This commit is contained in:
parent
b2951a2116
commit
d825c8ad18
3 changed files with 48 additions and 59 deletions
|
@ -22,16 +22,13 @@ public:
|
|||
Gfx::Orientation orientation() const { return m_orientation; }
|
||||
|
||||
virtual void run(Widget&) override;
|
||||
virtual Gfx::IntSize preferred_size() const override;
|
||||
virtual UISize preferred_size() const override;
|
||||
virtual UISize min_size() const override;
|
||||
|
||||
protected:
|
||||
explicit BoxLayout(Gfx::Orientation);
|
||||
|
||||
private:
|
||||
int preferred_primary_size() const;
|
||||
int preferred_secondary_size() const;
|
||||
|
||||
Gfx::Orientation m_orientation;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue