pub trait PanelView:
'static
+ Send
+ Sync {
Show 17 methods
// Required methods
fn panel_name(&self, cx: &App) -> &'static str;
fn panel_id(&self, cx: &App) -> EntityId;
fn tab_name(&self, cx: &App) -> Option<SharedString>;
fn title(&self, window: &Window, cx: &App) -> AnyElement;
fn title_suffix(
&self,
window: &mut Window,
cx: &mut App,
) -> Option<AnyElement>;
fn title_style(&self, cx: &App) -> Option<TitleStyle>;
fn closable(&self, cx: &App) -> bool;
fn zoomable(&self, cx: &App) -> Option<PanelControl>;
fn visible(&self, cx: &App) -> bool;
fn set_active(&self, active: bool, window: &mut Window, cx: &mut App);
fn set_zoomed(&self, zoomed: bool, window: &mut Window, cx: &mut App);
fn popup_menu(
&self,
menu: PopupMenu,
window: &Window,
cx: &App,
) -> PopupMenu;
fn toolbar_buttons(
&self,
window: &mut Window,
cx: &mut App,
) -> Option<Vec<Button>>;
fn view(&self) -> AnyView;
fn focus_handle(&self, cx: &App) -> FocusHandle;
fn dump(&self, cx: &App) -> PanelState;
fn inner_padding(&self, cx: &App) -> bool;
}
Expand description
The PanelView trait used to define the panel view.