pub struct RendererBuild<'a> {
pub fonts: &'a FontConfig,
pub transparent: bool,
}Expand description
What a renderer is built from, beyond the surface it draws on.
Fields§
§fonts: &'a FontConfigThe faces the app’s text is shaped with — the same set the layout-time measurer was configured with, since measure and draw have to agree on what a string is as wide as.
transparent: boolWhether the app asked for a transparent surface. A renderer is built for one or the other.
Auto Trait Implementations§
impl<'a> Freeze for RendererBuild<'a>
impl<'a> RefUnwindSafe for RendererBuild<'a>
impl<'a> Send for RendererBuild<'a>
impl<'a> Sync for RendererBuild<'a>
impl<'a> Unpin for RendererBuild<'a>
impl<'a> UnsafeUnpin for RendererBuild<'a>
impl<'a> UnwindSafe for RendererBuild<'a>
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