#[non_exhaustive]pub struct ZoomPanPaint {
pub frame: Rect,
pub placed: Rect,
pub scale: f32,
}Expand description
Where drawn content goes, for ZoomPanView::custom and Minimap::custom.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.frame: RectThe box of the view on screen. Drawing is clipped to it.
placed: RectWhere the whole content lands on screen. Much of it may be outside frame: draw only
what touches frame when there is a lot to draw.
scale: f32Screen pixels per unit of content.
Trait Implementations§
Source§impl Clone for ZoomPanPaint
impl Clone for ZoomPanPaint
Source§fn clone(&self) -> ZoomPanPaint
fn clone(&self) -> ZoomPanPaint
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 ZoomPanPaint
Source§impl Debug for ZoomPanPaint
impl Debug for ZoomPanPaint
Source§impl PartialEq for ZoomPanPaint
impl PartialEq for ZoomPanPaint
impl StructuralPartialEq for ZoomPanPaint
Auto Trait Implementations§
impl Freeze for ZoomPanPaint
impl RefUnwindSafe for ZoomPanPaint
impl Send for ZoomPanPaint
impl Sync for ZoomPanPaint
impl Unpin for ZoomPanPaint
impl UnsafeUnpin for ZoomPanPaint
impl UnwindSafe for ZoomPanPaint
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