Struct arcdps_imgui::TabItem
source · pub struct TabItem<'a, T> { /* private fields */ }
Implementations§
source§impl<'a, T: AsRef<str>> TabItem<'a, T>
impl<'a, T: AsRef<str>> TabItem<'a, T>
pub fn new(name: T) -> Self
sourcepub fn opened(self, opened: &'a mut bool) -> Self
pub fn opened(self, opened: &'a mut bool) -> Self
Will open or close the tab.
True to display the tab. Tab item is visible by default.
sourcepub fn flags(self, flags: TabItemFlags) -> Self
pub fn flags(self, flags: TabItemFlags) -> Self
Set the flags of the tab item.
Flags are empty by default
pub fn begin<'ui>(self, ui: &'ui Ui<'_>) -> Option<TabItemToken<'ui>>
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