#[non_exhaustive]pub struct DropHint {
pub panel: PanelId,
pub area: &'static str,
pub rect: Rect,
pub refusal: Option<String>,
pub zone: DropZone,
pub index: Option<usize>,
pub preview: Option<TabPreview>,
pub armed: bool,
}Expand description
The drop hint shown while a tab is dragged (in its area or over
another), or a palette over an area it docks in: what
AppHandle::drop_hint, overlay_rects (drop:<panel>:<area>) and
the workbench collector report.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.panel: PanelId§area: &'static strThe area the panel would go to (area_name).
rect: RectWhere the hint is drawn, in points: the region the panel would take (a group of tabs, the half of it a split gives, a place in a tab bar, a closed area along the edge).
refusal: Option<String>Why the panel may not go there, as the hint says it; None when
it may.
zone: DropZoneHow it would go there: [DropZone::Center] joins a group’s tabs,
an edge splits the group on that side.
index: Option<usize>Its index among the tabs it would join; None for a split.
preview: Option<TabPreview>A palette’s: the ghost of its tab where it would land; None when
the drop is refused or not armed, and for a tab (the drop zone
shows it).
armed: boolWhether a drop now docks: always for a tab; for a palette, as its
drag mode and the dock keys held say (input.dock_drag,
gesture.workbench.dock). Not armed, nothing is drawn and a drop
only moves the palette.
Implementations§
Trait Implementations§
impl StructuralPartialEq for DropHint
Auto Trait Implementations§
impl Freeze for DropHint
impl RefUnwindSafe for DropHint
impl Send for DropHint
impl Sync for DropHint
impl Unpin for DropHint
impl UnsafeUnpin for DropHint
impl UnwindSafe for DropHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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