aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/dat.h b/dat.h
index 07b7dd3..fba1c16 100644
--- a/dat.h
+++ b/dat.h
@@ -32,7 +32,12 @@ enum {
ACalibrating,
ABombing,
+ BRest = 0,
+ BHover,
+
Boardmargin = 50,
+ Btnborder = 4,
+ Btnpadding = 2,
TW = 16,
TH = TW,
MAPW = 17,
@@ -163,6 +168,16 @@ struct MatchInfo
char conclusion[16];
};
+typedef struct Button Button;
+
+struct Button
+{
+ char *label;
+ Rectangle r;
+ int status;
+ void (*handler)(Button*);
+};
+
typedef struct Mentry Mentry;
typedef struct Mlist Mlist;
typedef struct Menulist Menulist;