Struct project_panel2::ProjectPanel
source · pub struct ProjectPanel { /* private fields */ }
Implementations§
source§impl ProjectPanel
impl ProjectPanel
pub async fn load( workspace: WeakView<Workspace>, cx: AsyncWindowContext ) -> Result<View<Self>>
pub fn collapse_all_entries( &mut self, _: &CollapseAllEntries, cx: &mut ViewContext<'_, Self> )
pub fn new_search_in_directory( &mut self, _: &NewSearchInDirectory, cx: &mut ViewContext<'_, Self> )
pub fn selected_entry<'a>( &self, cx: &'a AppContext ) -> Option<(&'a Worktree, &'a Entry)>
Trait Implementations§
source§impl FocusableView for ProjectPanel
impl FocusableView for ProjectPanel
fn focus_handle(&self, _cx: &AppContext) -> FocusHandle
source§impl Panel for ProjectPanel
impl Panel for ProjectPanel
fn position(&self, cx: &WindowContext<'_>) -> DockPosition
fn position_is_valid(&self, position: 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 icon(&self, _: &WindowContext<'_>) -> Option<Icon>
fn toggle_action(&self) -> Box<dyn Action>
fn has_focus(&self, _: &WindowContext<'_>) -> bool
fn persistent_name() -> &'static str
fn icon_label(&self, _: &WindowContext<'_>) -> Option<String>
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>)
source§impl Render for ProjectPanel
impl Render for ProjectPanel
impl EventEmitter<Event> for ProjectPanel
impl EventEmitter<PanelEvent> for ProjectPanel
Auto Trait Implementations§
impl !RefUnwindSafe for ProjectPanel
impl !Send for ProjectPanel
impl !Sync for ProjectPanel
impl Unpin for ProjectPanel
impl !UnwindSafe for ProjectPanel
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