summaryrefslogtreecommitdiff
path: root/textscreen/txt_window.h
diff options
context:
space:
mode:
authorSimon Howard2006-06-02 19:29:24 +0000
committerSimon Howard2006-06-02 19:29:24 +0000
commit517af9477b7269564f3ba8c0ccc6ef53c78a7abb (patch)
tree1d60d219a7c71b90330baee90acf06a05670fb0f /textscreen/txt_window.h
parentb3e5170bbba1c3048da86a5291cd45524abfeac2 (diff)
downloadchocolate-doom-517af9477b7269564f3ba8c0ccc6ef53c78a7abb.tar.gz
chocolate-doom-517af9477b7269564f3ba8c0ccc6ef53c78a7abb.tar.bz2
chocolate-doom-517af9477b7269564f3ba8c0ccc6ef53c78a7abb.zip
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
Diffstat (limited to 'textscreen/txt_window.h')
-rw-r--r--textscreen/txt_window.h5
1 files changed, 5 insertions, 0 deletions
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);