Add API for minimize/maximize on Window component (#4581)

Closes #4400
This commit is contained in:
Ralph Minderhoud 2024-02-22 04:40:36 -05:00 committed by GitHub
parent b236d2d06e
commit 9cb1a4a4e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 261 additions and 21 deletions

View file

@ -249,6 +249,18 @@ public:
return cbindgen_private::slint_window_properties_get_fullscreen(inner());
}
/// Returns true if the window should be minimized; false otherwise
bool minimized() const
{
return cbindgen_private::slint_window_properties_get_minimized(inner());
}
/// Returns true if the window should be maximized; false otherwise
bool maximized() const
{
return cbindgen_private::slint_window_properties_get_maximized(inner());
}
/// This struct describes the layout constraints of a window.
///
/// It is the return value of WindowProperties::layout_constraints().