pub struct PinchZoomInfos {
pub zoom_factor: Scale<f32, DevicePixel, DevicePixel>,
pub rect: Rect<f32, CSSPixel>,
}Expand description
A PinchZoomInfos for a root [Pipeline] of an [WebView]. For any [Pipeline]
that is not a root, it should follow the viewport description of its pipeline since
pinch-zoom and resizing due to overlay UIs are not applicable there.
Fields§
§zoom_factor: Scale<f32, DevicePixel, DevicePixel>The zoom factor (or pinch-zoom).
rect: Rect<f32, CSSPixel>The size relative to layout viewport.
Implementations§
Source§impl PinchZoomInfos
impl PinchZoomInfos
Sourcepub fn new_from_viewport_size(size: Size2D<f32, CSSPixel>) -> Self
pub fn new_from_viewport_size(size: Size2D<f32, CSSPixel>) -> Self
New initial PinchZoomInfos without any pinch-zoom or resizing from a viewport size
for a nested pipeline or newly initialized root pipeline.
Trait Implementations§
Source§impl Clone for PinchZoomInfos
impl Clone for PinchZoomInfos
Source§fn clone(&self) -> PinchZoomInfos
fn clone(&self) -> PinchZoomInfos
Returns a duplicate 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 moreSource§impl Debug for PinchZoomInfos
impl Debug for PinchZoomInfos
Source§impl<'de> Deserialize<'de> for PinchZoomInfos
impl<'de> Deserialize<'de> for PinchZoomInfos
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 PinchZoomInfos
impl PartialEq for PinchZoomInfos
Source§impl Serialize for PinchZoomInfos
impl Serialize for PinchZoomInfos
impl Copy for PinchZoomInfos
impl StructuralPartialEq for PinchZoomInfos
Auto Trait Implementations§
impl Freeze for PinchZoomInfos
impl RefUnwindSafe for PinchZoomInfos
impl Send for PinchZoomInfos
impl Sync for PinchZoomInfos
impl Unpin for PinchZoomInfos
impl UnwindSafe for PinchZoomInfos
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert