Enum flo_canvas_events::DrawEvent [−][src]
pub enum DrawEvent { Redraw, NewFrame, Scale(f64), Resize(f64, f64), CanvasTransform(Transform2D), Pointer(PointerAction, PointerId, PointerState), KeyDown(u64, Option<Key>), KeyUp(u64, Option<Key>), Closed, }
Expand description
Events that can arrive from a flo_draw window
Variants
Request to re-render the window (this is automatic for canvas windows)
Indicates that a frame has finished rendering to the canvas
The window has a new scale
Tuple Fields of Scale
0: f64
Window has a new size
Canvas transformation for the window has changed (this will convert between window coordinates and canvas coordinates)
Tuple Fields of CanvasTransform
0: Transform2D
A pointer device has changed its state
Tuple Fields of Pointer
The user has pressed a key (parameters are scancode and the name of the key that was pressed, if known)
The user has released a key (parameters are scancode and the name of the key that was pressed, if known)
Window has been closed
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DrawEvent
impl UnwindSafe for DrawEvent
Blanket Implementations
Mutably borrows from an owned value. Read more