Documentation ¶
Overview ¶
Package event defines interfaces for sdl.Event handling.
Index ¶
- type AudioDeviceAddedEventHandler
- type AudioDeviceEventHandler
- type AudioDeviceRemovedEventHandler
- type ClipboardEventHandler
- type ControllerAxisEventHandler
- type ControllerButtonDownEventHandler
- type ControllerButtonEventHandler
- type ControllerButtonUpEventHandler
- type ControllerDeviceAddedEventHandler
- type ControllerDeviceEventHandler
- type ControllerDeviceMappedEventHandler
- type ControllerDeviceRemovedEventHandler
- type DisplayEventHandler
- type DollarGestureEventHandler
- type DropEventHandler
- type JoyAxisEventHandler
- type JoyBallEventHandler
- type JoyButtonDownEventHandler
- type JoyButtonEventHandler
- type JoyButtonUpEventHandler
- type JoyDeviceAddedEventHandler
- type JoyDeviceRemovedEventHandler
- type JoyHatEventHandler
- type KeyDownEventHandler
- type KeyUpEventHandler
- type KeyboardEventHandler
- type Manager
- type MouseButtonDownEventHandler
- type MouseButtonEventHandler
- type MouseButtonUpEventHandler
- type MouseMotionEventHandler
- type MouseWheelEventHandler
- type MultiGestureEventHandler
- type OSEventHandler
- type Provider
- type RenderEventHandler
- type SensorEventHandler
- type SysWMEventHandler
- type TextEditingEventHandler
- type TextInputEventHandler
- type TouchFingerDownEventHandler
- type TouchFingerEventHandler
- type TouchFingerMotionEventHandler
- type TouchFingerUpEventHandler
- type UserEventHandler
- type WindowCloseEventHandler
- type WindowEnterEventHandler
- type WindowEventHandler
- type WindowExposedEventHandler
- type WindowFocusGainedEventHandler
- type WindowFocusLostEventHandler
- type WindowHiddenEventHandler
- type WindowHitTestEventHandler
- type WindowLeaveEventHandler
- type WindowMaximizedEventHandler
- type WindowMinimizedEventHandler
- type WindowMovedEventHandler
- type WindowResizedEventHandler
- type WindowRestoredEventHandler
- type WindowShownEventHandler
- type WindowSizeChangedEventHandler
- type WindowTakeFocusEventHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioDeviceAddedEventHandler ¶
type AudioDeviceAddedEventHandler interface {
HandleAudioDeviceAddedEvent(*sdl.AudioDeviceEvent) error
}
type AudioDeviceEventHandler ¶
type AudioDeviceEventHandler interface {
HandleAudioDeviceEvent(*sdl.AudioDeviceEvent) error
}
type AudioDeviceRemovedEventHandler ¶
type AudioDeviceRemovedEventHandler interface {
HandleAudioDeviceRemovedEvent(*sdl.AudioDeviceEvent) error
}
type ClipboardEventHandler ¶
type ClipboardEventHandler interface {
HandleClipboardEvent(*sdl.ClipboardEvent) error
}
type ControllerAxisEventHandler ¶
type ControllerAxisEventHandler interface {
HandleControllerAxisEvent(*sdl.ControllerAxisEvent) error
}
type ControllerButtonDownEventHandler ¶
type ControllerButtonDownEventHandler interface {
HandleControllerButtonDownEvent(*sdl.ControllerButtonEvent) error
}
type ControllerButtonEventHandler ¶
type ControllerButtonEventHandler interface {
HandleControllerButtonEvent(*sdl.ControllerButtonEvent) error
}
type ControllerButtonUpEventHandler ¶
type ControllerButtonUpEventHandler interface {
HandleControllerButtonUpEvent(*sdl.ControllerButtonEvent) error
}
type ControllerDeviceAddedEventHandler ¶
type ControllerDeviceAddedEventHandler interface {
HandleControllerDeviceAddedEvent(*sdl.ControllerDeviceEvent) error
}
type ControllerDeviceEventHandler ¶
type ControllerDeviceEventHandler interface {
HandleControllerDeviceEvent(*sdl.ControllerDeviceEvent) error
}
type ControllerDeviceMappedEventHandler ¶
type ControllerDeviceMappedEventHandler interface {
HandleControllerDeviceMappedEvent(*sdl.ControllerDeviceEvent) error
}
type ControllerDeviceRemovedEventHandler ¶
type ControllerDeviceRemovedEventHandler interface {
HandleControllerDeviceRemovedEvent(*sdl.ControllerDeviceEvent) error
}
type DisplayEventHandler ¶
type DisplayEventHandler interface {
HandleDisplayEvent(*sdl.DisplayEvent) error
}
type DollarGestureEventHandler ¶
type DollarGestureEventHandler interface {
HandleDollarGestureEvent(*sdl.DollarGestureEvent) error
}
type DropEventHandler ¶
type JoyAxisEventHandler ¶
type JoyAxisEventHandler interface {
HandleJoyAxisEvent(*sdl.JoyAxisEvent) error
}
type JoyBallEventHandler ¶
type JoyBallEventHandler interface {
HandleJoyBallEvent(*sdl.JoyBallEvent) error
}
type JoyButtonDownEventHandler ¶
type JoyButtonDownEventHandler interface {
HandleJoyButtonDownEvent(*sdl.JoyButtonEvent) error
}
type JoyButtonEventHandler ¶
type JoyButtonEventHandler interface {
HandleJoyButtonEvent(*sdl.JoyButtonEvent) error
}
type JoyButtonUpEventHandler ¶
type JoyButtonUpEventHandler interface {
HandleJoyButtonUpEvent(*sdl.JoyButtonEvent) error
}
type JoyDeviceAddedEventHandler ¶
type JoyDeviceAddedEventHandler interface {
HandleJoyDeviceAddedEvent(*sdl.JoyDeviceAddedEvent) error
}
type JoyDeviceRemovedEventHandler ¶
type JoyDeviceRemovedEventHandler interface {
HandleJoyDeviceRemovedEvent(*sdl.JoyDeviceRemovedEvent) error
}
type JoyHatEventHandler ¶
type JoyHatEventHandler interface {
HandleJoyHatEvent(*sdl.JoyHatEvent) error
}
type KeyDownEventHandler ¶
type KeyDownEventHandler interface {
HandleKeyDownEvent(*sdl.KeyboardEvent) error
}
type KeyUpEventHandler ¶
type KeyUpEventHandler interface {
HandleKeyUpEvent(*sdl.KeyboardEvent) error
}
type KeyboardEventHandler ¶
type KeyboardEventHandler interface {
HandleKeyboardEvent(*sdl.KeyboardEvent) error
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) MustRegisterHandler ¶
func (m *Manager) MustRegisterHandler(handler ...interface{})
func (*Manager) RegisterHandler ¶
func (m *Manager) RegisterHandler(handler ...interface{})
type MouseButtonDownEventHandler ¶
type MouseButtonDownEventHandler interface {
HandleMouseButtonDownEvent(*sdl.MouseButtonEvent) error
}
type MouseButtonEventHandler ¶
type MouseButtonEventHandler interface {
HandleMouseButtonEvent(*sdl.MouseButtonEvent) error
}
type MouseButtonUpEventHandler ¶
type MouseButtonUpEventHandler interface {
HandleMouseButtonUpEvent(*sdl.MouseButtonEvent) error
}
type MouseMotionEventHandler ¶
type MouseMotionEventHandler interface {
HandleMouseMotionEvent(*sdl.MouseMotionEvent) error
}
type MouseWheelEventHandler ¶
type MouseWheelEventHandler interface {
HandleMouseWheelEvent(*sdl.MouseWheelEvent) error
}
type MultiGestureEventHandler ¶
type MultiGestureEventHandler interface {
HandleMultiGestureEvent(*sdl.MultiGestureEvent) error
}
type OSEventHandler ¶
type RenderEventHandler ¶
type RenderEventHandler interface {
HandleRenderEvent(*sdl.RenderEvent) error
}
type SensorEventHandler ¶
type SensorEventHandler interface {
HandleSensorEvent(*sdl.SensorEvent) error
}
type SysWMEventHandler ¶
type SysWMEventHandler interface {
HandleSysWMEvent(*sdl.SysWMEvent) error
}
type TextEditingEventHandler ¶
type TextEditingEventHandler interface {
HandleTextEditingEvent(*sdl.TextEditingEvent) error
}
type TextInputEventHandler ¶
type TextInputEventHandler interface {
HandleTextInputEvent(*sdl.TextInputEvent) error
}
type TouchFingerDownEventHandler ¶
type TouchFingerDownEventHandler interface {
HandleTouchFingerDownEvent(*sdl.TouchFingerEvent) error
}
type TouchFingerEventHandler ¶
type TouchFingerEventHandler interface {
HandleTouchFingerEvent(*sdl.TouchFingerEvent) error
}
type TouchFingerMotionEventHandler ¶
type TouchFingerMotionEventHandler interface {
HandleTouchFingerMotionEvent(*sdl.TouchFingerEvent) error
}
type TouchFingerUpEventHandler ¶
type TouchFingerUpEventHandler interface {
HandleTouchFingerUpEvent(*sdl.TouchFingerEvent) error
}
type UserEventHandler ¶
type WindowCloseEventHandler ¶
type WindowCloseEventHandler interface {
HandleWindowCloseEvent(*sdl.WindowEvent) error
}
type WindowEnterEventHandler ¶
type WindowEnterEventHandler interface {
HandleWindowEnterEvent(*sdl.WindowEvent) error
}
type WindowEventHandler ¶
type WindowEventHandler interface {
HandleWindowEvent(*sdl.WindowEvent) error
}
type WindowExposedEventHandler ¶
type WindowExposedEventHandler interface {
HandleWindowExposedEvent(*sdl.WindowEvent) error
}
type WindowFocusGainedEventHandler ¶
type WindowFocusGainedEventHandler interface {
HandleWindowFocusGainedEvent(*sdl.WindowEvent) error
}
type WindowFocusLostEventHandler ¶
type WindowFocusLostEventHandler interface {
HandleWindowFocusLostEvent(*sdl.WindowEvent) error
}
type WindowHiddenEventHandler ¶
type WindowHiddenEventHandler interface {
HandleWindowHiddenEvent(*sdl.WindowEvent) error
}
type WindowHitTestEventHandler ¶
type WindowHitTestEventHandler interface {
HandleWindowHitTestEvent(*sdl.WindowEvent) error
}
type WindowLeaveEventHandler ¶
type WindowLeaveEventHandler interface {
HandleWindowLeaveEvent(*sdl.WindowEvent) error
}
type WindowMaximizedEventHandler ¶
type WindowMaximizedEventHandler interface {
HandleWindowMaximizedEvent(*sdl.WindowEvent) error
}
type WindowMinimizedEventHandler ¶
type WindowMinimizedEventHandler interface {
HandleWindowMinimizedEvent(*sdl.WindowEvent) error
}
type WindowMovedEventHandler ¶
type WindowMovedEventHandler interface {
HandleWindowMovedEvent(*sdl.WindowEvent) error
}
type WindowResizedEventHandler ¶
type WindowResizedEventHandler interface {
HandleWindowResizedEvent(*sdl.WindowEvent) error
}
type WindowRestoredEventHandler ¶
type WindowRestoredEventHandler interface {
HandleWindowRestoredEvent(*sdl.WindowEvent) error
}
type WindowShownEventHandler ¶
type WindowShownEventHandler interface {
HandleWindowShownEvent(*sdl.WindowEvent) error
}
type WindowSizeChangedEventHandler ¶
type WindowSizeChangedEventHandler interface {
HandleWindowSizeChangedEvent(*sdl.WindowEvent) error
}
type WindowTakeFocusEventHandler ¶
type WindowTakeFocusEventHandler interface {
HandleWindowTakeFocusEvent(*sdl.WindowEvent) error
}
Click to show internal directories.
Click to hide internal directories.