pub enum VisibilityIntent {
ShowAll,
HideAll,
ToggleAll,
ShowSide(PanelSide),
HideSide(PanelSide),
ToggleSide(PanelSide),
}Expand description
What an invocation (or the hamburger “Collapse”) wants to do to dock
visibility. Pure data, so the show/hide rules can be unit-tested without a
display (see the visibility tests below).
Variants§
ShowAll
Show every dock.
HideAll
Hide every dock.
ToggleAll
Toggle every dock: hide them all when any is visible, else show all.
ShowSide(PanelSide)
Show the named side, creating its dock if needed.
HideSide(PanelSide)
Hide the named side (a no-op when that dock does not exist).
ToggleSide(PanelSide)
Toggle the named side, creating and showing it if it does not exist.
Trait Implementations§
Source§impl Clone for VisibilityIntent
impl Clone for VisibilityIntent
impl Copy for VisibilityIntent
Source§impl Debug for VisibilityIntent
impl Debug for VisibilityIntent
impl Eq for VisibilityIntent
Source§impl PartialEq for VisibilityIntent
impl PartialEq for VisibilityIntent
impl StructuralPartialEq for VisibilityIntent
Auto Trait Implementations§
impl Freeze for VisibilityIntent
impl RefUnwindSafe for VisibilityIntent
impl Send for VisibilityIntent
impl Sync for VisibilityIntent
impl Unpin for VisibilityIntent
impl UnsafeUnpin for VisibilityIntent
impl UnwindSafe for VisibilityIntent
Blanket Implementations§
Source§impl<C> AsyncPosition<()> for C
impl<C> AsyncPosition<()> for C
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
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