Documentation ¶
Index ¶
Constants ¶
View Source
const ( Evt_None EventType = "_" EvtBackspace = "backspace" EvtBottom = "bottom" EvtCloseWindow = "close_window" EvtCut = "cut" EvtCopy = "copy" EvtDelete = "delete" EvtDeleteHome = "delete_home" EvtEnd = "end" EvtHome = "home" EvtEnter = "enter" EvtMoveDown = "move_down" EvtMoveLeft = "move_left" EvtMoveRight = "move_right" EvtMoveUp = "move_up" EvtOpenInNewView = "open_in_new_view" EvtOpenInSameView = "open_in_same_view" EvtOpenTerm = "open_term" EvtPaste = "paste" EvtPageDown = "page_down" EvtPageUp = "page_up" EvtQuit = "quit" EvtRedo = "redo" EvtReload = "reload" EvtSave = "save" EvtScrollDown = "scroll_down" EvtScrollUp = "scroll_up" EvtSelectMouse = "select_mouse" EvtSelectAll = "select_all" EvtSelectDown = "select_down" EvtSelectEnd = "select_end" EvtSelectHome = "select_home" EvtSelectLeft = "select_left" EvtSelectPageDown = "select_page_down" EvtSelectPageUp = "select_page_up" EvtSelectRight = "select_right" EvtSelectUp = "select_up" EvtSelectWord = "select_word" EvtSetCursor = "set_cursor" EvtTab = "tab" EvtToggleCmdbar = "toggle_cmd_bar" EvtTop = "top" EvtUndo = "undo" EvtWinResize = "win_resize" )
View Source
const ( KeyFunction = "function" KeyLeftSuper = "left_super" KeyRightSuper = "right_super" KeyLeftAlt = "left_alt" KeyRightAlt = "right_alt" KeyLeftControl = "left_control" KeyRightControl = "right_control" KeyLeftShift = "left_shift" KeyRightShift = "right_shift" KeyUpArrow = "up_arrow" KeyDownArrow = "down_arrow" KeyLeftArrow = "left_arrow" KeyRightArrow = "right_arrow" KeyInsert = "insert" KeyTab = "tab" KeySpace = "space" KeyA = "a" KeyB = "b" KeyC = "c" KeyD = "d" KeyE = "e" KeyF = "f" KeyG = "g" KeyH = "h" KeyI = "i" KeyJ = "j" KeyK = "k" KeyL = "l" KeyM = "m" KeyN = "n" KeyO = "o" KeyP = "p" KeyQ = "q" KeyR = "r" KeyS = "s" KeyT = "t" KeyU = "u" KeyV = "v" KeyW = "w" KeyX = "x" KeyY = "y" KeyZ = "z" Key1 = "1" Key2 = "2" Key3 = "3" Key4 = "4" Key5 = "5" Key6 = "6" Key7 = "7" Key8 = "8" Key9 = "9" Key0 = "0" KeyPadEnd = "kp_end" KeyPadDown = "kp_down" KeyPadNext = "kp_next" KeyPadLeft = "kp_left" KeyPadBegin = "kp_begin" KeyPadRight = "kp_right" KeyPadHome = "kp_home" KeyPadUp = "kp_up" KeyPadPrior = "kp_prior" KeyPadInsert = "kp_insert" KeyPadSlash = "kp_slash" KeyPadStar = "kp_star" KeyPadMinus = "kp_minus" KeyPadPlus = "kp_plus" KeyPadDot = "kp_dot" KeyPadEqual = "kp_equal" KeyPadEnter = "kp_enter" KeyBackTick = "`" KeyF1 = "f1" KeyF2 = "f2" KeyF3 = "f3" KeyF4 = "f4" KeyF5 = "f5" KeyF6 = "f6" KeyF7 = "f7" KeyF8 = "f8" KeyF9 = "f9" KeyF10 = "f10" KeyF11 = "f11" KeyF12 = "f12" KeyF13 = "f13" KeyF14 = "f14" KeyF15 = "f15" KeyF16 = "f16" KeyMinus = "-" KeyEqual = "=" KeyLeftBracket = "[" KeyRightBracket = "]" KeyBackslash = `\` KeySemicolon = ";" KeyQuote = "'" KeyComma = "," KeyPeriod = "." KeySlash = "/" KeyReturn = "return" KeyEscape = "escape" KeyNumlock = "numlock" KeyDelete = "delete" KeyBackspace = "backspace" KeyHome = "home" KeyEnd = "end" KeyPrior = "prior" KeyNext = "next" KeyCapsLock = "caps" )
same as wde
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { Type EventType // current values Glyph string Keys []string Combo Combo MouseBtns map[MouseButton]bool MouseY, MouseX int // contains filtered or unexported fields }
func (*Event) MouseDown ¶
func (e *Event) MouseDown(button MouseButton, y, x int)
func (*Event) MouseUp ¶
func (e *Event) MouseUp(button MouseButton, y, x int)
type FileWatcher ¶
func NewFileWatcher ¶
func NewFileWatcher() *FileWatcher
func (*FileWatcher) Start ¶
func (w *FileWatcher) Start()
func (*FileWatcher) Stop ¶
func (w *FileWatcher) Stop()
func (*FileWatcher) Unwatch ¶
func (w *FileWatcher) Unwatch(vid int64, loc string)
func (*FileWatcher) Watch ¶
func (w *FileWatcher) Watch(vid int64, loc string)
type MouseButton ¶
type MouseButton int
const ( MouseLeft MouseButton = 1 << iota // 1 MouseMiddle // 2 MouseRight // 4 MouseWheelUp // 8 MouseWheelDown // 16 MouseWheelLeft // 32 MouseWheelRight // 64 )
Click to show internal directories.
Click to hide internal directories.