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

@ -113,7 +113,17 @@ pub extern "C" fn slint_window_properties_get_background(
#[no_mangle]
pub extern "C" fn slint_window_properties_get_fullscreen(wp: &WindowProperties) -> bool {
wp.fullscreen()
wp.is_fullscreen()
}
#[no_mangle]
pub extern "C" fn slint_window_properties_get_minimized(wp: &WindowProperties) -> bool {
wp.is_minimized()
}
#[no_mangle]
pub extern "C" fn slint_window_properties_get_maximized(wp: &WindowProperties) -> bool {
wp.is_maximized()
}
#[repr(C)]