pub enum DropTargetDragState {
Idle,
HoverAccept,
HoverReject,
}Expand description
Interaction state of a drop target, driving the overlay’s surface and
border colors and the hint card’s visibility. Defined here (not in
teksilo-widgets) so the core style trait and the default recipe can both
name it — mirroring DropZoneVisualState.
Variants§
Idle
At rest — no drag over the target. Overlay is fully transparent so the wrapped child shows through untouched.
HoverAccept
A drag is over the target carrying acceptable data.
HoverReject
A drag is over the target but its data is rejected by the accept filter.
Implementations§
Source§impl DropTargetDragState
impl DropTargetDragState
Sourcepub fn surface_role(self) -> SurfaceRole
pub fn surface_role(self) -> SurfaceRole
Background surface-tint role for this state.
Sourcepub fn border_role(self) -> BorderRole
pub fn border_role(self) -> BorderRole
Border role for this state.
Trait Implementations§
Source§impl Clone for DropTargetDragState
impl Clone for DropTargetDragState
Source§fn clone(&self) -> DropTargetDragState
fn clone(&self) -> DropTargetDragState
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 DropTargetDragState
Source§impl Debug for DropTargetDragState
impl Debug for DropTargetDragState
impl Eq for DropTargetDragState
Source§impl PartialEq for DropTargetDragState
impl PartialEq for DropTargetDragState
impl StructuralPartialEq for DropTargetDragState
Auto Trait Implementations§
impl Freeze for DropTargetDragState
impl RefUnwindSafe for DropTargetDragState
impl Send for DropTargetDragState
impl Sync for DropTargetDragState
impl Unpin for DropTargetDragState
impl UnsafeUnpin for DropTargetDragState
impl UnwindSafe for DropTargetDragState
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