pub struct SingleDirtyRectTracker { /* private fields */ }Expand description
Tracks the dirty area as a single bounding rectangle.
Implementations§
Trait Implementations§
Source§impl Default for SingleDirtyRectTracker
impl Default for SingleDirtyRectTracker
Source§impl IDirtyRectTracker for SingleDirtyRectTracker
impl IDirtyRectTracker for SingleDirtyRectTracker
Source§fn finalize_frame(&self, bounds: LtrbRect)
fn finalize_frame(&self, bounds: LtrbRect)
Post-processes the dirty rect area (e. g. to account for anti-aliasing)
Source§fn begin_draw(&self, ctx: &mut dyn IDrawingContextImpl)
fn begin_draw(&self, ctx: &mut dyn IDrawingContextImpl)
Pushes the dirty area as a clip onto
ctx. Read moreSource§fn end_draw(&self, ctx: &mut dyn IDrawingContextImpl)
fn end_draw(&self, ctx: &mut dyn IDrawingContextImpl)
Pops the clip pushed by
begin_draw.fn is_empty(&self) -> bool
fn intersects(&self, rect: LtrbRect) -> bool
fn initialize(&self, _bounds: LtrbRect)
Source§fn visualize(&self, context: &mut dyn IDrawingContextImpl)
fn visualize(&self, context: &mut dyn IDrawingContextImpl)
Draws the dirty area in a random color (debug overlay).
Source§fn is_single_dirty_rect_tracker(&self) -> bool
fn is_single_dirty_rect_tracker(&self) -> bool
Whether the tracker is a
SingleDirtyRectTracker (the is test of
the render pass, which needs no per-visual test with one).fn combined_rect(&self) -> LtrbRect
Auto Trait Implementations§
impl !Freeze for SingleDirtyRectTracker
impl !RefUnwindSafe for SingleDirtyRectTracker
impl !Sync for SingleDirtyRectTracker
impl Send for SingleDirtyRectTracker
impl Unpin for SingleDirtyRectTracker
impl UnsafeUnpin for SingleDirtyRectTracker
impl UnwindSafe for SingleDirtyRectTracker
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