[−][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: Copy, S: Copy> Copy for Styled<T, S>
[src]
impl<T: Debug, S: Debug> Debug for Styled<T, S>
[src]
impl<T: Default, S: Default> Default 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<D: DrawTarget<C>>(self, display: &mut D) -> Result<(), D::Error>
[src]
impl<'a, '_, C: 'a> Drawable<C> for &'_ Styled<Circle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
fn draw<D: DrawTarget<C>>(self, display: &mut D) -> Result<(), D::Error>
[src]
impl<'a, '_, C: 'a> Drawable<C> for &'_ Styled<Line, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
fn draw<D: DrawTarget<C>>(self, display: &mut D) -> Result<(), D::Error>
[src]
impl<'_, C> Drawable<C> for &'_ Styled<Rectangle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
fn draw<D: DrawTarget<C>>(self, display: &mut D) -> Result<(), D::Error>
[src]
impl<'a, '_, C: 'a> Drawable<C> for &'_ Styled<Triangle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
fn draw<D: DrawTarget<C>>(self, display: &mut D) -> Result<(), D::Error>
[src]
impl<T: Eq, S: Eq> Eq for Styled<T, S>
[src]
impl<T: Hash, S: Hash> Hash for Styled<T, S>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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: Ord, S: Ord> Ord for Styled<T, S>
[src]
fn cmp(&self, other: &Styled<T, S>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: PartialEq, S: PartialEq> PartialEq<Styled<T, S>> for Styled<T, S>
[src]
impl<T: PartialOrd, S: PartialOrd> PartialOrd<Styled<T, S>> for Styled<T, S>
[src]
fn partial_cmp(&self, other: &Styled<T, S>) -> Option<Ordering>
[src]
fn lt(&self, other: &Styled<T, S>) -> bool
[src]
fn le(&self, other: &Styled<T, S>) -> bool
[src]
fn gt(&self, other: &Styled<T, S>) -> bool
[src]
fn ge(&self, other: &Styled<T, S>) -> bool
[src]
impl<T, S> StructuralEq 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<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
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>,