Got Gtk-Doc working. Now all the fancy /** comments before the functions
[rodin/chimara.git] / src / window.h
index 6f83744dcd5605e1003e3edebb2f4eb3ecc0e899..30fe53d8834b3d2237bd1c2c4205699d6c827a33 100644 (file)
@@ -18,8 +18,15 @@ enum InputRequestType
        INPUT_REQUEST_LINE_UNICODE
 };
 
+/**
+ * glk_window_struct:
+ *
+ * This is an opaque structure (see <link linkend="chimara-Opaque-Structures">
+ * Opaque Structures</link> and should not be accessed directly.
+ */
 struct glk_window_struct
 {
+       /*< private >*/
        glui32 rock;
        /* Pointer to the node in the global tree that contains this window */
        GNode *window_node;
@@ -36,12 +43,20 @@ struct glk_window_struct
        /* Streams associated with the window */
        strid_t window_stream;
        strid_t echo_stream;
+       /* Width and height of the window, in characters (text grids only) */
+       glui32 width;
+       glui32 height;
        /* 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;
+       /* Line input field (text grids only) */
+       glui32 input_length;
+       GtkTextChildAnchor *input_anchor;
+       GtkWidget *input_entry;
+       /* Signal handlers */
        gulong keypress_handler;
        gulong insert_text_handler;
 };