1 #ifndef __ECORE_WINCE_PRIVATE_H__
2 #define __ECORE_WINCE_PRIVATE_H__
5 /* logging messages macros */
6 extern int _ecore_wince_log_dom_global;
8 #ifdef ECORE_WINCE_DEFAULT_LOG_COLOR
9 #undef ECORE_WINCE_DEFAULT_LOG_COLOR
11 #define ECORE_WINCE_DEFAULT_LOG_COLOR EINA_COLOR_LIGHTBLUE
16 #define ERR(...) EINA_LOG_DOM_ERR(_ecore_wince_log_dom_global , __VA_ARGS__)
20 #define DBG(...) EINA_LOG_DOM_DBG(_ecore_wince_log_dom_global , __VA_ARGS__)
24 #define INF(...) EINA_LOG_DOM_INFO(_ecore_wince_log_dom_global , __VA_ARGS__)
26 #define ECORE_WINCE_WINDOW_CLASS L"Ecore_WinCE_Window_Class"
29 typedef struct _Ecore_WinCE_Callback_Data Ecore_WinCE_Callback_Data;
31 struct _Ecore_WinCE_Callback_Data
44 typedef int (*ecore_wince_suspend_cb) (int);
45 typedef int (*ecore_wince_resume_cb) (int);
48 struct _Ecore_WinCE_Window
53 ecore_wince_suspend_cb suspend_cb;
54 ecore_wince_resume_cb resume_cb;
56 RECT rect; /* used to go fullscreen to normal */
58 unsigned int pointer_is_in : 1;
59 unsigned int fullscreen : 1;
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;
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);
85 #endif /* __ECORE_WINCE_PRIVATE_H__ */