pub struct SelectionPoint {
pub local_position: Offset,
pub line_height: f64,
pub handle_type: TextSelectionHandleType,
}Expand description
The geometry information of one selection point.
Fields§
§local_position: OffsetThe position of the selection point in the containing selectable’s coordinates.
line_height: f64The line height at the selection point.
handle_type: TextSelectionHandleTypeThe selection handle to build at the point.
Implementations§
Source§impl SelectionPoint
impl SelectionPoint
Sourcepub fn new(
local_position: Offset,
line_height: f64,
handle_type: TextSelectionHandleType,
) -> SelectionPoint
pub fn new( local_position: Offset, line_height: f64, handle_type: TextSelectionHandleType, ) -> SelectionPoint
Creates a selection point.
Trait Implementations§
Source§impl Clone for SelectionPoint
impl Clone for SelectionPoint
impl Copy for SelectionPoint
Source§impl Debug for SelectionPoint
impl Debug for SelectionPoint
Source§impl PartialEq for SelectionPoint
impl PartialEq for SelectionPoint
impl StructuralPartialEq for SelectionPoint
Auto Trait Implementations§
impl Forget for SelectionPoint
impl Freeze for SelectionPoint
impl Move for SelectionPoint
impl RefUnwindSafe for SelectionPoint
impl Send for SelectionPoint
impl Sync for SelectionPoint
impl Unpin for SelectionPoint
impl UnsafeUnpin for SelectionPoint
impl UnwindSafe for SelectionPoint
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