Egui::Canvas::Interaction
Inherits Reference < Object
Per-frame interaction report. Positions are in CANVAS pixels
(already divided by the zoom scale), nil when the pointer is
off the canvas.
Constructors
new(response : Egui::Response, pointer_px : Egui::Pos2 | Nil, dragging : Bool, drag_button : Symbol | Nil, drag_start_px : Egui::Pos2 | Nil, drag_started : Bool, drag_stopped : Bool, click_px : Egui::Pos2 | Nil, secondary_click_px : Egui::Pos2 | Nil, double_click_px : Egui::Pos2 | Nil)
SourceInstance methods
clicked_button
The button a click completed with (nil when no click this frame): :primary / :secondary.
double_click_px
Sourcedrag_button
Which button a running drag started with (:primary draws with the fg color in Paint, :secondary with the bg color).
drag_start_px
Sourcedrag_started?
Sourcedrag_stopped?
Sourcedragging?
Sourcepointer_px
Sourceresponse
Sourcesecondary_click_px
Source