pub struct AutoPanRequest {
pub activation: AutoPanActivation,
pub pointer_screen: CanvasPoint,
pub viewport_size: CanvasSize,
pub elapsed_seconds: f32,
}Expand description
One frame of auto-pan intent in logical screen coordinates.
Fields§
§activation: AutoPanActivation§pointer_screen: CanvasPoint§viewport_size: CanvasSize§elapsed_seconds: f32Implementations§
Source§impl AutoPanRequest
impl AutoPanRequest
pub fn new( activation: AutoPanActivation, pointer_screen: CanvasPoint, viewport_size: CanvasSize, elapsed_seconds: f32, ) -> Self
Trait Implementations§
Source§impl Clone for AutoPanRequest
impl Clone for AutoPanRequest
Source§fn clone(&self) -> AutoPanRequest
fn clone(&self) -> AutoPanRequest
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 AutoPanRequest
Source§impl Debug for AutoPanRequest
impl Debug for AutoPanRequest
Source§impl<'de> Deserialize<'de> for AutoPanRequest
impl<'de> Deserialize<'de> for AutoPanRequest
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 AutoPanRequest
impl PartialEq for AutoPanRequest
Source§fn eq(&self, other: &AutoPanRequest) -> bool
fn eq(&self, other: &AutoPanRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AutoPanRequest
impl Serialize for AutoPanRequest
impl StructuralPartialEq for AutoPanRequest
Auto Trait Implementations§
impl Freeze for AutoPanRequest
impl RefUnwindSafe for AutoPanRequest
impl Send for AutoPanRequest
impl Sync for AutoPanRequest
impl Unpin for AutoPanRequest
impl UnsafeUnpin for AutoPanRequest
impl UnwindSafe for AutoPanRequest
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