plushie/widget/mouse_area
Mouse area widget builder (mouse interaction wrapper).
Types
pub type Cursor {
Pointer
Grab
Grabbing
Crosshair
CursorText
CursorMove
NotAllowed
Progress
Wait
Help
Cell
Copy
CursorAlias
NoDrop
AllScroll
ZoomIn
ZoomOut
ContextMenu
ResizingHorizontally
ResizingVertically
ResizingDiagonallyUp
ResizingDiagonallyDown
ResizingColumn
ResizingRow
}
Constructors
-
Pointer -
Grab -
Grabbing -
Crosshair -
CursorText -
CursorMove -
NotAllowed -
Progress -
Wait -
Help -
Cell -
Copy -
CursorAlias -
NoDrop -
AllScroll -
ZoomIn -
ZoomOut -
ContextMenu -
ResizingHorizontally -
ResizingVertically -
ResizingDiagonallyUp -
ResizingDiagonallyDown -
ResizingColumn -
ResizingRow
Values
pub fn event_rate(ma: MouseArea, rate: Int) -> MouseArea
Set the event throttle rate in milliseconds.
pub fn on_middle_press(ma: MouseArea, enabled: Bool) -> MouseArea
Enable the middle-click press event.
pub fn on_middle_release(
ma: MouseArea,
enabled: Bool,
) -> MouseArea
Enable the middle-click release event.
pub fn on_right_press(ma: MouseArea, enabled: Bool) -> MouseArea
Enable the right-click press event.