pub struct TextInsProps {
    pub text_style: TextStyle,
    pub wrapping: Wrapping,
    pub font_scale: f32,
    pub draw_depth: f32,
    pub color: Vec4,
    pub position_anchoring: Vec2,
    pub padding: Padding,
}
Expand description

Some props for how to render the text.

Fields

text_style: TextStyle

TODO(JP): document.

wrapping: Wrapping

TODO(JP): document.

font_scale: f32

TODO(JP): document.

draw_depth: f32

TODO(JP): document.

color: Vec4

TODO(JP): document.

position_anchoring: Vec2

By default, the position describes the top-left corner of the string

padding: Padding

See Padding.

Implementations

TODO(JP): Replace these with TextInsProps::default() when https://github.com/rust-lang/rust/issues/67792 gets done

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.