|
libgaminggear
|
Typedefs | |
| typedef struct _GaminggearScreenNotificator | GaminggearScreenNotificator |
| typedef struct _GaminggearScreenNotification | GaminggearScreenNotification |
Functions | |
| GaminggearScreenNotificator * | gaminggear_screen_notificator_init (gchar const *app_name, gchar const *icon) |
| Initializes an screen notificator. More... | |
| void | gaminggear_screen_notificator_deinit (GaminggearScreenNotificator *notificator) |
| Frees an existing notificator. More... | |
| GaminggearScreenNotification * | gaminggear_screen_notification_new (GaminggearScreenNotificator *notificator) |
| Create new notification. More... | |
| void | gaminggear_screen_notification_free (GaminggearScreenNotification *notification) |
| Frees an existing notification. More... | |
| gboolean | gaminggear_screen_notification_update (GaminggearScreenNotification *notification, gchar const *format,...) |
| Show notification. More... | |
| gboolean | gaminggear_screen_notification_update_v (GaminggearScreenNotification *notification, gchar const *format, va_list args) |
| Show notification. More... | |
| gboolean | gaminggear_screen_notification_cancel (GaminggearScreenNotification *notification) |
| Cancel a running notification. More... | |
| typedef struct _GaminggearScreenNotification GaminggearScreenNotification |
| typedef struct _GaminggearScreenNotificator GaminggearScreenNotificator |
| gboolean gaminggear_screen_notification_cancel | ( | GaminggearScreenNotification * | notification | ) |
Cancel a running notification.
| notification | Notification to be cancelled. |
| bool | TRUE on success, else FALSE. |
| void gaminggear_screen_notification_free | ( | GaminggearScreenNotification * | notification | ) |
Frees an existing notification.
| notification | The notification to be freed. |
| GaminggearScreenNotification* gaminggear_screen_notification_new | ( | GaminggearScreenNotificator * | notificator | ) |
Create new notification.
| notificator | A notificator. |
| notification | A new notification to be freed with gaminggear_screen_notification_free(). |
| gboolean gaminggear_screen_notification_update | ( | GaminggearScreenNotification * | notification, |
| gchar const * | format, | ||
| ... | |||
| ) |
Show notification.
If this notification is already visible its content is updated.
| notification | The notification to be updated. |
| format | A printf() compatible format string. |
| ... | The arguments to be inserted in the output. |
| bool | TRUE on success, else FALSE. |
| gboolean gaminggear_screen_notification_update_v | ( | GaminggearScreenNotification * | notification, |
| gchar const * | format, | ||
| va_list | args | ||
| ) |
Show notification.
If this notification is already visible its content is updated.
| notification | The notification to be updated. |
| format | A printf() compatible format string. |
| args | The arguments to be inserted in the output. |
| bool | TRUE on success, else FALSE. |
| void gaminggear_screen_notificator_deinit | ( | GaminggearScreenNotificator * | notificator | ) |
Frees an existing notificator.
| notificator | The notificator to be freed. |
| GaminggearScreenNotificator* gaminggear_screen_notificator_init | ( | gchar const * | app_name, |
| gchar const * | icon | ||
| ) |
Initializes an screen notificator.
The nomenclature init/deinit means there is only one instance of this object supported by an application.
| app_name | The name of the binary. |
| icon | The name of the icon to be shown in notification. |
| notificator | A new notificator object to be freed with gaminggear_screen_notificator_deinit() or NULL on error. |
1.8.13