X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fwindow.h;h=1fb98ce2a7cbc6dac20c7b6e9a2ab8f6b1a135ae;hb=5292406311d31682a850baf059cab01a6f0262b2;hp=4e705f2d69822bbf14a510b6691974d7e237a151;hpb=199d247c0c2155c1c8fca97fcc6087efdd29e482;p=rodin%2Fchimara.git diff --git a/src/window.h b/src/window.h index 4e705f2..1fb98ce 100644 --- a/src/window.h +++ b/src/window.h @@ -6,6 +6,8 @@ #include "stream.h" #include "error.h" +#include "callbacks.h" +#include "input.h" enum InputRequestType { @@ -18,17 +20,22 @@ enum InputRequestType struct glk_window_struct { - GNode *window_node; - glui32 rock; - glui32 window_type; + /* Pointer to the node in the global tree that contains this window */ + GNode *window_node; + /* Window parameters */ + glui32 type; GtkWidget *widget; strid_t window_stream; strid_t echo_stream; + /* Input request stuff */ enum InputRequestType input_request_type; gchar *line_input_buffer; glui32 *line_input_buffer_unicode; glui32 line_input_buffer_max_len; + gboolean mouse_input_requested; + gulong keypress_handler; + gulong insert_text_handler; }; #endif