mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 15:47:26 +00:00
Reduce WindowAdapter API slightly (#4304)
Move the set_fullscreen function added to the WindowAdapter trait in 779aff0b39
to be a function in WindowProperties instead.
That way it'll be easier in the future to extend this with other window states without
having to modify or break the WindowAdapter trait API.
This commit is contained in:
parent
1ff1c68b20
commit
438b9afeaa
6 changed files with 51 additions and 38 deletions
|
@ -111,6 +111,11 @@ pub extern "C" fn slint_window_properties_get_background(
|
|||
*out = wp.background();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn slint_window_properties_get_fullscreen(wp: &WindowProperties) -> bool {
|
||||
wp.fullscreen()
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy)]
|
||||
/// a Repr(C) variant of slint::platform::LayoutConstraints
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue