pub struct DragController {
pub drag: bool,
pub pos: [f64; 2],
}
Expand description
Controls dragging.
Fields§
§drag: bool
Whether to drag or not.
pos: [f64; 2]
The current positon of dragging.
Implementations§
Source§impl DragController
impl DragController
Sourcepub fn new() -> DragController
pub fn new() -> DragController
Creates a new drag controller.
Trait Implementations§
Source§impl Clone for DragController
impl Clone for DragController
Source§fn clone(&self) -> DragController
fn clone(&self) -> DragController
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for DragController
Auto Trait Implementations§
impl Freeze for DragController
impl RefUnwindSafe for DragController
impl Send for DragController
impl Sync for DragController
impl Unpin for DragController
impl UnwindSafe for DragController
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more