window

package
v0.0.0-...-1953d82 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Window

type Window struct {
	// contains filtered or unexported fields
}

Window hold references to GUI Window

func CreateWindow

func CreateWindow(width, height int, title string) (*Window, error)

CreateWindow returns a new window of provided size and title.

func CurrentWindow

func CurrentWindow() *Window

CurrentWindow

func (*Window) Close

func (win *Window) Close()

Close

func (*Window) Handle

func (win *Window) Handle() *tinygametools.Window

Handle returns the underlying window

func (*Window) Height

func (win *Window) Height() int

Height

func (*Window) SetActive

func (win *Window) SetActive()

SetActive marks this windows reference as current

func (*Window) SetTitle

func (win *Window) SetTitle(title string)

SetTitle changes this window's title

func (*Window) ShouldClose

func (win *Window) ShouldClose() bool

ShouldClose

func (*Window) SwapBuffers

func (win *Window) SwapBuffers()

SwapBuffers will swap this windows buffers (aka finish the current frame)

func (*Window) Width

func (win *Window) Width() int

Width

Jump to

Keyboard shortcuts

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