pub struct TabControl {Show 13 fields
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: 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
Implementations§
Source§impl TabControl
impl TabControl
pub fn proto(cx: &mut Cx) -> Self
pub fn handle_tab_control( &mut self, cx: &mut Cx, event: &mut Event, ) -> TabControlEvent
pub fn tab_control_style() -> StyleId
pub fn style(cx: &mut Cx, opt: &StyleOptions)
pub fn get_tab_rects(&mut self, cx: &Cx) -> Vec<Rect>
pub fn set_tab_control_focus(&mut self, cx: &mut Cx, focus: bool)
pub fn get_tabs_view_rect(&mut self, cx: &Cx) -> Rect
pub fn get_content_drop_rect(&mut self, cx: &Cx) -> Rect
pub fn begin_tabs(&mut self, cx: &mut Cx) -> ViewRedraw
pub fn get_draw_tab( &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, )
pub fn end_tabs(&mut self, cx: &mut Cx)
pub fn begin_tab_page(&mut self, cx: &mut Cx) -> ViewRedraw
pub fn end_tab_page(&mut self, cx: &mut Cx)
Trait Implementations§
Source§impl Clone for TabControl
impl Clone for TabControl
Source§fn clone(&self) -> TabControl
fn clone(&self) -> TabControl
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TabControl
impl RefUnwindSafe for TabControl
impl Send for TabControl
impl Sync for TabControl
impl Unpin for TabControl
impl UnwindSafe for TabControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more