pub enum HandlePos {
Start,
End,
Middle,
TopLeft,
TopRight,
BottomLeft,
BottomRight,
Top,
Bottom,
Left,
Right,
Point(usize),
}Expand description
Identifies a selection handle position on a drawing.
Different tool types expose different handle layouts. Two-point tools use
Start and End; rectangles use four corner and four edge handles;
multi-point tools use indexed Point(i) handles.
Variants§
Start
First anchor point of the drawing.
End
Last anchor point of the drawing.
Middle
Whole-drawing move, also used internally for body drags.
TopLeft
Top-left corner (used by rectangle and similar axis-aligned shapes).
TopRight
Top-right corner.
BottomLeft
Bottom-left corner.
BottomRight
Bottom-right corner.
Top
Top edge midpoint.
Bottom
Bottom edge midpoint.
Left
Left edge midpoint.
Right
Right edge midpoint.
Point(usize)
Indexed anchor point for multi-point drawings (e.g., Point(2) is the
third point in an XABCD pattern).
Trait Implementations§
impl Copy for HandlePos
impl Eq for HandlePos
impl StructuralPartialEq for HandlePos
Auto Trait Implementations§
impl Freeze for HandlePos
impl RefUnwindSafe for HandlePos
impl Send for HandlePos
impl Sync for HandlePos
impl Unpin for HandlePos
impl UnsafeUnpin for HandlePos
impl UnwindSafe for HandlePos
Blanket Implementations§
impl<T> AsId for T
impl<T> AsIdSalt for T
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more