girara
Typedefs | Functions
statusbar.h File Reference
#include "macros.h"
#include "types.h"
#include <gtk/gtk.h>
Include dependency graph for statusbar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef bool(* girara_statusbar_event_t) (GtkWidget *widget, GdkEvent *event, girara_session_t *session)
 

Functions

girara_statusbar_item_t * girara_statusbar_item_add (girara_session_t *session, bool expand, bool fill, bool left, girara_statusbar_event_t callback)
 
bool girara_statusbar_item_set_text (girara_session_t *session, girara_statusbar_item_t *item, const char *text)
 

Typedef Documentation

typedef bool(* girara_statusbar_event_t) (GtkWidget *widget, GdkEvent *event, girara_session_t *session)

Function declaration for a statusbar event callback

Parameters
widgetThe statusbar item
eventThe occured event
sessionThe current girara session
Returns
TRUE No error occured
FALSE Error occured (and forward event)

Definition at line 19 of file statusbar.h.

Function Documentation

girara_statusbar_item_t* girara_statusbar_item_add ( girara_session_t *  session,
bool  expand,
bool  fill,
bool  left,
girara_statusbar_event_t  callback 
)

Creates an statusbar item

Parameters
sessionThe used girara session
expandExpand attribute
fillFill attribute
leftTrue if it should be aligned to the left
callbackFunction that gets executed when an event occurs
Returns
The created statusbar item
NULL An error occured
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
sessionThe used girara session
itemThe statusbar item
textText that should be displayed
Returns
TRUE No error occured
FALSE An error occured