pub struct TextLayoutResult {
pub line_count: usize,
pub width_px: f32,
pub height_px: f32,
}Expand description
Result of text layout computation, provided to the on_text_layout callback.
Exposes key information about the rendered text layout.
Fields§
§line_count: usizeNumber of visual lines in the layout.
width_px: f32Total content width in px.
height_px: f32Total content height in px.
Trait Implementations§
Source§impl Clone for TextLayoutResult
impl Clone for TextLayoutResult
Source§fn clone(&self) -> TextLayoutResult
fn clone(&self) -> TextLayoutResult
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 moreAuto Trait Implementations§
impl Freeze for TextLayoutResult
impl RefUnwindSafe for TextLayoutResult
impl Send for TextLayoutResult
impl Sync for TextLayoutResult
impl Unpin for TextLayoutResult
impl UnsafeUnpin for TextLayoutResult
impl UnwindSafe for TextLayoutResult
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