[][src]Struct makepad_widget::TabControl

pub struct TabControl {
    pub tabs_view: ScrollView,
    pub tabs: Elements<usize, Tab, Tab>,
    pub drag_tab_view: View,
    pub drag_tab: Tab,
    pub page_view: View,
    pub hover: Quad,
    pub tab_fill: Quad,
    pub animator: Animator,
    pub _dragging_tab: Option<(FingerMoveEvent, usize)>,
    pub _tab_id_alloc: usize,
    pub _tab_now_selected: Option<usize>,
    pub _tab_last_selected: Option<usize>,
    pub _focussed: bool,
}

Fields

tabs_view: ScrollViewtabs: Elements<usize, Tab, Tab>drag_tab_view: Viewdrag_tab: Tabpage_view: Viewhover: Quadtab_fill: Quadanimator: Animator_dragging_tab: Option<(FingerMoveEvent, usize)>_tab_id_alloc: usize_tab_now_selected: Option<usize>_tab_last_selected: Option<usize>_focussed: bool

Methods

impl TabControl[src]

pub fn proto(cx: &mut Cx) -> Self[src]

pub fn handle_tab_control(
    &mut self,
    cx: &mut Cx,
    event: &mut Event
) -> TabControlEvent
[src]

pub fn tab_control_style() -> StyleId[src]

pub fn style(cx: &mut Cx, opt: &StyleOptions)[src]

pub fn get_tab_rects(&mut self, cx: &Cx) -> Vec<Rect>[src]

pub fn set_tab_control_focus(&mut self, cx: &mut Cx, focus: bool)[src]

pub fn get_tabs_view_rect(&mut self, cx: &Cx) -> Rect[src]

pub fn get_content_drop_rect(&mut self, cx: &Cx) -> Rect[src]

pub fn begin_tabs(&mut self, cx: &mut Cx) -> ViewRedraw[src]

pub fn get_draw_tab(
    &mut self,
    cx: &mut Cx,
    label: &str,
    selected: bool,
    closeable: bool
) -> &mut Tab
[src]

pub fn draw_tab(
    &mut self,
    cx: &mut Cx,
    label: &str,
    selected: bool,
    closeable: bool
)
[src]

pub fn end_tabs(&mut self, cx: &mut Cx)[src]

pub fn begin_tab_page(&mut self, cx: &mut Cx) -> ViewRedraw[src]

pub fn end_tab_page(&mut self, cx: &mut Cx)[src]

Trait Implementations

impl Clone for TabControl[src]

Auto Trait Implementations

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]