pub struct Text<Content = String, Font = Font> {
pub content: Content,
pub bounds: Size,
pub size: Pixels,
pub line_height: LineHeight,
pub font: Font,
pub align_x: Alignment,
pub align_y: Vertical,
pub shaping: Shaping,
pub wrapping: Wrapping,
}
Expand description
A paragraph.
Fields§
§content: Content
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
.
align_x: Alignment
The horizontal alignment of the Text
.
align_y: Vertical
The vertical alignment of the Text
.
shaping: Shaping
§wrapping: Wrapping
Implementations§
Trait Implementations§
impl<Content: Copy, Font: Copy> Copy for Text<Content, Font>
Auto Trait Implementations§
impl<Content, Font> Freeze for Text<Content, Font>
impl<Content, Font> RefUnwindSafe for Text<Content, Font>where
Content: RefUnwindSafe,
Font: RefUnwindSafe,
impl<Content, Font> Send for Text<Content, Font>
impl<Content, Font> Sync for Text<Content, Font>
impl<Content, Font> Unpin for Text<Content, Font>
impl<Content, Font> UnwindSafe for Text<Content, Font>where
Content: UnwindSafe,
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