From 517af9477b7269564f3ba8c0ccc6ef53c78a7abb Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 2 Jun 2006 19:29:24 +0000 Subject: textscreen: Rejig how the entire drawing process works. Add a recursive layout method that assigns the position and size of widgets for the whole window before drawing. Add another method that responds to mouse button presses. Allow windows to have no title bar by specifying NULL as the title. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 547 --- textscreen/txt_window.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'textscreen/txt_window.h') diff --git a/textscreen/txt_window.h b/textscreen/txt_window.h index 583c76ef..5e01a16d 100644 --- a/textscreen/txt_window.h +++ b/textscreen/txt_window.h @@ -50,6 +50,11 @@ struct txt_window_s // Actions that appear in the box at the bottom of the window txt_window_action_t *actions[3]; + + // These are set automatically when the window is drawn + + int window_x, window_y; + int window_w, window_h; }; txt_window_t *TXT_NewWindow(char *title); -- cgit v1.2.3