pub struct Text<'a> {
pub text: &'a str,
pub px: f32,
pub font_index: usize,
pub color: RGBA8,
pub depth: f32,
}
Expand description
Configuration settings for text.
Fields
text: &'a str
The text to layout.
px: f32
The scale of the text in pixel units. The units of the scale are pixels per Em unit.
font_index: usize
The font to layout the text in.
color: RGBA8
The text color,
depth: f32
The depth value used for rendering the text.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> Send for Text<'a>
impl<'a> Sync for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnwindSafe for Text<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more