window

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package window provides a common interface for oak-created windows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Window

type Window interface {
	SetFullScreen(bool) error
	SetBorderless(bool) error
	SetTopMost(bool) error
	SetTitle(string) error
	SetTrayIcon(string) error
	ShowNotification(title, msg string, icon bool) error
	MoveWindow(x, y, w, h int) error
	HideCursor() error

	Width() int
	Height() int
	Viewport() intgeom.Point2
	SetViewportBounds(intgeom.Rect2)

	NextScene()
	GoToScene(string)

	InFocus() bool
	ShiftScreen(int, int)
	SetScreen(int, int)
	Quit()

	EventHandler() event.Handler
}

Window is an interface of methods on an oak.Window used to avoid circular imports

Jump to

Keyboard shortcuts

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