Struct zaplib::TextInsProps
source · [−]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