Struct embedded_text::style::TextBoxStyleBuilder [−][src]
pub struct TextBoxStyleBuilder { /* fields omitted */ }Expand description
TextBoxStyle builder object.
Implementations
Sets the line height.
The line height is defined as the vertical distance between the baseline of two adjacent lines of text.
Example
let style = TextBoxStyleBuilder::new() .line_height(LineHeight::Pixels(12)) .build();
Sets the paragraph spacing.
Example
let style = TextBoxStyleBuilder::new() .paragraph_spacing(0) .build();
Sets the horizontal text alignment.
pub const fn vertical_alignment(
self,
vertical_alignment: VerticalAlignment
) -> TextBoxStyleBuilder
pub const fn vertical_alignment(
self,
vertical_alignment: VerticalAlignment
) -> TextBoxStyleBuilderSets the vertical text alignment.
Sets the height mode.
Builds the TextBoxStyle.
Trait Implementations
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for TextBoxStyleBuilderimpl Send for TextBoxStyleBuilderimpl Sync for TextBoxStyleBuilderimpl Unpin for TextBoxStyleBuilderimpl UnwindSafe for TextBoxStyleBuilderBlanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
type Output = T
type Output = TShould always be Self
Casts the value.
Casts the value.
Casts the value.