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
impl<'a, T: Debug> Debug for Translated<'a, T> where
T: DrawTarget, [src]
impl<'a, T: Debug> Debug for Translated<'a, T> where
T: DrawTarget, [src]impl<T> Dimensions for Translated<'_, T> where
T: DrawTarget, [src]
impl<T> Dimensions for Translated<'_, T> where
T: DrawTarget, [src]fn bounding_box(&self) -> Rectangle[src]
fn bounding_box(&self) -> Rectangle[src]Returns the bounding box.
impl<T> DrawTarget for Translated<'_, T> where
T: DrawTarget, [src]
impl<T> DrawTarget for Translated<'_, T> where
T: DrawTarget, [src]fn draw_iter<I>(&mut self, pixels: I) -> Result<(), Self::Error> where
I: IntoIterator<Item = Pixel<Self::Color>>, [src]
fn draw_iter<I>(&mut self, pixels: I) -> Result<(), Self::Error> where
I: IntoIterator<Item = Pixel<Self::Color>>, [src]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
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Translated<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for Translated<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for Translated<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for Translated<'a, T>
impl<'a, T> !UnwindSafe for Translated<'a, T>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> DrawTargetExt for T where
T: DrawTarget, [src]
impl<T> DrawTargetExt for T where
T: DrawTarget, [src]pub fn translated(&mut Self, Point) -> Translated<'_, T>[src]
pub fn translated(&mut Self, Point) -> Translated<'_, T>[src]Creates a translated draw target based on this draw target. Read more
pub fn cropped(&mut Self, &Rectangle) -> Cropped<'_, T>[src]
pub fn cropped(&mut Self, &Rectangle) -> Cropped<'_, T>[src]Creates a cropped draw target based on this draw target. Read more
pub fn clipped(&mut Self, &Rectangle) -> Clipped<'_, T>[src]
pub fn clipped(&mut Self, &Rectangle) -> Clipped<'_, T>[src]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
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>, [src]
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>, [src]pub fn lossless_try_into(self) -> Option<Dst>[src]
pub fn lossless_try_into(self) -> Option<Dst>[src]Performs the conversion.
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>, [src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>, [src]pub fn lossy_into(self) -> Dst[src]
pub fn lossy_into(self) -> Dst[src]Performs the conversion.
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, pub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>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.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,