Skip to main content

Module mousegestures

Module mousegestures 

Source
Expand description

Code related to the mouse gesture handling.

Structsยง

GestureZones
The supported mouse gesture zones.

Enumsยง

GestureKind ๐Ÿ”’
The supported mouse gesture operations.

Constantsยง

TAN_22_5_DEGREES ๐Ÿ”’
Geometric constant: tan(22.5ยฐ) used for gesture zone calculations

Functionsยง

create_gesture_stroke ๐Ÿ”’
Helper function to create a stroke with appropriate color and width based on mode
draw_gesture_help ๐Ÿ”’
Draw the โ€œcompassโ€ showing the boundaries for different gestures.
draw_gesture_text ๐Ÿ”’
gesture_type ๐Ÿ”’
Determine which mouse gesture (GestureKind) is currently drawn.