[−][src]Struct makepad_widget::TabControl
Fields
tabs_view: ScrollView
tabs: Elements<usize, Tab, Tab>
drag_tab_view: View
drag_tab: Tab
page_view: View
hover: Quad
tab_fill: Quad
animator: 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]
&mut self,
cx: &mut Cx,
event: &mut Event
) -> TabControlEvent
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]
&mut self,
cx: &mut Cx,
label: &str,
selected: bool,
closeable: bool
) -> &mut Tab
pub fn draw_tab(
&mut self,
cx: &mut Cx,
label: &str,
selected: bool,
closeable: bool
)
[src]
&mut self,
cx: &mut Cx,
label: &str,
selected: bool,
closeable: bool
)
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]
fn clone(&self) -> TabControl
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl Send for TabControl
impl Sync for TabControl
impl Unpin for TabControl
impl UnwindSafe for TabControl
impl RefUnwindSafe for TabControl
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,