Struct terminal_view2::terminal_panel::TerminalPanel
source · pub struct TerminalPanel { /* private fields */ }
Implementations§
source§impl TerminalPanel
impl TerminalPanel
pub async fn load( workspace: WeakView<Workspace>, cx: AsyncWindowContext ) -> Result<View<Self>>
pub fn open_terminal( workspace: &mut Workspace, action: &OpenTerminal, cx: &mut ViewContext<'_, Workspace> )
Trait Implementations§
source§impl FocusableView for TerminalPanel
impl FocusableView for TerminalPanel
fn focus_handle(&self, cx: &AppContext) -> FocusHandle
source§impl Panel for TerminalPanel
impl Panel for TerminalPanel
fn position(&self, cx: &WindowContext<'_>) -> DockPosition
fn position_is_valid(&self, _: DockPosition) -> bool
fn set_position( &mut self, position: DockPosition, cx: &mut ViewContext<'_, Self> )
fn size(&self, cx: &WindowContext<'_>) -> f32
fn set_size(&mut self, size: Option<f32>, cx: &mut ViewContext<'_, Self>)
fn is_zoomed(&self, cx: &WindowContext<'_>) -> bool
fn set_zoomed(&mut self, zoomed: bool, cx: &mut ViewContext<'_, Self>)
fn set_active(&mut self, active: bool, cx: &mut ViewContext<'_, Self>)
fn icon_label(&self, cx: &WindowContext<'_>) -> Option<String>
fn has_focus(&self, cx: &WindowContext<'_>) -> bool
fn persistent_name() -> &'static str
fn icon(&self, _cx: &WindowContext<'_>) -> Option<Icon>
fn toggle_action(&self) -> Box<dyn Action>
source§impl Render for TerminalPanel
impl Render for TerminalPanel
impl EventEmitter<PanelEvent> for TerminalPanel
Auto Trait Implementations§
impl !RefUnwindSafe for TerminalPanel
impl !Send for TerminalPanel
impl !Sync for TerminalPanel
impl Unpin for TerminalPanel
impl !UnwindSafe for TerminalPanel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more