mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
LibGUI: Add optional autosize padding
This commit is contained in:
parent
baac720e13
commit
2b9ffe2989
2 changed files with 6 additions and 4 deletions
|
@ -37,7 +37,7 @@ public:
|
|||
void set_should_stretch_icon(bool b) { m_should_stretch_icon = b; }
|
||||
|
||||
bool is_autosize() const { return m_autosize; }
|
||||
void set_autosize(bool);
|
||||
void set_autosize(bool, size_t padding = 0);
|
||||
|
||||
int preferred_height() const;
|
||||
|
||||
|
@ -58,6 +58,7 @@ private:
|
|||
Gfx::TextWrapping m_text_wrapping { Gfx::TextWrapping::Wrap };
|
||||
bool m_should_stretch_icon { false };
|
||||
bool m_autosize { false };
|
||||
size_t m_autosize_padding { 0 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue