pub struct Text<'a, Font> {
pub content: &'a str,
pub bounds: Size,
pub size: Pixels,
pub line_height: LineHeight,
pub font: Font,
pub horizontal_alignment: Horizontal,
pub vertical_alignment: Vertical,
pub shaping: Shaping,
}
Expand description
A paragraph.
Fields§
§content: &'a str
The content of the paragraph.
bounds: Size
The bounds of the paragraph.
size: Pixels
The size of the Text
in logical pixels.
line_height: LineHeight
The line height of the Text
.
font: Font
The font of the Text
.
horizontal_alignment: Horizontal
The horizontal alignment of the Text
.
vertical_alignment: Vertical
The vertical alignment of the Text
.
shaping: Shaping
Trait Implementations§
impl<'a, Font: Copy> Copy for Text<'a, Font>
Auto Trait Implementations§
impl<'a, Font> RefUnwindSafe for Text<'a, Font>where
Font: RefUnwindSafe,
impl<'a, Font> Send for Text<'a, Font>where
Font: Send,
impl<'a, Font> Sync for Text<'a, Font>where
Font: Sync,
impl<'a, Font> Unpin for Text<'a, Font>where
Font: Unpin,
impl<'a, Font> UnwindSafe for Text<'a, Font>where
Font: UnwindSafe,
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