pub struct TabItem<'a, T> { /* private fields */ }
Implementations§
Source§impl<'a, T> TabItem<'a, T>
impl<'a, T> TabItem<'a, T>
pub fn new(name: T) -> TabItem<'a, T>
Sourcepub fn opened(self, opened: &'a mut bool) -> TabItem<'a, T>
pub fn opened(self, opened: &'a mut bool) -> TabItem<'a, T>
Will open or close the tab.
True to display the tab. Tab item is visible by default.
Sourcepub fn flags(self, flags: TabItemFlags) -> TabItem<'a, T>
pub fn flags(self, flags: TabItemFlags) -> TabItem<'a, T>
Set the flags of the tab item.
Flags are empty by default
pub fn begin(self, ui: &Ui) -> Option<TabItemToken<'_>>
Auto Trait Implementations§
impl<'a, T> Freeze for TabItem<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for TabItem<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for TabItem<'a, T>where
T: Send,
impl<'a, T> Sync for TabItem<'a, T>where
T: Sync,
impl<'a, T> Unpin for TabItem<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for TabItem<'a, T>
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> 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