[][src]Struct makepad_widget::Tab

pub struct Tab {
    pub bg: Quad,
    pub text: Text,
    pub tab_close: TabClose,
    pub label: String,
    pub is_closeable: bool,
    pub animator: Animator,
    pub z: f32,
    pub abs_origin: Option<Vec2>,
    pub _is_selected: bool,
    pub _is_focussed: bool,
    pub _bg_area: Area,
    pub _bg_inst: Option<InstanceArea>,
    pub _text_area: Area,
    pub _close_anim_rect: Rect,
    pub _is_down: bool,
    pub _is_drag: bool,
}

Fields

bg: Quadtext: Texttab_close: TabCloselabel: Stringis_closeable: boolanimator: Animatorz: f32abs_origin: Option<Vec2>_is_selected: bool_is_focussed: bool_bg_area: Area_bg_inst: Option<InstanceArea>_text_area: Area_close_anim_rect: Rect_is_down: bool_is_drag: bool

Methods

impl Tab[src]

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

pub fn layout_bg() -> LayoutId[src]

pub fn text_style_title() -> TextStyleId[src]

pub fn instance_border_color() -> InstanceColor[src]

pub fn tab_closing() -> InstanceFloat[src]

pub fn shader_bg() -> ShaderId[src]

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

pub fn get_bg_color(&self, cx: &Cx) -> Color[src]

pub fn get_text_color(&self, cx: &Cx) -> Color[src]

pub fn anim_default(&self, cx: &Cx) -> Anim[src]

pub fn anim_over(&self, cx: &Cx) -> Anim[src]

pub fn anim_down(&self, cx: &Cx) -> Anim[src]

pub fn anim_close(&self, _cx: &Cx) -> Anim[src]

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

pub fn set_tab_selected(&mut self, cx: &mut Cx, selected: bool)[src]

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

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

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

pub fn begin_tab(&mut self, cx: &mut Cx) -> Result<(), ()>[src]

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

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

Trait Implementations

impl Clone for Tab[src]

Auto Trait Implementations

impl Send for Tab

impl Sync for Tab

impl Unpin for Tab

impl UnwindSafe for Tab

impl RefUnwindSafe for Tab

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]