Struct egui_dock::DynamicTabViewer
source · pub struct DynamicTabViewer {}
👎Deprecated
Expand description
For use with crate::DockArea::show
when using DynamicTree
.
Trait Implementations§
source§impl Debug for DynamicTabViewer
impl Debug for DynamicTabViewer
source§impl Default for DynamicTabViewer
impl Default for DynamicTabViewer
source§fn default() -> DynamicTabViewer
fn default() -> DynamicTabViewer
Returns the “default value” for a type. Read more
source§impl TabViewer for DynamicTabViewer
impl TabViewer for DynamicTabViewer
type Tab = Box<dyn Tab + 'static, Global>
Content inside context_menu.
source§fn title(&mut self, tab: &mut Self::Tab) -> WidgetText
fn title(&mut self, tab: &mut Self::Tab) -> WidgetText
The title to be displayed.
source§fn 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
source§fn 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 moresource§fn clear_background(&self, tab: &Self::Tab) -> bool
fn clear_background(&self, tab: &Self::Tab) -> bool
Whether the tab will be cleared with the color specified in
Style::tab_background_color
source§fn on_add(&mut self, _node: NodeIndex)
fn on_add(&mut self, _node: NodeIndex)
This is called when the tabs add button is pressed. Read more
source§fn add_popup(&mut self, _ui: &mut Ui, _node: NodeIndex)
fn add_popup(&mut self, _ui: &mut Ui, _node: NodeIndex)
Content of add_popup. Displays a popup under the add button. Useful for selecting
what type of tab to add. Read more
source§fn inner_margin_override(&self, style: &Style) -> Margin
fn inner_margin_override(&self, style: &Style) -> Margin
Sets the margins between tab’s borders and its contents.