[−][src]Struct embedded_graphics::style::Styled
Styled.
Fields
primitive: T
Primitive.
style: S
Style.
Methods
impl<T, S> Styled<T, S>
[src]
Trait Implementations
impl<T: Clone, S: Clone> Clone for Styled<T, S>
[src]
fn clone(&self) -> Styled<T, S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug, S: Debug> Debug for Styled<T, S>
[src]
impl<'_, C, F> Dimensions for Styled<Text<'_>, TextStyle<C, F>> where
C: PixelColor,
F: Font,
[src]
C: PixelColor,
F: Font,
fn top_left(&self) -> Point
[src]
fn bottom_right(&self) -> Point
[src]
fn size(&self) -> Size
[src]
Returns the size of the bounding box of a styled text.
Currently does not handle newlines (but neither does the rasteriser).
It will return Size::zero()
if the string to render is empty.
impl<T, S> Dimensions for Styled<T, S> where
T: Dimensions,
[src]
T: Dimensions,
impl<'_, '_, C, F> Drawable<C> for &'_ Styled<Text<'_>, TextStyle<C, F>> where
C: PixelColor,
F: Font + Copy,
[src]
C: PixelColor,
F: Font + Copy,
fn draw<T: DrawTarget<C>>(self, display: &mut T)
[src]
impl<'a, '_, C: 'a> Drawable<C> for &'_ Styled<Circle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
fn draw<T: DrawTarget<C>>(self, display: &mut T)
[src]
impl<'a, '_, C: 'a> Drawable<C> for &'_ Styled<Line, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
fn draw<T: DrawTarget<C>>(self, display: &mut T)
[src]
impl<'_, C> Drawable<C> for &'_ Styled<Rectangle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
fn draw<T: DrawTarget<C>>(self, display: &mut T)
[src]
impl<'a, '_, C: 'a> Drawable<C> for &'_ Styled<Triangle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
fn draw<T: DrawTarget<C>>(self, display: &mut T)
[src]
impl<'a, '_, C, F> IntoIterator for &'_ Styled<Text<'a>, TextStyle<C, F>> where
C: PixelColor,
F: Font + Copy,
[src]
C: PixelColor,
F: Font + Copy,
type Item = Pixel<C>
The type of the elements being iterated over.
type IntoIter = StyledTextIterator<'a, C, F>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, C> IntoIterator for &'a Styled<Circle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
type Item = Pixel<C>
The type of the elements being iterated over.
type IntoIter = StyledCircleIterator<C>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, C> IntoIterator for &'a Styled<Line, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
type Item = Pixel<C>
The type of the elements being iterated over.
type IntoIter = StyledLineIterator<C>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'_, C> IntoIterator for &'_ Styled<Rectangle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
type Item = Pixel<C>
The type of the elements being iterated over.
type IntoIter = StyledRectangleIterator<C>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'_, C> IntoIterator for &'_ Styled<Triangle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
type Item = Pixel<C>
The type of the elements being iterated over.
type IntoIter = StyledTriangleIterator<C>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<T: PartialEq, S: PartialEq> PartialEq<Styled<T, S>> for Styled<T, S>
[src]
impl<T, S> StructuralPartialEq for Styled<T, S>
[src]
impl<T, S> Transform for Styled<T, S> where
T: Transform,
S: Clone,
[src]
T: Transform,
S: Clone,
Auto Trait Implementations
impl<T, S> Send for Styled<T, S> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<T, S> Sync for Styled<T, S> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<T, S> Unpin for Styled<T, S> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
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> 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>,
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>,