mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 15:17:25 +00:00
C++: minimize/maximize/fullscreen API on Window
This commit is contained in:
parent
be8fdd15d5
commit
9f0c3c94a9
5 changed files with 109 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue