Struct egui_dock::DynamicTabViewer
source · [−]pub struct DynamicTabViewer {}
Expand description
For use with crate::DockArea::show
when using DynamicTree
.
Trait Implementations
sourceimpl Default for DynamicTabViewer
impl Default for DynamicTabViewer
sourcefn default() -> DynamicTabViewer
fn default() -> DynamicTabViewer
Returns the “default value” for a type. Read more
sourceimpl TabViewer for DynamicTabViewer
impl TabViewer for DynamicTabViewer
type Tab = Box<dyn Tab + 'static, Global>
sourcefn title(&mut self, tab: &mut Self::Tab) -> WidgetText
fn title(&mut self, tab: &mut Self::Tab) -> WidgetText
The title to be displayed.
sourcefn on_close(&mut self, tab: &mut Self::Tab) -> bool
fn on_close(&mut self, tab: &mut Self::Tab) -> bool
This is called when the tabs close button is pressed. Read more
sourcefn force_close(&mut self, tab: &mut Self::Tab) -> bool
fn force_close(&mut self, tab: &mut Self::Tab) -> bool
This is called every frame after ui
is called (if the tab is active). Read more
sourcefn inner_margin(&self) -> Margin
fn inner_margin(&self) -> Margin
Sets the margins between tab’s borders and its contents.
Auto Trait Implementations
impl RefUnwindSafe for DynamicTabViewer
impl Send for DynamicTabViewer
impl Sync for DynamicTabViewer
impl Unpin for DynamicTabViewer
impl UnwindSafe for DynamicTabViewer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more