Documentation ¶
Index ¶
Constants ¶
View Source
const ( GeneralType int KeyboardType ButtonType MotionType MenuType ConfigureType ScrollType ClipboardType )
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
View Source
const ( ScrollUp = 0 ScrollDown = 1 ScrollLeft = 2 ScrollRight = 3 ScrollSmooth = 4 )
Scroll direction type
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"} KeyEscape = Keyboard{Rune: 27, Name: "Escape"} KeySpace = Keyboard{Rune: 32, Name: "space"} KeyDelete = Keyboard{Rune: 127, Name: "Delete"} KeyPageUp = Keyboard{Name: "Page_Up"} KeyPageDown = Keyboard{Name: "Page_Down"} KeyHome = Keyboard{Name: "Home"} KeyEnd = Keyboard{Name: "End"} )
Keyboard events
View Source
var ( KeySave = Keyboard{Rune: 115, Name: "s", Control: true} KeyExit = Keyboard{Rune: 119, Name: "w", Control: true} KeyCopy = Keyboard{Rune: 99, Name: "c", Control: true} KeyPaste = Keyboard{Rune: 118, Name: "v", Control: true} )
Platform specified keyboard events
Functions ¶
This section is empty.
Types ¶
type Clipboard ¶ added in v0.4.0
type Clipboard struct {
Data clipboard.Clipboarder
}
Clipboard is event with clipboard data
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.