Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hover ¶
type Hover struct {
// contains filtered or unexported fields
}
Hover is a gesture to detect if a pointer keeps still for some time over the area.
type HoverEvent ¶
type Scroll ¶
type Scroll struct {
// contains filtered or unexported fields
}
Scroll detects scroll gestures and reduces them to scroll distances. Scroll recognizes mouse wheel movements as well as drag and fling touch gestures.
This is a modified version of the original [gesture.Scroll] in Gio. The most important change is that scrolling axis is detected, not passed by user.
func (*Scroll) Add ¶
Add the handler to the operation list to receive scroll events. The bounds variable refers to the scrolling boundaries as defined in pointer.Filter.
type ScrollState ¶
type ScrollState uint8
const ( // StateIdle is the default scroll state. StateIdle ScrollState = iota // StateDragging is reported during drag gestures. StateDragging // StateFlinging is reported when a fling is // in progress. StateFlinging )
func (ScrollState) String ¶
func (s ScrollState) String() string
Click to show internal directories.
Click to hide internal directories.