1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:17:46 +00:00

LibGUI: Implement calculated_min_size() for Label

This commit is contained in:
thankyouverycool 2023-04-14 08:54:12 -04:00 committed by Andreas Kling
parent 479e67212a
commit 5294ef918e
2 changed files with 12 additions and 1 deletions

View file

@ -38,6 +38,7 @@ public:
bool is_autosize() const { return m_autosize; }
void set_autosize(bool, size_t padding = 0);
virtual Optional<UISize> calculated_min_size() const override;
virtual Optional<UISize> calculated_preferred_size() const override;
int text_calculated_preferred_height() const;
int text_calculated_preferred_width() const;