#include "types.h"
#include <gtk/gtk.h>
Go to the source code of this file.
Functions |
void | girara_tabs_enable (girara_session_t *session) |
girara_tab_t * | girara_tab_new (girara_session_t *session, const char *title, GtkWidget *widget, bool next_to_current, void *data) |
void | girara_tab_remove (girara_session_t *session, girara_tab_t *tab) |
girara_tab_t * | girara_tab_get (girara_session_t *session, unsigned int index) |
int | girara_get_number_of_tabs (girara_session_t *session) |
void | girara_tab_update (girara_session_t *session) |
girara_tab_t * | girara_tab_current_get (girara_session_t *session) |
void | girara_tab_current_set (girara_session_t *session, girara_tab_t *tab) |
void | girara_tab_title_set (girara_tab_t *tab, const char *title) |
const char * | girara_tab_title_get (girara_tab_t *tab) |
int | girara_tab_position_get (girara_session_t *session, girara_tab_t *tab) |
void | girara_tab_position_set (girara_session_t *session, girara_tab_t *tab, unsigned int position) |
Function Documentation
int girara_get_number_of_tabs |
( |
girara_session_t * |
session | ) |
|
Returns the number of tabs
- Parameters:
-
session | The girara session |
- Returns:
- The number of tabs
Definition at line 133 of file tabs.c.
girara_tab_t* girara_tab_current_get |
( |
girara_session_t * |
session | ) |
|
Returns the current tab
- Parameters:
-
session | The girara session |
- Returns:
- The current tab or NULL if an error occured
Definition at line 174 of file tabs.c.
void girara_tab_current_set |
( |
girara_session_t * |
session, |
|
|
girara_tab_t * |
tab |
|
) |
| |
Sets the current tab
- Parameters:
-
session | The girara session |
tab | The new current tab |
Definition at line 191 of file tabs.c.
girara_tab_t* girara_tab_get |
( |
girara_session_t * |
session, |
|
|
unsigned int |
index |
|
) |
| |
Returns the tab at the given index
- Parameters:
-
session | The girara session |
index | Index of the tab |
- Returns:
- The tab object or NULL if an error occured
Definition at line 121 of file tabs.c.
girara_tab_t* girara_tab_new |
( |
girara_session_t * |
session, |
|
|
const char * |
title, |
|
|
GtkWidget * |
widget, |
|
|
bool |
next_to_current, |
|
|
void * |
data |
|
) |
| |
Creates and adds a new tab to the tab view
- Parameters:
-
session | The girara session |
title | Title of the tab (optional) |
widget | Displayed widget |
next_to_current | Tab should be created right next to the current one |
data | Custom data |
- Returns:
- A new tab object or NULL if an error occured
Definition at line 40 of file tabs.c.
int girara_tab_position_get |
( |
girara_session_t * |
session, |
|
|
girara_tab_t * |
tab |
|
) |
| |
Returns the position of the tab
- Parameters:
-
session | Girara session |
tab | The tab |
- Returns:
- The id of the tab or -1 if an error occured
Definition at line 234 of file tabs.c.
void girara_tab_position_set |
( |
girara_session_t * |
session, |
|
|
girara_tab_t * |
tab, |
|
|
unsigned int |
position |
|
) |
| |
Sets the new position of the tab
- Parameters:
-
session | Girara session |
tab | The tab |
position | The new position |
Definition at line 245 of file tabs.c.
void girara_tab_remove |
( |
girara_session_t * |
session, |
|
|
girara_tab_t * |
tab |
|
) |
| |
Removes and destroys a tab from the tab view
- Parameters:
-
session | The girara session |
tab | Tab |
Definition at line 94 of file tabs.c.
const char* girara_tab_title_get |
( |
girara_tab_t * |
tab | ) |
|
Returns the title of the tab
- Parameters:
-
- Returns:
- The title of the tab or NULL if an error occured
Definition at line 224 of file tabs.c.
void girara_tab_title_set |
( |
girara_tab_t * |
tab, |
|
|
const char * |
title |
|
) |
| |
Sets the shown title of the tab
- Parameters:
-
tab | The tab |
title | The new title |
Definition at line 208 of file tabs.c.
void girara_tab_update |
( |
girara_session_t * |
session | ) |
|
Updates the color and states of all tabs
- Parameters:
-
session | The girara session |
Definition at line 143 of file tabs.c.
void girara_tabs_enable |
( |
girara_session_t * |
session | ) |
|
Enables the tab view. If girara_set_view is used, the tab bar will automatically vanish and girara_tabs_enable has to be called another time to re-enable it again.
- Parameters:
-
session | The girara session |
Definition at line 24 of file tabs.c.