pub struct ViewportInputGeometry {
pub content_rect_px: Rect,
pub draw_rect_px: Rect,
pub target_px_size: (u32, u32),
pub fit: ViewportFit,
pub pixels_per_point: f32,
}Fields§
§content_rect_px: RectThe viewport widget bounds in window-local logical pixels (ADR 0017).
draw_rect_px: RectThe mapped draw rect in window-local logical pixels after applying the viewport fit.
target_px_size: (u32, u32)The backing render target size in physical pixels.
fit: ViewportFit§pixels_per_point: f32Pixels-per-point (a.k.a. window scale factor) used to convert logical px → physical px.
Trait Implementations§
Source§impl Clone for ViewportInputGeometry
impl Clone for ViewportInputGeometry
Source§fn clone(&self) -> ViewportInputGeometry
fn clone(&self) -> ViewportInputGeometry
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 ViewportInputGeometry
impl Debug for ViewportInputGeometry
Source§impl PartialEq for ViewportInputGeometry
impl PartialEq for ViewportInputGeometry
impl Copy for ViewportInputGeometry
impl StructuralPartialEq for ViewportInputGeometry
Auto Trait Implementations§
impl Freeze for ViewportInputGeometry
impl RefUnwindSafe for ViewportInputGeometry
impl Send for ViewportInputGeometry
impl Sync for ViewportInputGeometry
impl Unpin for ViewportInputGeometry
impl UnsafeUnpin for ViewportInputGeometry
impl UnwindSafe for ViewportInputGeometry
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