#include <glib.h>
Go to the source code of this file.
Defines | |
#define | inputevt_remove(source) (g_source_remove(source)) |
#define | inputevt_timer() |
Typedefs | |
typedef void(* | inputevt_handler_t )(gpointer data, gint source, inputevt_cond_t condition) |
And the handler function type. | |
Enumerations | |
enum | inputevt_cond_t { INPUT_EVENT_R = 1 << 0, INPUT_EVENT_W = 1 << 1, INPUT_EVENT_EXCEPTION = 1 << 2, INPUT_EVENT_RX = ((guint) INPUT_EVENT_R | (guint) INPUT_EVENT_EXCEPTION), INPUT_EVENT_WX = ((guint) INPUT_EVENT_W | (guint) INPUT_EVENT_EXCEPTION), INPUT_EVENT_RW = ((guint) INPUT_EVENT_R | (guint) INPUT_EVENT_W), INPUT_EVENT_RWX = ((guint) INPUT_EVENT_RW | (guint) INPUT_EVENT_EXCEPTION) } |
This mimics the GDK input condition type. More... | |
Functions | |
void | inputevt_init (void) |
Performs module initialization. | |
void | inputevt_close (void) |
Performs module cleanup. | |
guint | inputevt_add (gint source, inputevt_cond_t condition, inputevt_handler_t handler, gpointer data) |
This emulates the GDK input interface. | |
const gchar * | inputevt_cond_to_string (inputevt_cond_t cond) |
|
|
|
|
|
And the handler function type.
|
|
This mimics the GDK input condition type.
|
|
This emulates the GDK input interface. A replacement for gdk_input_add(). Behaves exactly the same, except destroy notification has been removed (since gtkg does not use it). |
|
Performs module cleanup.
|
|
|
|
Performs module initialization.
|