Struct flo_canvas::TextLayoutMetrics
source · pub struct TextLayoutMetrics {
pub inner_bounds: (Coord2, Coord2),
pub pos: Coord2,
}
Expand description
The layout metrics for a piece of text
Fields§
§inner_bounds: (Coord2, Coord2)
The bounding box of the text that was laid out - using the height of the font and the offsets of the glyphs
pos: Coord2
The point where the next glyph will be positioned
Trait Implementations§
source§impl Clone for TextLayoutMetrics
impl Clone for TextLayoutMetrics
source§fn clone(&self) -> TextLayoutMetrics
fn clone(&self) -> TextLayoutMetrics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<TextLayoutMetrics> for TextLayoutMetrics
impl PartialEq<TextLayoutMetrics> for TextLayoutMetrics
source§fn eq(&self, other: &TextLayoutMetrics) -> bool
fn eq(&self, other: &TextLayoutMetrics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.