X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fwindow.h;h=b3b824a7a09a5782be52199ebdbad13d7c485e71;hb=5a06246277a255fe6e0e465ce0f190541b7b0e16;hp=6f83744dcd5605e1003e3edebb2f4eb3ecc0e899;hpb=352f99218b90bc9a3e5386afc3f12c36c3ebec60;p=rodin%2Fchimara.git diff --git a/src/window.h b/src/window.h index 6f83744..b3b824a 100644 --- a/src/window.h +++ b/src/window.h @@ -8,6 +8,8 @@ #include "error.h" #include "callbacks.h" #include "input.h" +#include "style.h" + enum InputRequestType { @@ -18,9 +20,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 */ @@ -36,12 +45,24 @@ 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; + /* 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; };