[−][src]Struct linfb::shape::Caption
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]
fn render(&self) -> Vec<Vec<Option<Color>>>
[src]
fn at(self, x: usize, y: usize) -> PositionedShape where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
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]
U: From<T>,
impl<T> From<T> for 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>,
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,