X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fwindow.h;h=3395bb482296225c9d663da43a6f6ac228c826d4;hb=47d20aad0aecf8161a3ec94bdc7da9cd42f4ae62;hp=1fb98ce2a7cbc6dac20c7b6e9a2ab8f6b1a135ae;hpb=2baac1a1aa285bc52da8feb92433144a1e50bcce;p=rodin%2Fchimara.git diff --git a/src/window.h b/src/window.h index 1fb98ce..3395bb4 100644 --- a/src/window.h +++ b/src/window.h @@ -25,7 +25,15 @@ struct glk_window_struct GNode *window_node; /* Window parameters */ glui32 type; + /* "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; /* Input request stuff */ @@ -34,6 +42,7 @@ struct glk_window_struct glui32 *line_input_buffer_unicode; glui32 line_input_buffer_max_len; gboolean mouse_input_requested; + /* Signal handlers */ gulong keypress_handler; gulong insert_text_handler; };