Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cursor ¶
type Cursor byte
const ( CursorDefault Cursor = iota CursorNone CursorText CursorVerticalText CursorPointer CursorCrosshair CursorAllScroll CursorColResize CursorRowResize CursorGrab CursorGrabbing CursorNotAllowed CursorWait CursorProgress CursorNorthWestResize CursorNorthEastResize CursorSouthWestResize CursorSouthEastResize CursorNorthSouthResize CursorEastWestResize CursorWestResize CursorEastResize CursorNorthResize CursorSouthResize CursorNorthEastSouthWestResize CursorNorthWestSouthEastResize )
type Event ¶
type Event struct {
Kind Kind
Source Source
PointerID ID
Priority Priority
Time time.Duration
Buttons Buttons
Position f32.Point
Scroll f32.Point
Modifiers key.Modifiers
}
func (Event) ImplementsEvent ¶
func (Event) ImplementsEvent()
type Filter ¶
type Filter struct {
Target event.Tag
Kinds Kind
ScrollX ScrollRange
ScrollY ScrollRange
}
func (Filter) ImplementsFilter ¶
func (Filter) ImplementsFilter()
type GrabCmd ¶
func (GrabCmd) ImplementsCommand ¶
func (GrabCmd) ImplementsCommand()
type ScrollRange ¶
type ScrollRange struct {
Min, Max int
}
func (ScrollRange) Union ¶
func (s ScrollRange) Union(s2 ScrollRange) ScrollRange
Click to show internal directories.
Click to hide internal directories.