pub struct DockingArea<M: DockingModel> { /* private fields */ }Implementations§
Source§impl<M: DockingModel> DockingArea<M>
impl<M: DockingModel> DockingArea<M>
pub fn new( controller: impl Into<Writable<M>>, render_content: impl Into<Callback<ContentContext<M::TabId, M::PanelId>, Element>>, render_tab: impl Into<Callback<TabContext<M::TabId>, Element>>, render_drag: impl Into<Callback<M::TabId, Element>>, render_tab_bar: impl Into<Callback<TabBarContext<M::PanelId>, Element>>, ) -> Self
Sourcepub fn preview_element(self, element: impl IntoElement) -> Self
pub fn preview_element(self, element: impl IntoElement) -> Self
Preview shown over the drop target while dragging.
Trait Implementations§
Source§impl<M: DockingModel> Clone for DockingArea<M>
impl<M: DockingModel> Clone for DockingArea<M>
Source§impl<M: DockingModel> Component for DockingArea<M>
impl<M: DockingModel> Component for DockingArea<M>
Source§impl<M: DockingModel> KeyExt for DockingArea<M>
impl<M: DockingModel> KeyExt for DockingArea<M>
Source§impl<M: DockingModel> PartialEq for DockingArea<M>
impl<M: DockingModel> PartialEq for DockingArea<M>
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§
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> 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