Een heleboel, relatief nutteloze dingen, zoals blank windows, en filerefs
[projects/chimara/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         glui32 rock;
22         /* Pointer to the node in the global tree that contains this window */
23         GNode *window_node;
24         /* Window parameters */
25         glui32 window_type;
26         GtkWidget *widget;
27         strid_t window_stream;
28         strid_t echo_stream;
29         /* Input request stuff */
30         enum InputRequestType input_request_type;
31         gchar *line_input_buffer;
32         glui32 *line_input_buffer_unicode;
33         glui32 line_input_buffer_max_len;
34         gboolean mouse_input_requested;
35 };
36
37 #endif