[−][src]Struct makepad_widget::Dock
Fields
splitters: Elements<usize, Splitter, Splitter>
tab_controls: Elements<usize, TabControl, TabControl>
drop_size: Vec2
drop_quad: Quad
drop_quad_view: View
_drag_move: Option<FingerMoveEvent>
_drag_end: Option<DockDragEnd<TItem>>
_close_tab: Option<DockTabIdent>
_tab_select: Option<(usize, usize)>
_tweening_quad: Option<(usize, Rect, f32)>
Methods
impl<TItem> Dock<TItem> where
TItem: Clone,
[src]
TItem: Clone,
pub fn proto(cx: &mut Cx) -> Dock<TItem>
[src]
pub fn dock_drag_out(&mut self, cx: &mut Cx)
[src]
pub fn dock_drag_move(&mut self, cx: &mut Cx, fe: FingerMoveEvent)
[src]
pub fn dock_drag_cancel(&mut self, cx: &mut Cx)
[src]
pub fn dock_drag_end(
&mut self,
_cx: &mut Cx,
fe: FingerUpEvent,
new_items: Vec<DockTab<TItem>>
)
[src]
&mut self,
_cx: &mut Cx,
fe: FingerUpEvent,
new_items: Vec<DockTab<TItem>>
)
pub fn handle_dock(
&mut self,
cx: &mut Cx,
_event: &mut Event,
dock_items: &mut DockItem<TItem>
) -> DockEvent
[src]
&mut self,
cx: &mut Cx,
_event: &mut Event,
dock_items: &mut DockItem<TItem>
) -> DockEvent
pub fn draw_dock(&mut self, cx: &mut Cx)
[src]
pub fn walker<'a>(
&'a mut self,
dock_items: &'a mut DockItem<TItem>
) -> DockWalker<'a, TItem>
[src]
&'a mut self,
dock_items: &'a mut DockItem<TItem>
) -> DockWalker<'a, TItem>
Trait Implementations
Auto Trait Implementations
impl<TItem> Send for Dock<TItem> where
TItem: Send,
TItem: Send,
impl<TItem> Sync for Dock<TItem> where
TItem: Sync,
TItem: Sync,
impl<TItem> Unpin for Dock<TItem> where
TItem: Unpin,
TItem: Unpin,
impl<TItem> UnwindSafe for Dock<TItem> where
TItem: UnwindSafe,
TItem: UnwindSafe,
impl<TItem> RefUnwindSafe for Dock<TItem> where
TItem: RefUnwindSafe,
TItem: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,