Struct embedded_graphics::draw_target::Translated [−][src]
pub struct Translated<'a, T> where
T: DrawTarget, { /* fields omitted */ }Expand description
Translated draw target.
Created by calling translated on any DrawTarget.
See the translated method documentation for more.
Trait Implementations
Returns the bounding box.
Draw individual pixels to the display without a defined order. Read more
fn fill_contiguous<I>(
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), Self::Error> where
I: IntoIterator<Item = Self::Color>, [src]
fn fill_contiguous<I>(
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), Self::Error> where
I: IntoIterator<Item = Self::Color>, [src]Fill a given area with an iterator providing a contiguous stream of pixel colors. Read more
Fill a given area with a solid color. Read more
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Translated<'a, T> where
T: RefUnwindSafe, impl<'a, T> Send for Translated<'a, T> where
T: Send, impl<'a, T> Sync for Translated<'a, T> where
T: Sync, impl<'a, T> Unpin for Translated<'a, T>impl<'a, T> !UnwindSafe for Translated<'a, T>Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Creates a translated draw target based on this draw target. Read more
Creates a cropped draw target based on this draw target. Read more
Creates a clipped draw target based on this draw target. Read more
pub fn color_converted<C>(&mut Self) -> ColorConverted<'_, T, C> where
C: PixelColor + Into<<T as DrawTarget>::Color>, [src]
pub fn color_converted<C>(&mut Self) -> ColorConverted<'_, T, C> where
C: PixelColor + Into<<T as DrawTarget>::Color>, [src]Creates a color conversion draw target. Read more
Performs the conversion.
Performs the conversion.
Casts the value.
type Output = T
type Output = TShould always be Self
Casts the value.
The inverse inclusion map: attempts to construct self from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> boolChecks if self is actually part of its subset T (and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SSUse with care! Same as self.to_subset but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SPThe inclusion map: converts self to the equivalent element of its superset.
Casts the value.
pub fn vzip(self) -> VCasts the value.