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
) -> TextBoxStyleBuilder
Sets the vertical text alignment.
Sets the height mode.
Render leading spaces.
Render trailing spaces.
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 TextBoxStyleBuilder
impl Send for TextBoxStyleBuilder
impl Sync for TextBoxStyleBuilder
impl Unpin for TextBoxStyleBuilder
impl UnwindSafe for TextBoxStyleBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
type Output = T
type Output = T
Should always be Self
Casts the value.
Casts the value.
Casts the value.