pub struct DockingArea<M>where
M: DockingModel,{ /* private fields */ }Implementations§
Source§impl<M> DockingArea<M>where
M: DockingModel,
impl<M> DockingArea<M>where
M: DockingModel,
pub fn new( controller: impl Into<Writable<M>>, render_content: impl Into<Callback<ContentContext<<M as DockingModel>::TabId, <M as DockingModel>::PanelId>, Element>>, render_tab: impl Into<Callback<TabContext<<M as DockingModel>::TabId>, Element>>, render_drag: impl Into<Callback<<M as DockingModel>::TabId, Element>>, render_tab_bar: impl Into<Callback<TabBarContext<<M as DockingModel>::PanelId>, Element>>, ) -> DockingArea<M>
Sourcepub fn preview_element(self, element: impl IntoElement) -> DockingArea<M>
pub fn preview_element(self, element: impl IntoElement) -> DockingArea<M>
Preview shown over the drop target while dragging.
Trait Implementations§
Source§impl<M> Clone for DockingArea<M>where
M: DockingModel,
impl<M> Clone for DockingArea<M>where
M: DockingModel,
Source§fn clone(&self) -> DockingArea<M>
fn clone(&self) -> DockingArea<M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M> Component for DockingArea<M>where
M: DockingModel,
impl<M> Component for DockingArea<M>where
M: DockingModel,
fn render(&self) -> impl IntoElement
fn render_key(&self) -> DiffKey
Source§impl<M> KeyExt for DockingArea<M>where
M: DockingModel,
impl<M> KeyExt for DockingArea<M>where
M: DockingModel,
Source§impl<M> PartialEq for DockingArea<M>where
M: DockingModel,
impl<M> PartialEq for DockingArea<M>where
M: DockingModel,
Auto Trait Implementations§
impl<M> Freeze for DockingArea<M>
impl<M> !RefUnwindSafe for DockingArea<M>
impl<M> !Send for DockingArea<M>
impl<M> !Sync for DockingArea<M>
impl<M> Unpin for DockingArea<M>
impl<M> UnsafeUnpin for DockingArea<M>
impl<M> !UnwindSafe for DockingArea<M>
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> ComponentKey for Twhere
T: Component,
impl<T> ComponentKey for Twhere
T: Component,
fn default_key(&self) -> DiffKey
§impl<T> ComponentProps for T
impl<T> ComponentProps for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more