pub trait PanelView: PanelView {
// Required methods
fn tab_name(&self, cx: &App) -> Option<SharedString>;
fn title(&self, window: &mut Window, cx: &mut App) -> AnyElement;
fn title_style(&self, cx: &App) -> Option<TitleStyle>;
fn title_suffix(
&self,
window: &mut Window,
cx: &mut App,
) -> Option<AnyElement>;
fn toolbar_buttons(
&self,
window: &mut Window,
cx: &mut App,
) -> Option<Vec<Button>>;
fn dropdown_menu(
&self,
menu: PopupMenu,
window: &mut Window,
cx: &mut App,
) -> PopupMenu;
fn zoom_control(&self, cx: &App) -> Option<PanelControl>;
fn inner_padding(&self, cx: &App) -> bool;
}Expand description
Object-safe counterpart of Panel, and the presentation half of the
handle a skin holds.
Required Methods§
fn tab_name(&self, cx: &App) -> Option<SharedString>
fn title(&self, window: &mut Window, cx: &mut App) -> AnyElement
fn title_style(&self, cx: &App) -> Option<TitleStyle>
fn title_suffix(&self, window: &mut Window, cx: &mut App) -> Option<AnyElement>
fn zoom_control(&self, cx: &App) -> Option<PanelControl>
fn inner_padding(&self, cx: &App) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".