[−][src]Struct embedded_text::style::TextBoxStyle
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]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
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]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
fn clone(&self) -> TextBoxStyle<C, F, A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Copy, F: Copy, A: Copy> Copy for TextBoxStyle<C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
[src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
impl<C: Debug, F: Debug, A: Debug> Debug for TextBoxStyle<C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
[src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
impl<C: Default, F: Default, A: Default> Default for TextBoxStyle<C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
[src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
fn default() -> TextBoxStyle<C, F, A>
[src]
impl<C: Eq, F: Eq, A: Eq> Eq for TextBoxStyle<C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
[src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
impl<C: Hash, F: Hash, A: Hash> Hash for TextBoxStyle<C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
[src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
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<C: Ord, F: Ord, A: Ord> Ord for TextBoxStyle<C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
[src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
fn cmp(&self, other: &TextBoxStyle<C, F, A>) -> 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<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]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
fn eq(&self, other: &TextBoxStyle<C, F, A>) -> bool
[src]
fn ne(&self, other: &TextBoxStyle<C, F, A>) -> bool
[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]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
fn partial_cmp(&self, other: &TextBoxStyle<C, F, A>) -> Option<Ordering>
[src]
fn lt(&self, other: &TextBoxStyle<C, F, A>) -> bool
[src]
fn le(&self, other: &TextBoxStyle<C, F, A>) -> bool
[src]
fn gt(&self, other: &TextBoxStyle<C, F, A>) -> bool
[src]
fn ge(&self, other: &TextBoxStyle<C, F, A>) -> bool
[src]
impl<C, F, A> StructuralEq for TextBoxStyle<C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
[src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
impl<C, F, A> StructuralPartialEq for TextBoxStyle<C, F, A> where
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
[src]
C: PixelColor,
F: Font + Copy,
A: TextAlignment,
Auto Trait Implementations
impl<C, F, A> RefUnwindSafe for TextBoxStyle<C, F, A> where
A: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
A: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<C, F, A> Send for TextBoxStyle<C, F, A> where
A: Send,
C: Send,
F: Send,
A: Send,
C: Send,
F: Send,
impl<C, F, A> Sync for TextBoxStyle<C, F, A> where
A: Sync,
C: Sync,
F: Sync,
A: Sync,
C: Sync,
F: Sync,
impl<C, F, A> Unpin for TextBoxStyle<C, F, A> where
A: Unpin,
C: Unpin,
F: Unpin,
A: Unpin,
C: Unpin,
F: Unpin,
impl<C, F, A> UnwindSafe for TextBoxStyle<C, F, A> where
A: UnwindSafe,
C: UnwindSafe,
F: UnwindSafe,
A: UnwindSafe,
C: UnwindSafe,
F: UnwindSafe,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,