pub enum DropZoneVisualState {
Idle,
HoverAccept,
HoverReject,
}Expand description
Interaction state of a drop zone, driving the chrome’s surface and border
colors. Defined here (not in teksilo-widgets) so the core style trait
and the default recipe can both name it — mirroring BannerSeverity.
Variants§
Idle
At rest — no drag over the zone.
HoverAccept
A drag is over the zone carrying acceptable data.
HoverReject
A drag is over the zone but its data is rejected (wrong type / count).
Implementations§
Source§impl DropZoneVisualState
impl DropZoneVisualState
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 DropZoneVisualState
impl Clone for DropZoneVisualState
Source§fn clone(&self) -> DropZoneVisualState
fn clone(&self) -> DropZoneVisualState
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 DropZoneVisualState
Source§impl Debug for DropZoneVisualState
impl Debug for DropZoneVisualState
impl Eq for DropZoneVisualState
Source§impl PartialEq for DropZoneVisualState
impl PartialEq for DropZoneVisualState
impl StructuralPartialEq for DropZoneVisualState
Auto Trait Implementations§
impl Freeze for DropZoneVisualState
impl RefUnwindSafe for DropZoneVisualState
impl Send for DropZoneVisualState
impl Sync for DropZoneVisualState
impl Unpin for DropZoneVisualState
impl UnsafeUnpin for DropZoneVisualState
impl UnwindSafe for DropZoneVisualState
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