C++: minimize/maximize/fullscreen API on Window

This commit is contained in:
Olivier Goffart 2024-02-22 12:16:23 +01:00
parent be8fdd15d5
commit 9f0c3c94a9
5 changed files with 109 additions and 3 deletions

View file

@ -243,20 +243,26 @@ public:
return out;
}
/// \deprecated Use is_fullscreen() instead
[[deprecated("Renamed is_fullscreen()")]] bool fullscreen() const
{
return is_fullscreen();
}
/// Returns true if the window should be shown fullscreen; false otherwise.
bool fullscreen() const
bool is_fullscreen() const
{
return cbindgen_private::slint_window_properties_get_fullscreen(inner());
}
/// Returns true if the window should be minimized; false otherwise
bool minimized() const
bool is_minimized() const
{
return cbindgen_private::slint_window_properties_get_minimized(inner());
}
/// Returns true if the window should be maximized; false otherwise
bool maximized() const
bool is_maximized() const
{
return cbindgen_private::slint_window_properties_get_maximized(inner());
}