svn update: 48958 (latest:48959)
[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 /* logging messages macros */
10 extern int _ecore_wince_log_dom_global;
11
12 #ifdef ECORE_WINCE_DEFAULT_LOG_COLOR
13 #undef ECORE_WINCE_DEFAULT_LOG_COLOR
14 #endif
15 #define ECORE_WINCE_DEFAULT_LOG_COLOR EINA_COLOR_LIGHTBLUE
16
17 #ifdef ERR
18 # undef ERR
19 #endif
20 #define ERR(...) EINA_LOG_DOM_ERR(_ecore_wince_log_dom_global , __VA_ARGS__)
21 #ifdef DBG
22 # undef DBG
23 #endif
24 #define DBG(...) EINA_LOG_DOM_DBG(_ecore_wince_log_dom_global , __VA_ARGS__)
25 #ifdef INF
26 # undef INF
27 #endif
28 #define INF(...) EINA_LOG_DOM_INFO(_ecore_wince_log_dom_global , __VA_ARGS__)
29
30 #define ECORE_WINCE_WINDOW_CLASS L"Ecore_WinCE_Window_Class"
31
32
33 typedef struct _Ecore_WinCE_Callback_Data Ecore_WinCE_Callback_Data;
34
35 struct _Ecore_WinCE_Callback_Data
36 {
37    RECT         update;
38    HWND         window;
39    unsigned int message;
40    WPARAM       window_param;
41    LPARAM       data_param;
42    long         time;
43    int          x;
44    int          y;
45 };
46
47
48 typedef int (*ecore_wince_suspend) (int);
49 typedef int (*ecore_wince_resume)  (int);
50
51
52 struct _Ecore_WinCE_Window
53 {
54    HWND                window;
55
56    int                 backend;
57    ecore_wince_suspend suspend;
58    ecore_wince_resume  resume;
59
60    RECT                rect;           /* used to go fullscreen to normal */
61
62    unsigned int        pointer_is_in : 1;
63    unsigned int        fullscreen    : 1;
64 };
65
66 extern HINSTANCE           _ecore_wince_instance;
67 extern double              _ecore_wince_double_click_time;
68 extern long                _ecore_wince_event_last_time;
69 extern Ecore_WinCE_Window *_ecore_wince_event_last_window;
70
71
72 void  _ecore_wince_event_handle_key_press(Ecore_WinCE_Callback_Data *msg, int is_keystroke);
73 void  _ecore_wince_event_handle_key_release(Ecore_WinCE_Callback_Data *msg, int is_keystroke);
74 void  _ecore_wince_event_handle_button_press(Ecore_WinCE_Callback_Data *msg, int button);
75 void  _ecore_wince_event_handle_button_release(Ecore_WinCE_Callback_Data *msg, int button);
76 void  _ecore_wince_event_handle_motion_notify(Ecore_WinCE_Callback_Data *msg);
77 void  _ecore_wince_event_handle_enter_notify(Ecore_WinCE_Callback_Data *msg);
78 void  _ecore_wince_event_handle_leave_notify(Ecore_WinCE_Callback_Data *msg);
79 void  _ecore_wince_event_handle_focus_in(Ecore_WinCE_Callback_Data *msg);
80 void  _ecore_wince_event_handle_focus_out(Ecore_WinCE_Callback_Data *msg);
81 void  _ecore_wince_event_handle_expose(Ecore_WinCE_Callback_Data *msg);
82 void  _ecore_wince_event_handle_create_notify(Ecore_WinCE_Callback_Data *msg);
83 void  _ecore_wince_event_handle_destroy_notify(Ecore_WinCE_Callback_Data *msg);
84 void  _ecore_wince_event_handle_map_notify(Ecore_WinCE_Callback_Data *msg);
85 void  _ecore_wince_event_handle_unmap_notify(Ecore_WinCE_Callback_Data *msg);
86 void  _ecore_wince_event_handle_delete_request(Ecore_WinCE_Callback_Data *msg);
87
88
89 #endif /* __ECORE_WINCE_PRIVATE_H__ */