1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +00:00

LibGUI: Add ability to calculate min_size of Window from content widget

This commit is contained in:
FrHun 2022-06-29 03:14:55 +02:00 committed by Sam Atkins
parent 13445f5a43
commit 5d25956790
2 changed files with 21 additions and 1 deletions

View file

@ -50,6 +50,9 @@ public:
bool is_resizable() const { return m_resizable; }
void set_resizable(bool resizable) { m_resizable = resizable; }
bool is_obeying_widget_min_size() { return m_obey_widget_min_size; }
void set_obey_widget_min_size(bool);
bool is_minimizable() const { return m_minimizable; }
void set_minimizable(bool minimizable) { m_minimizable = minimizable; }
@ -287,6 +290,7 @@ private:
bool m_double_buffering_enabled { true };
bool m_modal { false };
bool m_resizable { true };
bool m_obey_widget_min_size { true };
Optional<Gfx::IntSize> m_resize_aspect_ratio {};
bool m_minimizable { true };
bool m_closeable { true };