[−][src]Struct makepad_widget::Tab
Fields
bg: Quad
text: Text
tab_close: TabClose
label: String
is_closeable: bool
animator: Animator
z: f32
abs_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
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]
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,