Struct floem_cosmic_text::HitPoint
source · pub struct HitPoint {
pub line: usize,
pub index: usize,
pub is_inside: bool,
}
Fields§
§line: usize
Text line the cursor is on
index: usize
First-byte-index of glyph at cursor (will insert behind this glyph)
is_inside: bool
Whether or not the point was inside the bounds of the layout object.
A click outside the layout object will still resolve to a position in the text; for instance a click to the right edge of a line will resolve to the end of that line, and a click below the last line will resolve to a position in that line.
Auto Trait Implementations§
impl Freeze for HitPoint
impl RefUnwindSafe for HitPoint
impl Send for HitPoint
impl Sync for HitPoint
impl Unpin for HitPoint
impl UnwindSafe for HitPoint
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