pub struct ImmediateRenderer;Expand description
Renders a visual tree directly to a drawing context, without the compositor. Used for rendering visuals to bitmaps and visual brushes.
Implementations§
Source§impl ImmediateRenderer
impl ImmediateRenderer
Sourcepub fn render(context: &mut DrawingContext<'_>, visual: &Ref<Visual>)
pub fn render(context: &mut DrawingContext<'_>, visual: &Ref<Visual>)
Renders a visual to a drawing context.
Sourcepub fn render_clipped(
context: &mut DrawingContext<'_>,
visual: &Ref<Visual>,
clip_rect: Rect,
)
pub fn render_clipped( context: &mut DrawingContext<'_>, visual: &Ref<Visual>, clip_rect: Rect, )
Renders the part of a visual inside clip_rect to a drawing context.
Auto Trait Implementations§
impl Freeze for ImmediateRenderer
impl RefUnwindSafe for ImmediateRenderer
impl Send for ImmediateRenderer
impl Sync for ImmediateRenderer
impl Unpin for ImmediateRenderer
impl UnsafeUnpin for ImmediateRenderer
impl UnwindSafe for ImmediateRenderer
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more