pub struct TextLayout {
pub glyphs: Vec<PlacedGlyph>,
pub width: i32,
pub height: i32,
pub missing_characters: Vec<char>,
}Expand description
Laid-out text: each glyph’s place, and the size of the whole.
Fields§
§glyphs: Vec<PlacedGlyph>The glyphs, each with its position.
width: i32The width in pixels.
height: i32The height in pixels.
missing_characters: Vec<char>Distinct input characters absent from the font, rendered using the fallback policy. Kept even when the font has no replacement glyph, so missing text is diagnosable.
Implementations§
Trait Implementations§
Source§impl Clone for TextLayout
impl Clone for TextLayout
Source§fn clone(&self) -> TextLayout
fn clone(&self) -> TextLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextLayout
impl Debug for TextLayout
Source§impl Default for TextLayout
impl Default for TextLayout
Source§fn default() -> TextLayout
fn default() -> TextLayout
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextLayout
impl PartialEq for TextLayout
impl StructuralPartialEq for TextLayout
Auto Trait Implementations§
impl Freeze for TextLayout
impl RefUnwindSafe for TextLayout
impl Send for TextLayout
impl Sync for TextLayout
impl Unpin for TextLayout
impl UnsafeUnpin for TextLayout
impl UnwindSafe for TextLayout
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