pub struct PaintCallbackInfo {
pub viewport: Rect,
pub clip_rect: Rect,
pub pixels_per_point: f32,
pub screen_size_px: [u32; 2],
}Fields§
§viewport: RectViewport in physical pixels where the callback should paint.
clip_rect: RectClip rect in physical pixels (intersection of callback rect and current clip).
pixels_per_point: f32Pixels per point (DPI scale).
screen_size_px: [u32; 2]Screen size in physical pixels.
Trait Implementations§
Source§impl Clone for PaintCallbackInfo
impl Clone for PaintCallbackInfo
Source§fn clone(&self) -> PaintCallbackInfo
fn clone(&self) -> PaintCallbackInfo
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 PaintCallbackInfo
Auto Trait Implementations§
impl Freeze for PaintCallbackInfo
impl RefUnwindSafe for PaintCallbackInfo
impl Send for PaintCallbackInfo
impl Sync for PaintCallbackInfo
impl Unpin for PaintCallbackInfo
impl UnsafeUnpin for PaintCallbackInfo
impl UnwindSafe for PaintCallbackInfo
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