pub enum DropRegion {
Center,
Top,
Bottom,
Leading,
Trailing,
}Expand description
One of the five drop regions a DropTarget
can expose. Each is independently enable-able and carries an optional hint.
Leading/Trailing are writing-direction-relative by intent; the v1
hit-test maps Leading→left and Trailing→right (LTR only — the framework
exposes no writing direction on the layout/paint contexts yet, so RTL
mirroring is a documented follow-up).
Variants§
Center
The middle of the target — whatever the side zones don’t claim.
Top
The top edge strip.
Bottom
The bottom edge strip.
Leading
The leading edge strip (left in LTR).
Trailing
The trailing edge strip (right in LTR).
Implementations§
Source§impl DropRegion
impl DropRegion
Sourcepub const ALL: [DropRegion; 5]
pub const ALL: [DropRegion; 5]
All five regions, in the hit-test priority order (side zones before centre; leading→trailing→top→bottom among the sides).
Trait Implementations§
Source§impl Clone for DropRegion
impl Clone for DropRegion
Source§fn clone(&self) -> DropRegion
fn clone(&self) -> DropRegion
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 DropRegion
Source§impl Debug for DropRegion
impl Debug for DropRegion
impl Eq for DropRegion
Source§impl Hash for DropRegion
impl Hash for DropRegion
Source§impl PartialEq for DropRegion
impl PartialEq for DropRegion
impl StructuralPartialEq for DropRegion
Auto Trait Implementations§
impl Freeze for DropRegion
impl RefUnwindSafe for DropRegion
impl Send for DropRegion
impl Sync for DropRegion
impl Unpin for DropRegion
impl UnsafeUnpin for DropRegion
impl UnwindSafe for DropRegion
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