Enum flo_draw::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
Scale(f64)
The window has a new scale
Window has a new size
CanvasTransform(Transform2D)
Canvas transformation for the window has changed (this will convert between window coordinates and canvas coordinates)
Pointer(PointerAction, PointerId, PointerState)
A pointer device has changed its state
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