Struct usvg::tree::TextChunk
[−]
[src]
pub struct TextChunk { pub x: f64, pub y: f64, pub anchor: TextAnchor, }
A text chunk.
Contains position and anchor of the next text chunk.
Doesn't represented in the SVG directly. Usually, it's a first tspan
or text node
and any tspan
that defines either x
or y
coordinate and/or have text-anchor
.
Fields
x: f64
An absolute position on the X-axis.
y: f64
An absolute position on the Y-axis.
anchor: TextAnchor
A text anchor/align.
Trait Implementations
impl Clone for TextChunk
[src]
fn clone(&self) -> TextChunk
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more