Documentation ¶
Index ¶
Constants ¶
View Source
const ( GeneralType int KeyboardType ButtonType MotionType MenuType ConfigureType )
Event types
View Source
const ( ButtonActionPress = 4 ButtonActionDouble = 5 ButtonActionTriple = 6 ButtonActionRelease = 7 )
Button action type
View Source
const ( ButtonLeft = 1 ButtonMiddle = 2 ButtonRight = 3 )
Button number
Variables ¶
View Source
var ( UnknownEvent = General{Event: 0} DestroyEvent = General{Event: 1} )
Signal events
View Source
var ( KeyLeft = Keyboard{Name: "Left"} KeyRight = Keyboard{Name: "Right"} KeyUp = Keyboard{Name: "Up"} KeyDown = Keyboard{Name: "Down"} KeyBackSpace = Keyboard{Rune: 8, Name: "BackSpace"} KeyTab = Keyboard{Rune: 9, Name: "Tab"} KeyEnter = Keyboard{Rune: 13, Name: "Return"} KeyDelete = Keyboard{Rune: 127, Name: "Delete"} )
Keyboard events
View Source
var ( KeySave = KeyboardEvent{Rune: 115, Name: "s", Meta: true} KeyExit = KeyboardEvent{Rune: 113, Name: "q", Meta: true} )
Platform specified keyboard events
Functions ¶
This section is empty.
Types ¶
type Eventer ¶
type Eventer interface {
Type() int
}
Eventer is the interface that groups GUI events
Click to show internal directories.
Click to hide internal directories.