1
Fork 0
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:
FrHun 2022-06-12 23:04:46 +02:00 committed by Sam Atkins
parent b2951a2116
commit d825c8ad18
3 changed files with 48 additions and 59 deletions

View file

@ -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;
};