Window_Creation module

toggle_fullscreen

procedure · 2 overloadsSource

Switches the window between full screen and its normal size. Returns whether it worked and the new size.

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

See also