window

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package window exposes the main-window controls that user settings touch: fullscreen toggle, vsync mode.

window.SetFullscreen(true)
window.SetVSync(false)

For finer window control (resize, position, multi-monitor) drop down to `github.com/AveryLucas/gogogd/classdb/DisplayServer` directly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFullscreen

func IsFullscreen() bool

IsFullscreen reports whether the main window is currently in any fullscreen mode (includes borderless-fullscreen).

func SetFullscreen

func SetFullscreen(on bool)

SetFullscreen toggles the main window's mode between windowed and fullscreen.

func SetVSync

func SetVSync(on bool)

SetVSync enables or disables vertical sync on the main window. Enabled is the standard "no tearing, capped at refresh" mode.

For Adaptive vsync, use SetVSyncMode with DisplayServer.VsyncAdaptive.

func SetVSyncMode

func SetVSyncMode(mode DisplayServer.VSyncMode)

SetVSyncMode sets the explicit vsync mode for users who need Adaptive or Mailbox modes. Pass DisplayServer.Vsync* constants.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL