pub struct SubSink<'a> { /* private fields */ }Expand description
Offset + bounded wrapper around another EffectSink.
All ops are translated by offset before being forwarded to the
inner sink, and target_width /
target_height report the clipped
sub-region. Used by widget-tree hosts (e.g.
rlvgl_widgets::motion::crawl::CrawlWindow) to place an effect at a
specific screen location without rewriting every op coordinate
inside the effect. No byte-level clipping — the effect is expected
to respect the reported target dimensions; the wrapper doesn’t
intersect rectangles with the sub-region.
Implementations§
Trait Implementations§
Source§impl<'a> EffectSink for SubSink<'a>
impl<'a> EffectSink for SubSink<'a>
Source§fn target_width(&self) -> u32
fn target_width(&self) -> u32
Destination width in pixels as the sink sees it. Effects use
this to size per-frame work (number of rows to blend, clipping).
Source§fn target_height(&self) -> u32
fn target_height(&self) -> u32
Destination height in pixels as the sink sees it.
Source§fn target_format(&self) -> PixelFmt
fn target_format(&self) -> PixelFmt
Destination pixel format. Effects that only support a subset
(e.g. ARGB8888) can bail early without emitting ops.
Source§fn fill(&mut self, rect: Rect, color: u32)
fn fill(&mut self, rect: Rect, color: u32)
Fill
rect on the destination with a solid ARGB8888 colour.Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SubSink<'a>
impl<'a> !Send for SubSink<'a>
impl<'a> !Sync for SubSink<'a>
impl<'a> !UnwindSafe for SubSink<'a>
impl<'a> Freeze for SubSink<'a>
impl<'a> Unpin for SubSink<'a>
impl<'a> UnsafeUnpin for SubSink<'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