pub enum Text {
Paragraph {
paragraph: Weak,
position: Point,
color: Color,
clip_bounds: Rectangle,
transformation: Transformation,
},
Editor {
editor: Weak,
position: Point,
color: Color,
clip_bounds: Rectangle,
transformation: Transformation,
},
Cached {
content: String,
bounds: Rectangle,
color: Color,
size: Pixels,
line_height: Pixels,
font: Font,
align_x: Alignment,
align_y: Vertical,
shaping: Shaping,
wrapping: Wrapping,
ellipsis: Ellipsis,
clip_bounds: Rectangle,
},
Raw {
raw: Raw,
transformation: Transformation,
},
}Expand description
A text primitive.
Variants§
Paragraph
A paragraph.
Fields
§
transformation: TransformationEditor
An editor.
Fields
§
transformation: TransformationCached
Some cached text.
Fields
Raw
Some raw text.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin 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