#include "types.h"
#include <gtk/gtk.h>
Go to the source code of this file.
typedef bool(* girara_statusbar_event_t)(GtkWidget *widget, GdkEvent *event, girara_session_t *session) |
Function declaration for a statusbar event callback
- Parameters
-
widget | The statusbar item |
event | The occured event |
session | The current girara session |
- Returns
- TRUE No error occured
-
FALSE Error occured (and forward event)
Definition at line 18 of file statusbar.h.
Creates an statusbar item
- Parameters
-
session | The used girara session |
expand | Expand attribute |
fill | Fill attribute |
left | True if it should be aligned to the left |
callback | Function that gets executed when an event occurs |
- Returns
- The created statusbar item
-
NULL An error occured
Definition at line 14 of file statusbar.c.
bool girara_statusbar_item_set_foreground |
( |
girara_session_t * |
session, |
|
|
girara_statusbar_item_t * |
item, |
|
|
const char * |
color |
|
) |
| |
Sets the foreground color of an statusbar item
- Parameters
-
session | The used girara session |
item | The statusbar item |
color | The color code |
- Returns
- TRUE No error occured
-
FALSE An error occured
Definition at line 81 of file statusbar.c.
bool girara_statusbar_item_set_text |
( |
girara_session_t * |
session, |
|
|
girara_statusbar_item_t * |
item, |
|
|
const char * |
text |
|
) |
| |
Sets the shown text of an statusbar item
- Parameters
-
session | The used girara session |
item | The statusbar item |
text | Text that should be displayed |
- Returns
- TRUE No error occured
-
FALSE An error occured
Definition at line 68 of file statusbar.c.
bool girara_statusbar_set_background |
( |
girara_session_t * |
session, |
|
|
const char * |
color |
|
) |
| |
Sets the background color of the statusbar
- Parameters
-
session | The used girara session |
color | The color code |
- Returns
- TRUE No error occured
-
FALSE An error occured
Definition at line 101 of file statusbar.c.