Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_notebook.c File Reference


Detailed Description


Functions

Etk_Widget * etk_notebook_new (void)
 Creates a new notebook widget.
int etk_notebook_page_prepend (Etk_Notebook *notebook, const char *tab_label, Etk_Widget *page_child)
 Creates a new page and prepends it to the notebook.
int etk_notebook_page_append (Etk_Notebook *notebook, const char *tab_label, Etk_Widget *page_child)
 Creates a new page and appends it to the notebook.
int etk_notebook_page_insert (Etk_Notebook *notebook, const char *tab_label, Etk_Widget *page_child, int position)
 Creates a new page and inserts it to the notebook at a given position.
Etk_Widget * etk_notebook_page_remove (Etk_Notebook *notebook, int page_num)
 Removes from the notebook the page corresponding to the index. The child of the widget will just be unpacked, not destroyed.
int etk_notebook_num_pages_get (Etk_Notebook *notebook)
 Gets the numbers of pages of the notebook.
void etk_notebook_current_page_set (Etk_Notebook *notebook, int page_num)
 Sets the current page of the notebook.
int etk_notebook_current_page_get (Etk_Notebook *notebook)
 Gets the index of the current page of the notebook.
int etk_notebook_page_index_get (Etk_Notebook *notebook, Etk_Widget *child)
 Gets the index of the page containing the specified widget.
int etk_notebook_page_prev (Etk_Notebook *notebook)
 Switches to the previous page of the notebook.
int etk_notebook_page_next (Etk_Notebook *notebook)
 Switches to the next page of the notebook.
void etk_notebook_page_tab_label_set (Etk_Notebook *notebook, int page_num, const char *tab_label)
 Sets the label of a tab of the notebook.
const char * etk_notebook_page_tab_label_get (Etk_Notebook *notebook, int page_num)
 Gets the label of a tab of the notebook.
void etk_notebook_page_tab_widget_set (Etk_Notebook *notebook, int page_num, Etk_Widget *tab_widget)
 Sets the child of the tab of a notebook's page For example, you can set a hbox containing an icon, a text label and a close button.
Etk_Widget * etk_notebook_page_tab_widget_get (Etk_Notebook *notebook, int page_num)
 Gets the child of the tab of a notebook's page.
void etk_notebook_page_child_set (Etk_Notebook *notebook, int page_num, Etk_Widget *child)
 Sets the child of a page of the notebook. This widget will be shown when the page is set as the current one.
Etk_Widget * etk_notebook_page_child_get (Etk_Notebook *notebook, int page_num)
 Gets the child of a page of the notebook.
void etk_notebook_tabs_visible_set (Etk_Notebook *notebook, Etk_Bool tabs_visible)
 Sets whether the tab-bar of the notebook should be visible or not.
Etk_Bool etk_notebook_tabs_visible_get (Etk_Notebook *notebook)
 Gets whether or not the tab-bar is visible.