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