diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/ecore/src/lib/ecore_wince/ecore_wince_private.h | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/ecore/src/lib/ecore_wince/ecore_wince_private.h')
-rw-r--r-- | libraries/ecore/src/lib/ecore_wince/ecore_wince_private.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/libraries/ecore/src/lib/ecore_wince/ecore_wince_private.h b/libraries/ecore/src/lib/ecore_wince/ecore_wince_private.h new file mode 100644 index 0000000..b506312 --- /dev/null +++ b/libraries/ecore/src/lib/ecore_wince/ecore_wince_private.h | |||
@@ -0,0 +1,85 @@ | |||
1 | #ifndef __ECORE_WINCE_PRIVATE_H__ | ||
2 | #define __ECORE_WINCE_PRIVATE_H__ | ||
3 | |||
4 | |||
5 | /* logging messages macros */ | ||
6 | extern int _ecore_wince_log_dom_global; | ||
7 | |||
8 | #ifdef ECORE_WINCE_DEFAULT_LOG_COLOR | ||
9 | #undef ECORE_WINCE_DEFAULT_LOG_COLOR | ||
10 | #endif | ||
11 | #define ECORE_WINCE_DEFAULT_LOG_COLOR EINA_COLOR_LIGHTBLUE | ||
12 | |||
13 | #ifdef ERR | ||
14 | # undef ERR | ||
15 | #endif | ||
16 | #define ERR(...) EINA_LOG_DOM_ERR(_ecore_wince_log_dom_global , __VA_ARGS__) | ||
17 | #ifdef DBG | ||
18 | # undef DBG | ||
19 | #endif | ||
20 | #define DBG(...) EINA_LOG_DOM_DBG(_ecore_wince_log_dom_global , __VA_ARGS__) | ||
21 | #ifdef INF | ||
22 | # undef INF | ||
23 | #endif | ||
24 | #define INF(...) EINA_LOG_DOM_INFO(_ecore_wince_log_dom_global , __VA_ARGS__) | ||
25 | |||
26 | #define ECORE_WINCE_WINDOW_CLASS L"Ecore_WinCE_Window_Class" | ||
27 | |||
28 | |||
29 | typedef struct _Ecore_WinCE_Callback_Data Ecore_WinCE_Callback_Data; | ||
30 | |||
31 | struct _Ecore_WinCE_Callback_Data | ||
32 | { | ||
33 | RECT update; | ||
34 | HWND window; | ||
35 | unsigned int message; | ||
36 | WPARAM window_param; | ||
37 | LPARAM data_param; | ||
38 | long time; | ||
39 | int x; | ||
40 | int y; | ||
41 | }; | ||
42 | |||
43 | |||
44 | typedef int (*ecore_wince_suspend_cb) (int); | ||
45 | typedef int (*ecore_wince_resume_cb) (int); | ||
46 | |||
47 | |||
48 | struct _Ecore_WinCE_Window | ||
49 | { | ||
50 | HWND window; | ||
51 | |||
52 | int backend; | ||
53 | ecore_wince_suspend_cb suspend_cb; | ||
54 | ecore_wince_resume_cb resume_cb; | ||
55 | |||
56 | RECT rect; /* used to go fullscreen to normal */ | ||
57 | |||
58 | unsigned int pointer_is_in : 1; | ||
59 | unsigned int fullscreen : 1; | ||
60 | }; | ||
61 | |||
62 | extern HINSTANCE _ecore_wince_instance; | ||
63 | extern double _ecore_wince_double_click_time; | ||
64 | extern long _ecore_wince_event_last_time; | ||
65 | extern Ecore_WinCE_Window *_ecore_wince_event_last_window; | ||
66 | |||
67 | |||
68 | void _ecore_wince_event_handle_key_press(Ecore_WinCE_Callback_Data *msg, int is_keystroke); | ||
69 | void _ecore_wince_event_handle_key_release(Ecore_WinCE_Callback_Data *msg, int is_keystroke); | ||
70 | void _ecore_wince_event_handle_button_press(Ecore_WinCE_Callback_Data *msg, int button); | ||
71 | void _ecore_wince_event_handle_button_release(Ecore_WinCE_Callback_Data *msg, int button); | ||
72 | void _ecore_wince_event_handle_motion_notify(Ecore_WinCE_Callback_Data *msg); | ||
73 | void _ecore_wince_event_handle_enter_notify(Ecore_WinCE_Callback_Data *msg); | ||
74 | void _ecore_wince_event_handle_leave_notify(Ecore_WinCE_Callback_Data *msg); | ||
75 | void _ecore_wince_event_handle_focus_in(Ecore_WinCE_Callback_Data *msg); | ||
76 | void _ecore_wince_event_handle_focus_out(Ecore_WinCE_Callback_Data *msg); | ||
77 | void _ecore_wince_event_handle_expose(Ecore_WinCE_Callback_Data *msg); | ||
78 | void _ecore_wince_event_handle_create_notify(Ecore_WinCE_Callback_Data *msg); | ||
79 | void _ecore_wince_event_handle_destroy_notify(Ecore_WinCE_Callback_Data *msg); | ||
80 | void _ecore_wince_event_handle_map_notify(Ecore_WinCE_Callback_Data *msg); | ||
81 | void _ecore_wince_event_handle_unmap_notify(Ecore_WinCE_Callback_Data *msg); | ||
82 | void _ecore_wince_event_handle_delete_request(Ecore_WinCE_Callback_Data *msg); | ||
83 | |||
84 | |||
85 | #endif /* __ECORE_WINCE_PRIVATE_H__ */ | ||