pub struct Text {
pub color: Color,
pub font_size: FontSize,
pub round: bool,
}
Expand description
Renders text
Fields§
§color: Color
The color
font_size: FontSize
The font size
round: bool
Whether or not the text’s position should be rounded (to a signed distance field).
Implementations§
source§impl 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 Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)