[][src]Struct makepad_widget::Dock

pub struct Dock<TItem> where
    TItem: Clone
{ pub splitters: Elements<usize, Splitter, Splitter>, pub tab_controls: Elements<usize, TabControl, TabControl>, pub drop_size: Vec2, pub drop_quad: Quad, pub drop_quad_view: View, pub _drag_move: Option<FingerMoveEvent>, pub _drag_end: Option<DockDragEnd<TItem>>, pub _close_tab: Option<DockTabIdent>, pub _tab_select: Option<(usize, usize)>, pub _tweening_quad: Option<(usize, Rect, f32)>, }

Fields

splitters: Elements<usize, Splitter, Splitter>tab_controls: Elements<usize, TabControl, TabControl>drop_size: Vec2drop_quad: Quaddrop_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]

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]

pub fn handle_dock(
    &mut self,
    cx: &mut Cx,
    _event: &mut Event,
    dock_items: &mut DockItem<TItem>
) -> DockEvent
[src]

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]

Trait Implementations

impl<TItem: Clone> Clone for Dock<TItem> where
    TItem: Clone
[src]

Auto Trait Implementations

impl<TItem> Send for Dock<TItem> where
    TItem: Send

impl<TItem> Sync for Dock<TItem> where
    TItem: Sync

impl<TItem> Unpin for Dock<TItem> where
    TItem: Unpin

impl<TItem> UnwindSafe for Dock<TItem> where
    TItem: UnwindSafe

impl<TItem> RefUnwindSafe for Dock<TItem> where
    TItem: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]