scene

package
v0.0.0-...-2482a4e Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCROLL_FIRST_DELAY  = 3
	SCROLL_REPEAT_DELAY = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Idle

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

func MakeIdle

func MakeIdle(backendHandle *backend.Handle, scene *wrap.Scene) Idle

func (Idle) Destroy

func (idle Idle) Destroy()

func (Idle) OnKeyboardEvent

func (idle Idle) OnKeyboardEvent(event *sdl.KeyboardEvent) State

func (Idle) OnMouseButtonEvent

func (idle Idle) OnMouseButtonEvent(event *sdl.MouseButtonEvent) State

func (Idle) OnMouseMotionEvent

func (idle Idle) OnMouseMotionEvent(event *sdl.MouseMotionEvent) State

func (Idle) OnQuit

func (idle Idle) OnQuit(event *sdl.QuitEvent) State

func (Idle) OnTick

func (idle Idle) OnTick() State

func (Idle) OnTickDelay

func (idle Idle) OnTickDelay() State

func (Idle) PostEvent

func (idle Idle) PostEvent() State

func (Idle) PreEvent

func (idle Idle) PreEvent() State

func (Idle) TickDelayed

func (idle Idle) TickDelayed() bool

type Init

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

func MakeInit

func MakeInit(backendHandle *backend.Handle, scene *wrap.Scene, renderer *sdl.Renderer) (Init, error)

func (Init) Destroy

func (init Init) Destroy()

func (Init) OnKeyboardEvent

func (init Init) OnKeyboardEvent(event *sdl.KeyboardEvent) State

func (Init) OnMouseButtonEvent

func (init Init) OnMouseButtonEvent(event *sdl.MouseButtonEvent) State

func (Init) OnMouseMotionEvent

func (init Init) OnMouseMotionEvent(event *sdl.MouseMotionEvent) State

func (Init) OnQuit

func (init Init) OnQuit(event *sdl.QuitEvent) State

func (Init) OnTick

func (init Init) OnTick() State

func (Init) OnTickDelay

func (init Init) OnTickDelay() State

func (Init) PostEvent

func (init Init) PostEvent() State

func (Init) PreEvent

func (init Init) PreEvent() State

func (Init) TickDelayed

func (init Init) TickDelayed() bool

Jump to

Keyboard shortcuts

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