pub enum DockEvent {
PanelSelected {
region: DockRegion,
panel: SharedString,
},
PanelMoved {
panel: SharedString,
to_region: DockRegion,
before: Option<SharedString>,
},
RegionCollapsed {
region: DockRegion,
collapsed: bool,
},
RegionResized {
region: DockRegion,
ratio: f32,
},
}Expand description
What the dock reports. The caller decides what any of it means.
Variants§
PanelSelected
A tab or a rail glyph was picked.
PanelMoved
A panel was dragged somewhere. Nothing has moved.
Fields
§
panel: SharedString§
to_region: DockRegion§
before: Option<SharedString>The panel the moved one should sit in front of, or None to put it
last. Never an index: an index stops meaning anything the moment
the host applies the move.
RegionCollapsed
A region was asked to collapse to its rail, or to come back.
RegionResized
A divider beside a region was moved. ratio is the share of its own
split the region asked for.
Trait Implementations§
impl StructuralPartialEq for DockEvent
Auto Trait Implementations§
impl Freeze for DockEvent
impl RefUnwindSafe for DockEvent
impl Send for DockEvent
impl Sync for DockEvent
impl Unpin for DockEvent
impl UnsafeUnpin for DockEvent
impl UnwindSafe for DockEvent
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
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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