pub struct SpanPatternRgba<Src> { /* private fields */ }Expand description
RGBA span pattern generator — fills spans from a tiled source image.
Port of C++ span_pattern_rgba<Source>.
Reads pixels from the attached ImageSource, applying x/y offsets
for pattern positioning.
Implementations§
Source§impl<Src: ImageSource> SpanPatternRgba<Src>
impl<Src: ImageSource> SpanPatternRgba<Src>
pub fn new(src: Src, offset_x: u32, offset_y: u32) -> Self
pub fn source(&self) -> &Src
pub fn source_mut(&mut self) -> &mut Src
pub fn offset_x(&self) -> u32
pub fn set_offset_x(&mut self, v: u32)
pub fn offset_y(&self) -> u32
pub fn set_offset_y(&mut self, v: u32)
Trait Implementations§
Auto Trait Implementations§
impl<Src> Freeze for SpanPatternRgba<Src>where
Src: Freeze,
impl<Src> RefUnwindSafe for SpanPatternRgba<Src>where
Src: RefUnwindSafe,
impl<Src> Send for SpanPatternRgba<Src>where
Src: Send,
impl<Src> Sync for SpanPatternRgba<Src>where
Src: Sync,
impl<Src> Unpin for SpanPatternRgba<Src>where
Src: Unpin,
impl<Src> UnwindSafe for SpanPatternRgba<Src>where
Src: UnwindSafe,
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