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
Source§fn clone(&self) -> TextSelectionPoint
fn clone(&self) -> TextSelectionPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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 Forget for TextSelectionPoint
impl Freeze for TextSelectionPoint
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.