[−][src]Struct embedded_graphics::draw_target::Cropped
Cropped draw target.
Created by calling cropped
on any DrawTarget
.
See the cropped
method documentation for more.
Trait Implementations
impl<'a, T: Debug> Debug for Cropped<'a, T> where
T: DrawTarget,
[src]
T: DrawTarget,
impl<T, '_> Dimensions for Cropped<'_, T> where
T: DrawTarget,
[src]
T: DrawTarget,
fn bounding_box(&self) -> Rectangle
[src]
impl<T, '_> DrawTarget for Cropped<'_, T> where
T: DrawTarget,
[src]
T: DrawTarget,
type Color = T::Color
The pixel color type the targetted display supports.
type Error = T::Error
Error type to return when a drawing operation fails. Read more
fn draw_iter<I>(&mut self, pixels: I) -> Result<(), Self::Error> where
I: IntoIterator<Item = Pixel<Self::Color>>,
[src]
I: IntoIterator<Item = Pixel<Self::Color>>,
fn fill_contiguous<I>(
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), Self::Error> where
I: IntoIterator<Item = Self::Color>,
[src]
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), Self::Error> where
I: IntoIterator<Item = Self::Color>,
fn fill_solid(
&mut self,
area: &Rectangle,
color: Self::Color
) -> Result<(), Self::Error>
[src]
&mut self,
area: &Rectangle,
color: Self::Color
) -> Result<(), Self::Error>
fn clear(&mut self, color: Self::Color) -> Result<(), Self::Error>
[src]
Auto Trait Implementations
impl<'a, T> Send for Cropped<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for Cropped<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for Cropped<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Dimensions for T where
T: OriginDimensions,
[src]
T: OriginDimensions,
fn bounding_box(&Self) -> Rectangle
[src]
impl<T> DrawTargetExt for T where
T: DrawTarget,
[src]
T: DrawTarget,
fn translated(&mut Self, Point) -> Translated<'_, T>
[src]
fn cropped(&mut Self, &Rectangle) -> Cropped<'_, T>
[src]
fn clipped(&mut Self, &Rectangle) -> Clipped<'_, T>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
fn lossy_into(self) -> Dst
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,