...

Source file src/code.rocketnine.space/tslocum/cview/mouse.go

Documentation: code.rocketnine.space/tslocum/cview

     1  package cview
     2  
     3  import "time"
     4  
     5  // MouseAction indicates one of the actions the mouse is logically doing.
     6  type MouseAction int16
     7  
     8  // Available mouse actions.
     9  const (
    10  	MouseMove MouseAction = iota
    11  	MouseLeftDown
    12  	MouseLeftUp
    13  	MouseLeftClick
    14  	MouseLeftDoubleClick
    15  	MouseMiddleDown
    16  	MouseMiddleUp
    17  	MouseMiddleClick
    18  	MouseMiddleDoubleClick
    19  	MouseRightDown
    20  	MouseRightUp
    21  	MouseRightClick
    22  	MouseRightDoubleClick
    23  	MouseScrollUp
    24  	MouseScrollDown
    25  	MouseScrollLeft
    26  	MouseScrollRight
    27  )
    28  
    29  // StandardDoubleClick is a commonly used double click interval.
    30  const StandardDoubleClick = 500 * time.Millisecond
    31  

View as plain text