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: Coord2The 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 duplicate 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 for TextLayoutMetrics
impl PartialEq for TextLayoutMetrics
impl Copy for TextLayoutMetrics
impl StructuralPartialEq for TextLayoutMetrics
Auto Trait Implementations§
impl Freeze for TextLayoutMetrics
impl RefUnwindSafe for TextLayoutMetrics
impl Send for TextLayoutMetrics
impl Sync for TextLayoutMetrics
impl Unpin for TextLayoutMetrics
impl UnwindSafe for TextLayoutMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more