]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
got rid of PREVCOMP and NEXTCOMP result types, added EARLY, NORMAL, LATE
authorewt <ewt>
Tue, 16 Apr 1996 22:14:59 +0000 (22:14 +0000)
committerewt <ewt>
Tue, 16 Apr 1996 22:14:59 +0000 (22:14 +0000)
event distinctions

newt_pr.h

index abc91ba60fbe73511254944c877599fb4789d006..7cd841f8ee60bb581db7b3b8fb21c1df07aa2946 100644 (file)
--- a/newt_pr.h
+++ b/newt_pr.h
@@ -32,16 +32,20 @@ struct newtComponent {
     void * data;
 } ;
 
-enum eventResultTypes { ER_IGNORED, ER_SWALLOWED, ER_EXITFORM, ER_NEXTCOMP,
-                       ER_PREVCOMP };
+enum eventResultTypes { ER_IGNORED, ER_SWALLOWED, ER_EXITFORM, ER_SETFOCUS };
 struct eventResult {
     enum eventResultTypes result;
+    union {
+       newtComponent focus;
+    } u;
 }; 
 
 enum eventTypes { EV_FOCUS, EV_UNFOCUS, EV_KEYPRESS };
+enum eventSequence { EV_EARLY, EV_NORMAL, EV_LATE };
 
 struct event {
     enum eventTypes event;
+    enum eventSequence when;
     union {
        int key;
     } u;