Documentation ¶
Index ¶
Constants ¶
View Source
const ( // raw events that will start at window and work their way down. // eg, mouse clicked, key pressed on keyboard etc. EventTypeButtonDown int = iota EventTypeButtonUp EventTypeMouseMove EventTypeKeyboard EventTypeSetText EventTypeDeselect // used for checkboxes/radiobuttons etc. // events generated from widgets indicating a widget based event // eg. image button pressed. // Some of these might seem replicated... eg, mouse clicked (on a button) could be // seen as the same as "image button pressed"... but one is effectively HW signal coming in // where as the the widget events are out going (at least, that's the thought at the moment) WidgetEventTypeButtonPressed int = iota )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckBoxEvent ¶
func NewCheckBoxEvent ¶
func NewCheckBoxEvent(name string, eventType int, checked bool, widgetID string) CheckBoxEvent
func (CheckBoxEvent) Action ¶
func (m CheckBoxEvent) Action() error
func (CheckBoxEvent) EventType ¶
func (m CheckBoxEvent) EventType() int
func (CheckBoxEvent) Name ¶
func (m CheckBoxEvent) Name() string
type DeselectEvent ¶
type DeselectEvent struct {
Event
}
func NewDeselectEvent ¶
func NewDeselectEvent(widgetID string) DeselectEvent
func (DeselectEvent) Action ¶
func (e DeselectEvent) Action() error
func (DeselectEvent) EventType ¶
func (e DeselectEvent) EventType() int
func (DeselectEvent) Name ¶
func (e DeselectEvent) Name() string
type EventListener ¶
type EventListener struct { }
EventListener is generic event listener that is used in the APP itself and not in the UI widgets etc.
func NewEventListener ¶
func NewEventListener() *EventListener
type IEventHandler ¶
type KeyboardEvent ¶
type KeyboardEvent struct { Event Character ebiten.Key // yeah yeah, shouldn't really be a string. }
func NewKeyboardEvent ¶
func NewKeyboardEvent(key ebiten.Key, widgetID string) KeyboardEvent
func (KeyboardEvent) Action ¶
func (e KeyboardEvent) Action() error
func (KeyboardEvent) EventType ¶
func (e KeyboardEvent) EventType() int
func (KeyboardEvent) Name ¶
func (e KeyboardEvent) Name() string
type MouseEvent ¶
func NewMouseEvent ¶
func (MouseEvent) Action ¶
func (m MouseEvent) Action() error
func (MouseEvent) EventType ¶
func (m MouseEvent) EventType() int
func (MouseEvent) Name ¶
func (m MouseEvent) Name() string
type SetTextEvent ¶
func NewSetTextEvent ¶
func NewSetTextEvent(text string) SetTextEvent
func (SetTextEvent) Action ¶
func (e SetTextEvent) Action() error
func (SetTextEvent) EventType ¶
func (e SetTextEvent) EventType() int
func (SetTextEvent) Name ¶
func (e SetTextEvent) Name() string
Click to show internal directories.
Click to hide internal directories.