2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
5 #ifndef __ECORE_WINCE_PRIVATE_H__
6 #define __ECORE_WINCE_PRIVATE_H__
9 /* logging messages macros */
10 extern int _ecore_wince_log_dom_global;
12 #ifdef ECORE_WINCE_DEFAULT_LOG_COLOR
13 #undef ECORE_WINCE_DEFAULT_LOG_COLOR
15 #define ECORE_WINCE_DEFAULT_LOG_COLOR EINA_COLOR_LIGHTBLUE
20 #define ERR(...) EINA_LOG_DOM_ERR(_ecore_wince_log_dom_global , __VA_ARGS__)
24 #define DBG(...) EINA_LOG_DOM_DBG(_ecore_wince_log_dom_global , __VA_ARGS__)
28 #define INF(...) EINA_LOG_DOM_INFO(_ecore_wince_log_dom_global , __VA_ARGS__)
30 #define ECORE_WINCE_WINDOW_CLASS L"Ecore_WinCE_Window_Class"
33 typedef struct _Ecore_WinCE_Callback_Data Ecore_WinCE_Callback_Data;
35 struct _Ecore_WinCE_Callback_Data
48 typedef int (*ecore_wince_suspend) (int);
49 typedef int (*ecore_wince_resume) (int);
52 struct _Ecore_WinCE_Window
57 ecore_wince_suspend suspend;
58 ecore_wince_resume resume;
60 RECT rect; /* used to go fullscreen to normal */
62 unsigned int pointer_is_in : 1;
63 unsigned int fullscreen : 1;
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;
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);
89 #endif /* __ECORE_WINCE_PRIVATE_H__ */