[−][src]Struct embedded_graphics::draw_target::Clipped
Clipped draw target.
Created by calling clipped
on any DrawTarget
.
See the clipped
method documentation for more.
Trait Implementations
impl<'a, T> Debug for Clipped<'a, T> where
T: Debug + DrawTarget,
[src]
T: Debug + DrawTarget,
impl<'_, T> Dimensions for Clipped<'_, T> where
T: DrawTarget,
[src]
T: DrawTarget,
pub fn bounding_box(&self) -> Rectangle
[src]
impl<'_, T> DrawTarget for Clipped<'_, T> where
T: DrawTarget,
[src]
T: DrawTarget,
type Color = <T as DrawTarget>::Color
The pixel color type the targetted display supports.
type Error = <T as DrawTarget>::Error
Error type to return when a drawing operation fails. Read more
pub fn draw_iter<I>(
&mut self,
pixels: I
) -> Result<(), <Clipped<'_, T> as DrawTarget>::Error> where
I: IntoIterator<Item = Pixel<<Clipped<'_, T> as DrawTarget>::Color>>,
[src]
&mut self,
pixels: I
) -> Result<(), <Clipped<'_, T> as DrawTarget>::Error> where
I: IntoIterator<Item = Pixel<<Clipped<'_, T> as DrawTarget>::Color>>,
pub fn fill_contiguous<I>(
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), <Clipped<'_, T> as DrawTarget>::Error> where
I: IntoIterator<Item = <Clipped<'_, T> as DrawTarget>::Color>,
[src]
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), <Clipped<'_, T> as DrawTarget>::Error> where
I: IntoIterator<Item = <Clipped<'_, T> as DrawTarget>::Color>,
pub fn fill_solid(
&mut self,
area: &Rectangle,
color: <Clipped<'_, T> as DrawTarget>::Color
) -> Result<(), <Clipped<'_, T> as DrawTarget>::Error>
[src]
&mut self,
area: &Rectangle,
color: <Clipped<'_, T> as DrawTarget>::Color
) -> Result<(), <Clipped<'_, T> as DrawTarget>::Error>
pub fn clear(&mut self, color: Self::Color) -> Result<(), Self::Error>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Clipped<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for Clipped<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for Clipped<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for Clipped<'a, T>
impl<'a, T> !UnwindSafe for Clipped<'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, offset: Point) -> Translated<'_, T>
[src]
pub fn cropped(&mut self, area: &Rectangle) -> Cropped<'_, T>
[src]
pub fn clipped(&mut self, area: &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<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[src]
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,