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: TextStyleTODO(JP): document.
wrapping: WrappingTODO(JP): document.
font_scale: f32TODO(JP): document.
draw_depth: f32TODO(JP): document.
color: Vec4TODO(JP): document.
position_anchoring: Vec2By default, the position describes the top-left corner of the string
padding: PaddingSee Padding.
Implementations
TODO(JP): Replace these with TextInsProps::default() when https://github.com/rust-lang/rust/issues/67792 gets done