X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fwindow.h;h=39c43149f9d6819e225cffd8d29279803e1c4325;hb=01a1cad6cfa515cef48436f26dcfa5c67238187b;hp=93e946ab03caea3b11456b2d0de1bc7bd187f729;hpb=c8c67078daea54fdf03b46726a77ecf26cf65be4;p=rodin%2Fchimara.git diff --git a/src/window.h b/src/window.h index 93e946a..39c4314 100644 --- a/src/window.h +++ b/src/window.h @@ -18,9 +18,16 @@ enum InputRequestType INPUT_REQUEST_LINE_UNICODE }; +/** + * glk_window_struct: + * + * This is an opaque structure (see + * Opaque Structures 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 */ @@ -39,12 +46,20 @@ struct glk_window_struct /* Width and height of the window, in characters (text grids only) */ glui32 width; glui32 height; + /* Window split data (pair windows only) */ + winid_t key_window; + glui32 split_method; + glui32 constraint_size; /* 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;