pub struct Text {
pub color: [f32; 4],
pub font_size: u32,
pub round: bool,
}
Expand description
Whether or not the text’s position should be rounded (to a signed distance field).
Creates a new text with black color
Creates a new colored text
A builder method indicating that the Text’s position should be rounded upon drawing.
Draws text with a character cache
Performs copy-assignment from source
. Read more
sourceimpl<T> Any for T where
T: 'static + ?Sized,
sourceimpl<T> Borrow<T> for T where
T: ?Sized,
Immutably borrows from an owned value. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
Mutably borrows from an owned value. Read more
sourceimpl<T> From<T> for T
Returns the argument unchanged.
sourceimpl<T, U> Into<U> for T where
U: From<T>,
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
The type returned in the event of a conversion error.
sourceimpl<T, U> TryInto<U> for T where
U: TryFrom<T>,
The type returned in the event of a conversion error.