Documentation
¶
Index ¶
- Constants
- type Idle
- func (idle Idle) Destroy()
- func (idle Idle) OnKeyboardEvent(event *sdl.KeyboardEvent) State
- func (idle Idle) OnMouseButtonEvent(event *sdl.MouseButtonEvent) State
- func (idle Idle) OnMouseMotionEvent(event *sdl.MouseMotionEvent) State
- func (idle Idle) OnQuit(event *sdl.QuitEvent) State
- func (idle Idle) OnTick() State
- func (idle Idle) OnTickDelay() State
- func (idle Idle) PostEvent() State
- func (idle Idle) PreEvent() State
- func (idle Idle) TickDelayed() bool
- type Init
- func (init Init) Destroy()
- func (init Init) OnKeyboardEvent(event *sdl.KeyboardEvent) State
- func (init Init) OnMouseButtonEvent(event *sdl.MouseButtonEvent) State
- func (init Init) OnMouseMotionEvent(event *sdl.MouseMotionEvent) State
- func (init Init) OnQuit(event *sdl.QuitEvent) State
- func (init Init) OnTick() State
- func (init Init) OnTickDelay() State
- func (init Init) PostEvent() State
- func (init Init) PreEvent() State
- func (init Init) TickDelayed() bool
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 (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) OnTickDelay ¶
func (idle Idle) OnTickDelay() State
func (Idle) TickDelayed ¶
type Init ¶
type Init struct {
// contains filtered or unexported fields
}
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) OnTickDelay ¶
func (init Init) OnTickDelay() State