Struct rg3d_ui::formatted_text::FormattedTextBuilder[][src]

pub struct FormattedTextBuilder { /* fields omitted */ }

Implementations

impl FormattedTextBuilder[src]

pub fn new() -> FormattedTextBuilder[src]

Creates new formatted text builder with default parameters.

pub fn with_font(self, font: SharedFont) -> Self[src]

pub fn with_vertical_alignment(
    self,
    vertical_alignment: VerticalAlignment
) -> Self
[src]

pub fn with_wrap(self, wrap: bool) -> Self[src]

pub fn with_horizontal_alignment(
    self,
    horizontal_alignment: HorizontalAlignment
) -> Self
[src]

pub fn with_text(self, text: String) -> Self[src]

pub fn with_constraint(self, constraint: Vector2<f32>) -> Self[src]

pub fn with_brush(self, brush: Brush) -> Self[src]

pub fn build(self) -> FormattedText[src]

Trait Implementations

impl Default for FormattedTextBuilder[src]

Auto Trait Implementations

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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<V, T> VZip<V> for T where
    V: MultiLane<T>,