fullscreen

abstract fun fullscreen(mode: Fullscreen)(source)

Toggles the window fullscreen mode based on the specified parameter.

This method allows switching the window to or from fullscreen mode according to the desired Fullscreen configuration. The window's behavior when entering or exiting fullscreen mode depends on the specific mode selected and platform implementation.

Parameters

mode

Specifies the fullscreen mode to apply. This can be:

  • Fullscreen.DISABLED: Disables fullscreen and returns the window to its previous size and position.

  • Fullscreen.CURRENT_DISPLAY_MODE: Uses the current display's resolution and settings for fullscreen.

  • Fullscreen.SET_DISPLAY_MODE: Adjusts fullscreen settings to use a specific display mode defined elsewhere.