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
Source§fn clone(&self) -> DockCallbacks
fn clone(&self) -> DockCallbacks
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DockCallbacks
impl Default for DockCallbacks
Source§fn default() -> DockCallbacks
fn default() -> DockCallbacks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DockCallbacks
impl !RefUnwindSafe for DockCallbacks
impl !Send for DockCallbacks
impl !Sync for DockCallbacks
impl Unpin for DockCallbacks
impl UnsafeUnpin for DockCallbacks
impl !UnwindSafe 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