pub struct TextChunk {
pub x: Option<f32>,
pub y: Option<f32>,
pub anchor: TextAnchor,
pub spans: Vec<TextSpan>,
pub text_flow: TextFlow,
pub text: String,
}
Expand description
A text chunk.
Text alignment and BIDI reordering can only be done inside a text chunk.
Fields§
§x: Option<f32>
An absolute X axis offset.
y: Option<f32>
An absolute Y axis offset.
anchor: TextAnchor
A text anchor.
spans: Vec<TextSpan>
A list of text chunk style spans.
text_flow: TextFlow
A text chunk flow.
text: String
A text chunk actual text.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TextChunk
impl !Send for TextChunk
impl !Sync for TextChunk
impl Unpin for TextChunk
impl !UnwindSafe for TextChunk
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