X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fwindow.h;h=2947c665455dd203ef7a80c97fc317aef4b0d542;hb=e7b655fa76e4a42b1a0228bd7e9290998a1fbeae;hp=728a381079c6f0f8cd302d048abcaad19b958b15;hpb=46974bb948c0a7ca82b476a578b6199e438bab41;p=rodin%2Fchimara.git diff --git a/src/window.h b/src/window.h index 728a381..2947c66 100644 --- a/src/window.h +++ b/src/window.h @@ -25,16 +25,29 @@ 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; + /* 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 coordinates (text grids only) */ + + /* Signal handlers */ gulong keypress_handler; gulong insert_text_handler; };