Struct drag_controller::DragController [] [src]

pub struct DragController {
    pub drag: bool,
    pub pos: [f64; 2],
}

Controls dragging.

Fields

Whether to drag or not.

The current positon of dragging.

Methods

impl DragController
[src]

Creates a new drag controller.

Handles event.

Calls closure when events for dragging happen. If the drag event callback returns false, it will cancel dragging.

Trait Implementations

impl Copy for DragController
[src]

impl Clone for DragController
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more