pub struct ViewportDragPanInput {
pub button: ViewportPointerButton,
pub screen_delta: CanvasPoint,
}Expand description
Normalized pointer-drag input for viewport pan policy.
Fields§
§screen_delta: CanvasPointImplementations§
Source§impl ViewportDragPanInput
impl ViewportDragPanInput
pub fn new(button: ViewportPointerButton, screen_delta: CanvasPoint) -> Self
Trait Implementations§
Source§impl Clone for ViewportDragPanInput
impl Clone for ViewportDragPanInput
Source§fn clone(&self) -> ViewportDragPanInput
fn clone(&self) -> ViewportDragPanInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ViewportDragPanInput
Source§impl Debug for ViewportDragPanInput
impl Debug for ViewportDragPanInput
Source§impl<'de> Deserialize<'de> for ViewportDragPanInput
impl<'de> Deserialize<'de> for ViewportDragPanInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ViewportDragPanInput
impl PartialEq for ViewportDragPanInput
Source§fn eq(&self, other: &ViewportDragPanInput) -> bool
fn eq(&self, other: &ViewportDragPanInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ViewportDragPanInput
impl Serialize for ViewportDragPanInput
impl StructuralPartialEq for ViewportDragPanInput
Auto Trait Implementations§
impl Freeze for ViewportDragPanInput
impl RefUnwindSafe for ViewportDragPanInput
impl Send for ViewportDragPanInput
impl Sync for ViewportDragPanInput
impl Unpin for ViewportDragPanInput
impl UnsafeUnpin for ViewportDragPanInput
impl UnwindSafe for ViewportDragPanInput
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