ui

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegularTermination = errors.New("regular termination")

RegularTermination represents a regular termination. Run can return this error, and if this error is received, the game loop should be terminated as soon as possible.

Functions

func AdjustedCursorPosition added in v1.7.0

func AdjustedCursorPosition() (x, y int)

func AdjustedTouches added in v1.7.0

func AdjustedTouches() []*input.Touch

func DeviceScaleFactor added in v1.8.0

func DeviceScaleFactor() float64

func IsCursorVisible added in v1.6.0

func IsCursorVisible() bool

func IsFullscreen added in v1.6.0

func IsFullscreen() bool

func IsRunnableInBackground added in v1.6.0

func IsRunnableInBackground() bool

func IsVsyncEnabled added in v1.8.0

func IsVsyncEnabled() bool

func IsWindowDecorated added in v1.7.0

func IsWindowDecorated() bool

func IsWindowResizable added in v1.9.0

func IsWindowResizable() bool

func Loop added in v1.9.0

func Loop(ch <-chan error) error

func Run added in v1.4.0

func Run(width, height int, scale float64, title string, g GraphicsContext, mainloop bool) error

func ScreenPadding added in v1.7.0

func ScreenPadding() (x0, y0, x1, y1 float64)

func ScreenScale added in v1.4.0

func ScreenScale() float64

func ScreenSizeInFullscreen added in v1.8.0

func ScreenSizeInFullscreen() (int, int)

func SetCursorVisible added in v1.6.0

func SetCursorVisible(visible bool)

func SetFullscreen added in v1.6.0

func SetFullscreen(fullscreen bool)

func SetRunnableInBackground added in v1.6.0

func SetRunnableInBackground(runnableInBackground bool)

func SetScreenScale added in v1.2.0

func SetScreenScale(scale float64) bool

func SetScreenSize added in v1.2.0

func SetScreenSize(width, height int)

func SetVsyncEnabled added in v1.8.0

func SetVsyncEnabled(enabled bool)

func SetWindowDecorated added in v1.7.0

func SetWindowDecorated(decorated bool)

func SetWindowIcon added in v1.6.0

func SetWindowIcon(iconImages []image.Image)

func SetWindowResizable added in v1.9.0

func SetWindowResizable(resizable bool)

func SetWindowTitle added in v1.7.0

func SetWindowTitle(title string)

Types

type GraphicsContext added in v1.4.0

type GraphicsContext interface {
	SetSize(width, height int, scale float64)
	Update(afterFrameUpdate func()) error
	Invalidate()
}

Jump to

Keyboard shortcuts

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