Added 'static' and 'G_GNUC_INTERNAL' to hide all symbols that shouldn't be exported
[rodin/chimara.git] / src / window.h
index 93e946ab03caea3b11456b2d0de1bc7bd187f729..e957de81640de5c62c3d06f5df3186072c9dc8db 100644 (file)
@@ -18,9 +18,16 @@ 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
 {
-       glui32 rock;
+       /*< private >*/
+       glui32 magic, rock;
        /* Pointer to the node in the global tree that contains this window */
        GNode *window_node;
        /* Window parameters */
@@ -45,6 +52,10 @@ struct glk_window_struct
        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;