Struct workspace2::pane_group::PaneGroup
source · pub struct PaneGroup { /* private fields */ }
Implementations§
source§impl PaneGroup
impl PaneGroup
pub fn new(pane: View<Pane>) -> Self
pub fn split( &mut self, old_pane: &View<Pane>, new_pane: &View<Pane>, direction: SplitDirection ) -> Result<()>
pub fn bounding_box_for_pane(&self, pane: &View<Pane>) -> Option<Bounds<Pixels>>
pub fn pane_at_pixel_position( &self, coordinate: Point<Pixels> ) -> Option<&View<Pane>>
sourcepub fn remove(&mut self, pane: &View<Pane>) -> Result<bool>
pub fn remove(&mut self, pane: &View<Pane>) -> Result<bool>
Returns:
- Ok(true) if it found and removed a pane
- Ok(false) if it found but did not remove the pane
- Err(_) if it did not find the pane
pub fn swap(&mut self, from: &View<Pane>, to: &View<Pane>)
Trait Implementations§
source§impl PartialEq<PaneGroup> for PaneGroup
impl PartialEq<PaneGroup> for PaneGroup
impl StructuralPartialEq for PaneGroup
Auto Trait Implementations§
impl !RefUnwindSafe for PaneGroup
impl Send for PaneGroup
impl Sync for PaneGroup
impl Unpin for PaneGroup
impl !UnwindSafe for PaneGroup
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