X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Finput.h;h=54c27e748fb4830b14e6e2c4a95232f232a19fbf;hb=refs%2Fheads%2Fgtk3;hp=e4080fd285118b77f0be9fd15c93be7e3e262156;hpb=78652af29a2f39e626febd5f4213da57d3a13901;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/input.h b/libchimara/input.h index e4080fd..54c27e7 100644 --- a/libchimara/input.h +++ b/libchimara/input.h @@ -8,9 +8,18 @@ #include "window.h" #include "event.h" +#include "strio.h" -G_GNUC_INTERNAL gboolean on_window_key_press_event(GtkWidget *widget, GdkEventKey *event, winid_t win); +G_GNUC_INTERNAL gboolean on_shutdown_key_press_event(GtkWidget *widget, GdkEventKey *event, winid_t win); +G_GNUC_INTERNAL gboolean on_char_input_key_press_event(GtkWidget *widget, GdkEventKey *event, winid_t win); +G_GNUC_INTERNAL gboolean on_line_input_key_press_event(GtkWidget *widget, GdkEventKey *event, winid_t win); G_GNUC_INTERNAL void after_window_insert_text(GtkTextBuffer *textbuffer, GtkTextIter *location, gchar *text, gint len, winid_t win); G_GNUC_INTERNAL void on_input_entry_activate(GtkEntry *input_entry, winid_t win); +G_GNUC_INTERNAL gboolean on_input_entry_key_press_event(GtkEntry *input_entry, GdkEventKey *event, winid_t win); +G_GNUC_INTERNAL void on_input_entry_changed(GtkEditable *editable, winid_t win); +G_GNUC_INTERNAL glui32 keyval_to_glk_keycode(guint keyval, gboolean unicode); +G_GNUC_INTERNAL void force_char_input_from_queue(winid_t win, event_t *event); +G_GNUC_INTERNAL void force_line_input_from_queue(winid_t win, event_t *event); +G_GNUC_INTERNAL gboolean is_valid_line_terminator(glui32 keycode); #endif