pub struct EditorParagraph<'a> { /* private fields */ }Expand description
One laid out paragraph of an editor.
Implementations§
Source§impl EditorParagraph<'_>
impl EditorParagraph<'_>
Sourcepub fn stamp(&self) -> u64
pub fn stamp(&self) -> u64
Returns the stamp the paragraph’s layout was built under, which changes when the paragraph is laid out again.
Sourcepub fn offset(&self) -> Point
pub fn offset(&self) -> Point
Returns where the paragraph’s top left corner sits, relative to the top left of the text, in logical pixels.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EditorParagraph<'a>
impl<'a> !UnwindSafe for EditorParagraph<'a>
impl<'a> Forget for EditorParagraph<'a>
impl<'a> Freeze for EditorParagraph<'a>
impl<'a> Move for EditorParagraph<'a>
impl<'a> Send for EditorParagraph<'a>
impl<'a> Sync for EditorParagraph<'a>
impl<'a> Unpin for EditorParagraph<'a>
impl<'a> UnsafeUnpin for EditorParagraph<'a>
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