#[non_exhaustive]pub struct PaintCx<'a> {
pub scene: &'a mut Scene,
pub text: &'a mut TextSystem,
pub scale: f32,
}Expand description
What Paint::Rich draws with.
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.scene: &'a mut SceneThe display list.
text: &'a mut TextSystemShapes text that depends on the frame, which a build does not know yet.
scale: f32Physical pixels per logical pixel, to make pictures that stay sharp.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PaintCx<'a>
impl<'a> !UnwindSafe for PaintCx<'a>
impl<'a> Freeze for PaintCx<'a>
impl<'a> Send for PaintCx<'a>
impl<'a> Sync for PaintCx<'a>
impl<'a> Unpin for PaintCx<'a>
impl<'a> UnsafeUnpin for PaintCx<'a>
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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