pub struct ViewportPanRequest {
pub screen_delta: CanvasPoint,
}Expand description
Renderer-neutral drag-pan request.
Fields§
§screen_delta: CanvasPointLogical screen-pixel delta for the content movement.
Implementations§
Source§impl ViewportPanRequest
impl ViewportPanRequest
pub fn new(screen_delta: CanvasPoint) -> Self
Trait Implementations§
Source§impl Clone for ViewportPanRequest
impl Clone for ViewportPanRequest
Source§fn clone(&self) -> ViewportPanRequest
fn clone(&self) -> ViewportPanRequest
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 ViewportPanRequest
Source§impl Debug for ViewportPanRequest
impl Debug for ViewportPanRequest
Source§impl<'de> Deserialize<'de> for ViewportPanRequest
impl<'de> Deserialize<'de> for ViewportPanRequest
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 ViewportPanRequest
impl PartialEq for ViewportPanRequest
Source§fn eq(&self, other: &ViewportPanRequest) -> bool
fn eq(&self, other: &ViewportPanRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ViewportPanRequest
impl Serialize for ViewportPanRequest
impl StructuralPartialEq for ViewportPanRequest
Auto Trait Implementations§
impl Freeze for ViewportPanRequest
impl RefUnwindSafe for ViewportPanRequest
impl Send for ViewportPanRequest
impl Sync for ViewportPanRequest
impl Unpin for ViewportPanRequest
impl UnsafeUnpin for ViewportPanRequest
impl UnwindSafe for ViewportPanRequest
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