4e705f2d69822bbf14a510b6691974d7e237a151
[rodin/chimara.git] / src / window.h
1 #ifndef WINDOW_H
2 #define WINDOW_H
3
4 #include <gtk/gtk.h>
5 #include "glk.h"
6
7 #include "stream.h"
8 #include "error.h"
9
10 enum InputRequestType
11 {
12         INPUT_REQUEST_NONE,
13         INPUT_REQUEST_CHARACTER,
14         INPUT_REQUEST_CHARACTER_UNICODE,
15         INPUT_REQUEST_LINE,
16         INPUT_REQUEST_LINE_UNICODE
17 };
18
19 struct glk_window_struct
20 {
21         GNode *window_node;
22
23         glui32 rock;
24         glui32 window_type;
25         GtkWidget *widget;
26         strid_t window_stream;
27         strid_t echo_stream;
28         enum InputRequestType input_request_type;
29         gchar *line_input_buffer;
30         glui32 *line_input_buffer_unicode;
31         glui32 line_input_buffer_max_len;
32 };
33
34 #endif