diff options
author | Ole Loots <ole@monochrom.net> | 2012-11-18 23:15:48 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-11-18 23:15:48 +0100 |
commit | e042008f2b7295243d2e6c72f948febe3cad0516 (patch) | |
tree | 85ae0f3ade4b8017a137b0df08b78ce29edac4b0 /atari/global_evnt.h | |
parent | 47c0ce6f14417da5c169e3a79a4396c7d2d5eea5 (diff) | |
download | netsurf-e042008f2b7295243d2e6c72f948febe3cad0516.tar.gz netsurf-e042008f2b7295243d2e6c72f948febe3cad0516.tar.bz2 |
Revert "Refactored menu event handling and got rid of several windom calls."
This reverts commit d1a5c738e62a9f0cb85658b435eefa8749006edc.
this change belongs into a new branch
Diffstat (limited to 'atari/global_evnt.h')
-rwxr-xr-x | atari/global_evnt.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/atari/global_evnt.h b/atari/global_evnt.h index 76e73fc6b..1e13264a2 100755 --- a/atari/global_evnt.h +++ b/atari/global_evnt.h @@ -18,8 +18,6 @@ #ifndef NS_ATARI_GLOBAL_EVNT_H
#define NS_ATARI_GLOBAL_EVNT_H
- -#include <stdbool.h> struct s_keybd_evnt_data
{
@@ -34,14 +32,31 @@ struct s_evnt_data } u;
};
-struct s_evnt_data evnt_data; +struct s_evnt_data evnt_data;
+
+struct s_accelerator
+{
+ char ascii; /* either ascii or */
+ long keycode; /* normalised keycode is valid */
+ short mod; /* shift / ctrl etc */
+};
+
+typedef void __CDECL (*menu_evnt_func)(WINDOW * win, int item, int title, void * data);
+struct s_menu_item_evnt {
+ short title; /* to which menu this item belongs */
+ short rid; /* resource ID */
+ menu_evnt_func menu_func; /* click handler */
+ struct s_accelerator accel; /* accelerator info */
+ char * menustr;
+};
/*
- Global event handlers
+ Global & Menu event handlers
*/
void bind_global_events( void );
void unbind_global_events( void ); +void main_menu_update( void );
#endif
|