pub struct RawFloatingCursorPoint {
pub offset: Option<Offset>,
pub start_location: Option<(Offset, TextPosition)>,
pub state: FloatingCursorDragState,
}Expand description
The current state and position of the floating cursor.
See also:
FloatingCursorDragState, which explains the floating cursor feature in detail.
Fields§
§offset: Option<Offset>The raw position of the floating cursor as determined by the iOS sdk.
start_location: Option<(Offset, TextPosition)>Represents the starting location when initiating a floating cursor via long press. This is a tuple where the first item is the local offset and the second item is the new caret position. This is only non-null when a floating cursor is started.
state: FloatingCursorDragStateThe state of the floating cursor.
Implementations§
Source§impl RawFloatingCursorPoint
impl RawFloatingCursorPoint
Sourcepub fn new(state: FloatingCursorDragState) -> RawFloatingCursorPoint
pub fn new(state: FloatingCursorDragState) -> RawFloatingCursorPoint
Creates information for setting the position and state of a floating cursor.
state must not be null and offset must not be null if the state is
FloatingCursorDragState::Update.
Sourcepub fn offset(self, offset: Offset) -> RawFloatingCursorPoint
pub fn offset(self, offset: Offset) -> RawFloatingCursorPoint
Dart RawFloatingCursorPoint(offset:).
Sourcepub fn start_location(
self,
start_location: (Offset, TextPosition),
) -> RawFloatingCursorPoint
pub fn start_location( self, start_location: (Offset, TextPosition), ) -> RawFloatingCursorPoint
Dart RawFloatingCursorPoint(startLocation:).
Trait Implementations§
Source§impl Clone for RawFloatingCursorPoint
impl Clone for RawFloatingCursorPoint
impl Copy for RawFloatingCursorPoint
Source§impl Debug for RawFloatingCursorPoint
impl Debug for RawFloatingCursorPoint
Source§impl PartialEq for RawFloatingCursorPoint
impl PartialEq for RawFloatingCursorPoint
impl StructuralPartialEq for RawFloatingCursorPoint
Auto Trait Implementations§
impl Freeze for RawFloatingCursorPoint
impl RefUnwindSafe for RawFloatingCursorPoint
impl Send for RawFloatingCursorPoint
impl Sync for RawFloatingCursorPoint
impl Unpin for RawFloatingCursorPoint
impl UnsafeUnpin for RawFloatingCursorPoint
impl UnwindSafe for RawFloatingCursorPoint
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