pub enum TabBarMessage {
SelectTab(usize),
NextTab,
PrevTab,
CloseTab(usize),
CloseActiveTab,
AddTab(Tab),
First,
Last,
}Expand description
Messages that can be sent to a TabBar component.
Variants§
SelectTab(usize)
Select a specific tab by index.
NextTab
Move to the next (right) tab.
PrevTab
Move to the previous (left) tab.
CloseTab(usize)
Close a specific tab by index.
CloseActiveTab
Close the currently active tab (only if closable).
AddTab(Tab)
Add a new tab (appended to the end) and make it active.
First
Jump to the first tab.
Last
Jump to the last tab.
Trait Implementations§
Source§impl Clone for TabBarMessage
impl Clone for TabBarMessage
Source§fn clone(&self) -> TabBarMessage
fn clone(&self) -> TabBarMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TabBarMessage
impl Debug for TabBarMessage
Source§impl PartialEq for TabBarMessage
impl PartialEq for TabBarMessage
impl Eq for TabBarMessage
impl StructuralPartialEq for TabBarMessage
Auto Trait Implementations§
impl Freeze for TabBarMessage
impl RefUnwindSafe for TabBarMessage
impl Send for TabBarMessage
impl Sync for TabBarMessage
impl Unpin for TabBarMessage
impl UnsafeUnpin for TabBarMessage
impl UnwindSafe for TabBarMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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