Expand description
Renders text
Fields
color: ColorThe color
font_size: FontSizeThe font size
round: boolWhether or not the text’s position should be rounded (to a signed distance field).
Implementations
sourceimpl Text
impl Text
sourcepub fn round(self) -> Text
pub fn round(self) -> Text
A builder method indicating that the Text’s position should be rounded upon drawing.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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