pub struct ZoomRegion {
pub center: (f32, f32),
pub factor: f32,
}Expand description
Defines a zoom region on the slide.
Fields§
§center: (f32, f32)Center of the zoom region (normalized 0..1).
factor: f32Magnification factor (e.g., 2.0 = 2x zoom).
Trait Implementations§
Source§impl Clone for ZoomRegion
impl Clone for ZoomRegion
Source§fn clone(&self) -> ZoomRegion
fn clone(&self) -> ZoomRegion
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 moreSource§impl Debug for ZoomRegion
impl Debug for ZoomRegion
impl Copy for ZoomRegion
Auto Trait Implementations§
impl Freeze for ZoomRegion
impl RefUnwindSafe for ZoomRegion
impl Send for ZoomRegion
impl Sync for ZoomRegion
impl Unpin for ZoomRegion
impl UnsafeUnpin for ZoomRegion
impl UnwindSafe for ZoomRegion
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