Struct workspace2::dock::Dock
source · pub struct Dock { /* private fields */ }
Implementations§
source§impl Dock
impl Dock
pub fn new(position: DockPosition) -> Self
pub fn position(&self) -> DockPosition
pub fn is_open(&self) -> bool
pub fn panel<T: Panel>(&self) -> Option<View<T>>
pub fn panel_index_for_type<T: Panel>(&self) -> Option<usize>
pub fn panel_index_for_persistent_name( &self, ui_name: &str, _cx: &AppContext ) -> Option<usize>
pub fn active_panel_index(&self) -> usize
pub fn set_panel_zoomed( &mut self, panel: &AnyView, zoomed: bool, cx: &mut ViewContext<'_, Self> )
pub fn zoom_out(&mut self, cx: &mut ViewContext<'_, Self>)
pub fn remove_panel<T: Panel>( &mut self, panel: &View<T>, cx: &mut ViewContext<'_, Self> )
pub fn panels_len(&self) -> usize
pub fn activate_panel( &mut self, panel_ix: usize, cx: &mut ViewContext<'_, Self> )
pub fn visible_panel(&self) -> Option<&Arc<dyn PanelHandle>>
pub fn active_panel(&self) -> Option<&Arc<dyn PanelHandle>>
pub fn zoomed_panel( &self, cx: &WindowContext<'_> ) -> Option<Arc<dyn PanelHandle>>
pub fn panel_size( &self, panel: &dyn PanelHandle, cx: &WindowContext<'_> ) -> Option<f32>
pub fn active_panel_size(&self, cx: &WindowContext<'_>) -> Option<f32>
pub fn resize_active_panel( &mut self, size: Option<f32>, cx: &mut ViewContext<'_, Self> )
pub fn toggle_action(&self) -> Box<dyn Action>
Trait Implementations§
source§impl FocusableView for Dock
impl FocusableView for Dock
fn focus_handle(&self, cx: &AppContext) -> FocusHandle
Auto Trait Implementations§
impl !RefUnwindSafe for Dock
impl !Send for Dock
impl !Sync for Dock
impl Unpin for Dock
impl !UnwindSafe for Dock
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