pub struct TextLineLayout { /* private fields */ }Implementations§
Source§impl TextLineLayout
impl TextLineLayout
pub fn start(&self) -> usize
pub fn end(&self) -> usize
pub fn width(&self) -> Px
pub fn y_top(&self) -> Px
pub fn y_baseline(&self) -> Px
pub fn height(&self) -> Px
pub fn ascent(&self) -> Px
pub fn descent(&self) -> Px
pub fn ink_ascent(&self) -> Px
pub fn ink_descent(&self) -> Px
pub fn caret_stops(&self) -> &[(usize, Px)]
pub fn caret_stops_capacity(&self) -> usize
pub fn clusters(&self) -> &[TextLineCluster]
Trait Implementations§
Source§impl Clone for TextLineLayout
impl Clone for TextLineLayout
Source§fn clone(&self) -> TextLineLayout
fn clone(&self) -> TextLineLayout
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 Debug for TextLineLayout
impl Debug for TextLineLayout
Source§impl TextLineDecorationGeometry for TextLineLayout
impl TextLineDecorationGeometry for TextLineLayout
fn y_baseline(&self) -> Px
Auto Trait Implementations§
impl Freeze for TextLineLayout
impl RefUnwindSafe for TextLineLayout
impl Send for TextLineLayout
impl Sync for TextLineLayout
impl Unpin for TextLineLayout
impl UnsafeUnpin for TextLineLayout
impl UnwindSafe for TextLineLayout
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