[−][src]Struct embedded_graphics_core::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,
pub 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
pub 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>>,
pub 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>,
pub fn fill_solid(
&mut self,
area: &Rectangle,
color: Self::Color
) -> Result<(), Self::Error>
[src]
&mut self,
area: &Rectangle,
color: Self::Color
) -> Result<(), Self::Error>
pub 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DrawTargetExt for T where
T: DrawTarget,
[src]
T: DrawTarget,
pub fn translated(&mut Self, Point) -> Translated<'_, T>
[src]
pub fn cropped(&mut Self, &Rectangle) -> Cropped<'_, T>
[src]
pub fn clipped(&mut Self, &Rectangle) -> Clipped<'_, T>
[src]
pub fn color_converted<C>(&mut Self) -> ColorConverted<'_, T, C> where
C: PixelColor + Into<<T as DrawTarget>::Color>,
[src]
C: PixelColor + Into<<T as DrawTarget>::Color>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub 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.
pub 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.
pub 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>,