68aeed214ccebf6aa7819fc106b22c5e4619abe5
[framework/uifw/ecore.git] / src / lib / ecore_wince / ecore_wince_private.h
1 /*
2  * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3  */
4
5 #ifndef __ECORE_WINCE_PRIVATE_H__
6 #define __ECORE_WINCE_PRIVATE_H__
7
8
9 #define ECORE_WINCE_WINDOW_CLASS L"Ecore_WinCE_Window_Class"
10
11
12 typedef struct _Ecore_WinCE_Callback_Data Ecore_WinCE_Callback_Data;
13
14 struct _Ecore_WinCE_Callback_Data
15 {
16    RECT         update;
17    HWND         window;
18    unsigned int message;
19    WPARAM       window_param;
20    LPARAM       data_param;
21    long         time;
22    int          x;
23    int          y;
24 };
25
26
27 typedef int (*ecore_wince_suspend) (int);
28 typedef int (*ecore_wince_resume)  (int);
29
30
31 struct _Ecore_WinCE_Window
32 {
33    HWND                window;
34
35    int                 backend;
36    ecore_wince_suspend suspend;
37    ecore_wince_resume  resume;
38
39    unsigned int        pointer_is_in : 1;
40 };
41
42 extern double              _ecore_wince_double_click_time;
43 extern double              _ecore_wince_event_last_time;
44 extern Ecore_WinCE_Window *_ecore_wince_event_last_window;
45
46 extern HINSTANCE           _ecore_wince_instance;
47
48
49 void  _ecore_wince_event_handle_key_press(Ecore_WinCE_Callback_Data *msg);
50 void  _ecore_wince_event_handle_key_release(Ecore_WinCE_Callback_Data *msg);
51 void  _ecore_wince_event_handle_button_press(Ecore_WinCE_Callback_Data *msg, int button);
52 void  _ecore_wince_event_handle_button_release(Ecore_WinCE_Callback_Data *msg, int button);
53 void  _ecore_wince_event_handle_motion_notify(Ecore_WinCE_Callback_Data *msg);
54 void  _ecore_wince_event_handle_enter_notify(Ecore_WinCE_Callback_Data *msg);
55 void  _ecore_wince_event_handle_leave_notify(Ecore_WinCE_Callback_Data *msg);
56 void  _ecore_wince_event_handle_focus_in(Ecore_WinCE_Callback_Data *msg);
57 void  _ecore_wince_event_handle_focus_out(Ecore_WinCE_Callback_Data *msg);
58 void  _ecore_wince_event_handle_expose(Ecore_WinCE_Callback_Data *msg);
59 void  _ecore_wince_event_handle_create_notify(Ecore_WinCE_Callback_Data *msg);
60 void  _ecore_wince_event_handle_destroy_notify(Ecore_WinCE_Callback_Data *msg);
61 void  _ecore_wince_event_handle_map_notify(Ecore_WinCE_Callback_Data *msg);
62 void  _ecore_wince_event_handle_unmap_notify(Ecore_WinCE_Callback_Data *msg);
63 void  _ecore_wince_event_handle_delete_request(Ecore_WinCE_Callback_Data *msg);
64
65
66 #endif /* __ECORE_WINCE_PRIVATE_H__ */