[][src]Struct embedded_text::style::TextBoxStyle

pub struct TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
{ pub text_style: TextStyle<C, F>, pub alignment: A, }

Styling options of a TextBox.

Fields

text_style: TextStyle<C, F>

Style properties for text.

alignment: A

Horizontal alignment

Implementations

impl<C, F, A> TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

pub fn new(font: F, text_color: C, alignment: A) -> Self[src]

Creates a textbox style with transparent background.

Trait Implementations

impl<C: Clone, F: Clone, A: Clone> Clone for TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

impl<C: Copy, F: Copy, A: Copy> Copy for TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

impl<C: Debug, F: Debug, A: Debug> Debug for TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

impl<C: Default, F: Default, A: Default> Default for TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

impl<C: Eq, F: Eq, A: Eq> Eq for TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

impl<C: Hash, F: Hash, A: Hash> Hash for TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

impl<C: Ord, F: Ord, A: Ord> Ord for TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

impl<C: PartialEq, F: PartialEq, A: PartialEq> PartialEq<TextBoxStyle<C, F, A>> for TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

impl<C: PartialOrd, F: PartialOrd, A: PartialOrd> PartialOrd<TextBoxStyle<C, F, A>> for TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

impl<C, F, A> StructuralEq for TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

impl<C, F, A> StructuralPartialEq for TextBoxStyle<C, F, A> where
    C: PixelColor,
    F: Font + Copy,
    A: TextAlignment
[src]

Auto Trait Implementations

impl<C, F, A> RefUnwindSafe for TextBoxStyle<C, F, A> where
    A: RefUnwindSafe,
    C: RefUnwindSafe,
    F: RefUnwindSafe

impl<C, F, A> Send for TextBoxStyle<C, F, A> where
    A: Send,
    C: Send,
    F: Send

impl<C, F, A> Sync for TextBoxStyle<C, F, A> where
    A: Sync,
    C: Sync,
    F: Sync

impl<C, F, A> Unpin for TextBoxStyle<C, F, A> where
    A: Unpin,
    C: Unpin,
    F: Unpin

impl<C, F, A> UnwindSafe for TextBoxStyle<C, F, A> where
    A: UnwindSafe,
    C: UnwindSafe,
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.