[][src]Struct linfb::shape::Caption

pub struct Caption {
    pub text: String,
    pub size: u32,
    pub font: Font<'static>,
    pub color: Color,
    pub max_width: Option<usize>,
    pub alignment: Alignment,
}

Shape containing single- or multi-line text. Text will be soft wrapped if max_width is set.

Fields

text: String

Caption text

size: u32

Font size in px

font: Font<'static>

Font object, built with FontBuilder

color: Color

Font color. Default is black

max_width: Option<usize>

Soft wrap width. If not set, soft wrapping will be disabled

alignment: Alignment

Text alignment

Methods

impl Caption[src]

pub fn builder() -> CaptionBuilder[src]

Create a default CaptionBuilder

Trait Implementations

impl Shape for Caption[src]

impl Debug for Caption[src]

Auto Trait Implementations

impl Send for Caption

impl Sync for Caption

impl Unpin for Caption

impl UnwindSafe for Caption

impl RefUnwindSafe for Caption

Blanket Implementations

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

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

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.

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

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

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

impl<T> SetParameter for T

impl<T> Downcast for T where
    T: Any
[src]