Switches the window between full screen and its normal size. Returns whether it worked and the new size.
- desire_fullscreen: true to go full screen, false to go back.
- saved: where the old position and size are kept while full screen, to restore them on the way back.
toggle_fullscreen :: (
win: Window,
desire_fullscreen: bool,
saved: *Saved_Window_Info
) -> (success: bool, width: s32, height: s32)
Switches the window between full screen and its normal size. Returns whether it worked and the new size.
Parameters
- win: Window
- desire_fullscreen: bool
- true to go full screen, false to go back.
- saved: *Saved_Window_Info
- where the old position and size are kept while full screen, to restore them on the way back.
Returns
- success: bool
- width: s32
- height: s32
toggle_fullscreen :: (
win: *ObjC.NSWindow,
desire_fullscreen: bool,
saved: *Saved_Window_Info
) -> (success: bool, width: s32, height: s32)
Switches the window between full screen and its normal size. Returns whether it worked and the new size.
Parameters
- win: *ObjC.NSWindow
- desire_fullscreen: bool
- true to go full screen, false to go back.
- saved: *Saved_Window_Info
- where the old position and size are kept while full screen, to restore them on the way back.
Returns
- success: bool
- width: s32
- height: s32