#include "types.h"
#include "macros.h"
#include "callbacks.h"
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
Go to the source code of this file.
|
girara_session_t * | girara_session_create () |
|
bool | girara_session_init (girara_session_t *session, const char *appname) |
|
bool | girara_session_destroy (girara_session_t *session) |
|
bool | girara_set_view (girara_session_t *session, GtkWidget *widget) |
|
char * | girara_buffer_get (girara_session_t *session) |
|
void | girara_libnotify (girara_session_t *session, const char *summary, const char *body) |
|
void | girara_notify (girara_session_t *session, int level, const char *format,...) GIRARA_PRINTF(3 |
|
void void | girara_dialog (girara_session_t *session, const char *dialog, bool invisible, girara_callback_inputbar_key_press_event_t key_press_event, girara_callback_inputbar_activate_t activate_event, void *data) |
|
girara_mode_t | girara_mode_add (girara_session_t *session, const char *name) |
|
void | girara_mode_set (girara_session_t *session, girara_mode_t mode) |
|
girara_mode_t | girara_mode_get (girara_session_t *session) |
|
bool | girara_set_window_title (girara_session_t *session, const char *name) |
|
bool | girara_set_window_icon (girara_session_t *session, const char *name) |
|
girara_list_t * | girara_get_command_history (girara_session_t *session) |
|
GiraraTemplate * | girara_session_get_template (girara_session_t *session) |
|
char* girara_buffer_get |
( |
girara_session_t * |
session | ) |
|
Returns a copy of the buffer
- Parameters
-
session | The used girara session |
- Returns
- Copy of the current buffer
Creates a girara dialog
- Parameters
-
session | The girara session |
dialog | The dialog message |
invisible | Sets the input visibility |
key_press_event | Callback function to a custom key press event handler |
activate_event | Callback function to a custom activate event handler |
data | Custom data that is passed to the callback functions |
girara_list_t* girara_get_command_history |
( |
girara_session_t * |
session | ) |
|
Returns the command history
- Parameters
-
session | The used girara session |
- Returns
- The command history (list of strings) or NULL
void girara_libnotify |
( |
girara_session_t * |
session, |
|
|
const char * |
summary, |
|
|
const char * |
body |
|
) |
| |
girara_mode_t girara_mode_add |
( |
girara_session_t * |
session, |
|
|
const char * |
name |
|
) |
| |
Adds a new mode by its string identifier
- Parameters
-
session | The used girara session |
name | The string identifier used in configs/inputbar etc to refer by |
- Returns
- A newly defined girara_mode_t associated with name
Returns the current mode
- Parameters
-
session | The used girara session |
- Returns
- The current mode
void girara_mode_set |
( |
girara_session_t * |
session, |
|
|
girara_mode_t |
mode |
|
) |
| |
Sets the current mode
- Parameters
-
session | The used girara session |
mode | The new mode |
void girara_notify |
( |
girara_session_t * |
session, |
|
|
int |
level, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Displays a notification for the user. It is possible to pass GIRARA_INFO, GIRARA_WARNING or GIRARA_ERROR as a notification level.
- Parameters
-
session | The girara session |
level | The level |
format | String format |
... | |
girara_session_t* girara_session_create |
( |
| ) |
|
Creates a girara session
- Returns
- A valid session object
-
NULL when an error occured
bool girara_session_destroy |
( |
girara_session_t * |
session | ) |
|
Destroys an girara session
- Parameters
-
session | The used girara session |
- Returns
- TRUE No error occured
-
FALSE An error occured
GiraraTemplate* girara_session_get_template |
( |
girara_session_t * |
session | ) |
|
Returns the internal template object to apply custom theming options
- Parameters
-
session | The girara session |
- Returns
- GiraraTemplate object
bool girara_session_init |
( |
girara_session_t * |
session, |
|
|
const char * |
appname |
|
) |
| |
Initializes an girara session
- Parameters
-
session | The used girara session |
appname | Name of the session (can be NULL) |
- Returns
- TRUE No error occured
-
FALSE An error occured
bool girara_set_view |
( |
girara_session_t * |
session, |
|
|
GtkWidget * |
widget |
|
) |
| |
Sets the view widget of girara
- Parameters
-
session | The used girara session |
widget | The widget that should be displayed |
- Returns
- TRUE No error occured
-
FALSE An error occured
bool girara_set_window_icon |
( |
girara_session_t * |
session, |
|
|
const char * |
name |
|
) |
| |
Set icon of the window
- Parameters
-
session | The used girara session |
name | the name of the themed icon |
- Returns
- true if no error occured
-
false if an error occured
bool girara_set_window_title |
( |
girara_session_t * |
session, |
|
|
const char * |
name |
|
) |
| |
Set name of the window title
- Parameters
-
session | The used girara session |
name | The new name of the session |
- Returns
- true if no error occured
-
false if an error occured