pub struct TextSelectionPoint {
pub point: Offset,
pub direction: Option<TextDirection>,
}Expand description
Represents the coordinates of the point in a selection, and the text
direction at that point, relative to top left of the RenderEditable that
holds the selection.
Fields§
§point: OffsetCoordinates of the lower left or lower right corner of the selection,
relative to the top left of the RenderEditable object.
direction: Option<TextDirection>Direction of the text at this edge of the selection.
Implementations§
Source§impl TextSelectionPoint
impl TextSelectionPoint
Sourcepub const fn new(
point: Offset,
direction: Option<TextDirection>,
) -> TextSelectionPoint
pub const fn new( point: Offset, direction: Option<TextDirection>, ) -> TextSelectionPoint
Creates a description of a point in a text selection.
Trait Implementations§
Source§impl Clone for TextSelectionPoint
impl Clone for TextSelectionPoint
impl Copy for TextSelectionPoint
Source§impl Debug for TextSelectionPoint
impl Debug for TextSelectionPoint
Source§impl Display for TextSelectionPoint
impl Display for TextSelectionPoint
Source§impl PartialEq for TextSelectionPoint
impl PartialEq for TextSelectionPoint
impl StructuralPartialEq for TextSelectionPoint
Auto Trait Implementations§
impl Freeze for TextSelectionPoint
impl RefUnwindSafe for TextSelectionPoint
impl Send for TextSelectionPoint
impl Sync for TextSelectionPoint
impl Unpin for TextSelectionPoint
impl UnsafeUnpin for TextSelectionPoint
impl UnwindSafe for TextSelectionPoint
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