pub struct DockCallbacks {
pub on_popout: Option<Rc<dyn Fn(PanelId)>>,
pub on_close: Option<Rc<dyn Fn(PanelId)>>,
}Fields§
§on_popout: Option<Rc<dyn Fn(PanelId)>>Optional popout handler. If provided, the docking system will call it when a panel is dropped on the “float” target or when user taps popout.
on_close: Option<Rc<dyn Fn(PanelId)>>Optional close handler (tab close button).
Trait Implementations§
Source§impl Clone for DockCallbacks
impl Clone for DockCallbacks
Auto Trait Implementations§
impl !RefUnwindSafe for DockCallbacks
impl !Send for DockCallbacks
impl !Sync for DockCallbacks
impl !UnwindSafe for DockCallbacks
impl Freeze for DockCallbacks
impl Unpin for DockCallbacks
impl UnsafeUnpin for DockCallbacks
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