From: ewt Date: Tue, 16 Apr 1996 22:14:59 +0000 (+0000) Subject: got rid of PREVCOMP and NEXTCOMP result types, added EARLY, NORMAL, LATE X-Git-Tag: 0-1~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14b0868255bb0c04b682479d38621eb3b63dede4;p=thirdparty%2Fnewt.git got rid of PREVCOMP and NEXTCOMP result types, added EARLY, NORMAL, LATE event distinctions --- diff --git a/newt_pr.h b/newt_pr.h index abc91ba..7cd841f 100644 --- 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;