pub trait Tab {
const NAME: &'static str;
// Required method
fn main_display(&mut self, world: &mut World, ui: &mut Ui);
// Provided methods
fn pre_render(&mut self, _world: &mut World) { ... }
fn post_render(&mut self, _world: &mut World) { ... }
fn edit_display(&mut self, _world: &mut World, ui: &mut Ui) { ... }
fn display_display(&mut self, _world: &mut World, ui: &mut Ui) { ... }
fn export_display(&mut self, _world: &mut World, ui: &mut Ui) { ... }
fn title(&self) -> WidgetText { ... }
fn on_tab_button(&self, world: &mut World, response: &Response) { ... }
fn id(&self) -> Id { ... }
fn scroll_bars(&self) -> [bool; 2] { ... }
fn frame(&self) -> Frame { ... }
fn icon(&self) -> Cow<'static, str> { ... }
}Required Associated Constants§
Required Methods§
Sourcefn main_display(&mut self, world: &mut World, ui: &mut Ui)
fn main_display(&mut self, world: &mut World, ui: &mut Ui)
The main display of the tab.
Provided Methods§
Sourcefn pre_render(&mut self, _world: &mut World)
fn pre_render(&mut self, _world: &mut World)
Called before rendering the tab.
Sourcefn post_render(&mut self, _world: &mut World)
fn post_render(&mut self, _world: &mut World)
Called after rendering the tab.
fn edit_display(&mut self, _world: &mut World, ui: &mut Ui)
fn display_display(&mut self, _world: &mut World, ui: &mut Ui)
fn export_display(&mut self, _world: &mut World, ui: &mut Ui)
fn title(&self) -> WidgetText
fn id(&self) -> Id
fn scroll_bars(&self) -> [bool; 2]
fn frame(&self) -> Frame
fn icon(&self) -> Cow<'static, str>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.