TabView
Category | refcounted |
Type | hime_tab_view_t |
Inherits | View |
Multi-page view with tabs.
Constructors
hime_tab_view_t hime_tab_view_create()
Create a new TabView.
Return
hime_tab_view_t
Methods
void hime_tab_view_add_page(self, title, view)
Add view
as a new page with title
.
Parameters
hime_tab_view_t
selfconst char16_t*
titlehime_view_t
view
Return
void
void hime_tab_view_add_page_at(self, title, view, index)
Add view
as a new page with title
at index
.
Parameters
hime_tab_view_t
selfconst char16_t*
titlehime_view_t
viewsize_t
index
Return
void
size_t hime_tab_view_page_count(self)
Return the count of pages in this view.
Parameters
Return
size_t
hime_view_t hime_tab_view_page_at(self, index)
Return the view of page at index
.
Parameters
hime_tab_view_t
selfsize_t
index
Return
hime_view_t
void hime_tab_view_select_page_at(self, index)
Select the page at index
.
Parameters
hime_tab_view_t
selfsize_t
index
Return
void
size_t hime_tab_view_get_selected_page_index(self)
Return the index of selected page.
Parameters
Return
size_t
hime_view_t hime_tab_view_get_selected_page(self)
Return the view of selected page.
Parameters
Return
hime_view_t