pub struct LaidoutRow {
pub origin_in_lpxs: Point<f32>,
pub text: Substr,
pub newline: bool,
pub width_in_lpxs: f32,
pub ascender_in_lpxs: f32,
pub descender_in_lpxs: f32,
pub line_gap_in_lpxs: f32,
pub line_spacing_above_in_lpxs: f32,
pub line_spacing_below_in_lpxs: f32,
pub glyphs: Vec<LaidoutGlyph>,
}
Fields§
§origin_in_lpxs: Point<f32>
§text: Substr
§newline: bool
§width_in_lpxs: f32
§ascender_in_lpxs: f32
§descender_in_lpxs: f32
§line_gap_in_lpxs: f32
§line_spacing_above_in_lpxs: f32
§line_spacing_below_in_lpxs: f32
§glyphs: Vec<LaidoutGlyph>
Implementations§
Source§impl LaidoutRow
impl LaidoutRow
pub fn line_spacing_in_lpxs(&self, next_row: &LaidoutRow) -> f32
pub fn x_in_lpxs_to_index(&self, x_in_lpxs: f32) -> usize
pub fn index_to_x_in_lpxs(&self, index: usize) -> f32
Trait Implementations§
Source§impl Clone for LaidoutRow
impl Clone for LaidoutRow
Source§fn clone(&self) -> LaidoutRow
fn clone(&self) -> LaidoutRow
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 moreAuto Trait Implementations§
impl Freeze for LaidoutRow
impl !RefUnwindSafe for LaidoutRow
impl !Send for LaidoutRow
impl !Sync for LaidoutRow
impl Unpin for LaidoutRow
impl !UnwindSafe for LaidoutRow
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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