preliminary support for splitting of windows. Does not respect window sizes yet....
[rodin/chimara.git] / src / window.h
index 728a381079c6f0f8cd302d048abcaad19b958b15..3395bb482296225c9d663da43a6f6ac228c826d4 100644 (file)
@@ -25,8 +25,15 @@ struct glk_window_struct
        GNode *window_node;
        /* Window parameters */
        glui32 type;
-       GtkWidget *widget; /* actual widget that does stuff */
-       GtkWidget *frame; /* container child */
+       /* "widget" is the actual widget with the window's functionality */
+       GtkWidget *widget;
+       /* "frame" is the widget that is the child of the ChimaraGlk container, such 
+       as a scroll window. It may be the same as "widget". */
+       GtkWidget *frame;
+       /* Width and height of the window's size units, in pixels */
+       int unit_width;
+       int unit_height;
+       /* Streams associated with the window */
        strid_t window_stream;
        strid_t echo_stream;
        /* Input request stuff */
@@ -35,6 +42,7 @@ struct glk_window_struct
        glui32 *line_input_buffer_unicode;
        glui32 line_input_buffer_max_len;
        gboolean mouse_input_requested;
+       /* Signal handlers */
        gulong keypress_handler;
        gulong insert_text_handler;
 };