diff options
| author | bernard.xiong <[email protected]> | 2010-02-07 23:42:49 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-02-07 23:42:49 +0000 |
| commit | 6dac26e5b0b7f9dedcc94869bd3d3a4716e9b600 (patch) | |
| tree | 23963bf188ce8f8288a25fc9286d618082186067 /rtgui/include | |
| parent | da603729c9e278f06250c7b3a86a95c62e51e2fd (diff) | |
remove more fields on window create.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@386 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'rtgui/include')
| -rw-r--r-- | rtgui/include/rtgui/event.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/rtgui/include/rtgui/event.h b/rtgui/include/rtgui/event.h index 50ad4887e2..1b0a6d1022 100644 --- a/rtgui/include/rtgui/event.h +++ b/rtgui/include/rtgui/event.h @@ -77,7 +77,9 @@ enum { struct rtgui_event
{
/* the event type */
- rt_uint32_t type;
+ rt_uint16_t type;
+ /* user field of event */
+ rt_uint16_t user;
/* the event sender */
rt_thread_t sender;
@@ -91,6 +93,7 @@ typedef struct rtgui_event rtgui_event_t; #define RTGUI_EVENT_INIT(e, t) do \
{ \
(e)->type = (t); \
+ (e)->user = 0; \
(e)->sender = rt_thread_self(); \
(e)->ack = RT_NULL; \
} while (0)
@@ -172,16 +175,15 @@ struct rtgui_event_win_create {
struct rtgui_event parent;
- /* the window flag */
- rt_uint32_t flag;
-
+#ifndef RTGUI_USING_SMALL_SIZE
/* the window title */
rt_uint8_t title[RTGUI_NAME_MAX];
+ /* the window extent */
+ struct rtgui_rect extent;
+#endif
/* the window id */
rtgui_win_t* wid;
- /* the window extent */
- struct rtgui_rect extent;
};
struct rtgui_event_win_move
@@ -332,9 +334,9 @@ struct rtgui_event_kbd rtgui_win_t* wid; /* destination window */
- RTGUI_KBD_TYPE type; /* key down or up */
- RTGUI_KBD_KEY key; /* current key */
- RTGUI_KBD_MOD mod; /* current key modifiers */
+ rt_uint16_t type; /* key down or up */
+ rt_uint16_t key; /* current key */
+ rt_uint16_t mod; /* current key modifiers */
rt_uint16_t unicode; /* translated character */
};
#define RTGUI_KBD_IS_SET_CTRL(e) ((e)->mod & (RTGUI_KMOD_LCTRL | RTGUI_KMOD_RCTRL)))
@@ -357,9 +359,6 @@ struct rtgui_event_command /* command id */
rt_int32_t command_id;
- /* command integer */
- rt_int32_t command_int;
-
/* command string */
char command_string[RTGUI_NAME_MAX];
};
|
