pub struct Text<'a> {
pub text: &'a str,
pub color: Color,
pub font_id: u16,
pub font_size: u16,
pub letter_spacing: u16,
pub line_height: u16,
}Expand description
Represents a text element with styling attributes.
Fields§
§text: &'a strThe text content.
color: ColorThe color of the text.
font_id: u16The ID of the font used.
font_size: u16The font size.
letter_spacing: u16The spacing between letters.
line_height: u16The line height.
Trait Implementations§
Source§impl From<Clay_TextRenderData> for Text<'_>
impl From<Clay_TextRenderData> for Text<'_>
Source§fn from(value: Clay_TextRenderData) -> Self
fn from(value: Clay_TextRenderData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Text<'a>
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§
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