pub struct SelectionHandle {
pub rect: Rect,
pub line_center: Point,
}Expand description
One of the two handles under a touch selection, in the field’s local coordinates (px from its top-left corner, as on screen: any scroll of its content already applied).
The paint and the shell’s hit test read the same answer, so a handle is taken exactly where it is drawn.
Fields§
§rect: RectThe box the handle is drawn in, hanging below its end of the selection.
line_center: PointThe text position the handle stands for: its end of the selection, halfway down the line. A handle hangs below its line, so a finger dragging it is aimed at the line through this point rather than at where the finger is.
Trait Implementations§
Source§impl Clone for SelectionHandle
impl Clone for SelectionHandle
impl Copy for SelectionHandle
Source§impl Debug for SelectionHandle
impl Debug for SelectionHandle
Source§impl PartialEq for SelectionHandle
impl PartialEq for SelectionHandle
impl StructuralPartialEq for SelectionHandle
Auto Trait Implementations§
impl Freeze for SelectionHandle
impl RefUnwindSafe for SelectionHandle
impl Send for SelectionHandle
impl Sync for SelectionHandle
impl Unpin for SelectionHandle
impl UnsafeUnpin for SelectionHandle
impl UnwindSafe for SelectionHandle
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