2008-05-30 22:05:01 -07:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ECORE_WINCE_PRIVATE_H__
|
|
|
|
#define __ECORE_WINCE_PRIVATE_H__
|
|
|
|
|
|
|
|
|
2009-09-07 22:39:09 -07:00
|
|
|
/* logging messages macros */
|
|
|
|
extern int _ecore_wince_log_dom;
|
|
|
|
|
|
|
|
#define ECORE_WINCE_MSG_ERR(...) EINA_LOG_DOM_ERR(_ecore_wince_log_dom , __VA_ARGS__)
|
|
|
|
#define ECORE_WINCE_MSG_DBG(...) EINA_LOG_DOM_DBG(_ecore_wince_log_dom , __VA_ARGS__)
|
|
|
|
#define ECORE_WINCE_MSG_INFO(...) EINA_LOG_DOM_INFO(_ecore_wince_log_dom , __VA_ARGS__)
|
|
|
|
|
2008-05-30 22:05:01 -07:00
|
|
|
#define ECORE_WINCE_WINDOW_CLASS L"Ecore_WinCE_Window_Class"
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _Ecore_WinCE_Callback_Data Ecore_WinCE_Callback_Data;
|
|
|
|
|
|
|
|
struct _Ecore_WinCE_Callback_Data
|
|
|
|
{
|
|
|
|
RECT update;
|
|
|
|
HWND window;
|
|
|
|
unsigned int message;
|
|
|
|
WPARAM window_param;
|
|
|
|
LPARAM data_param;
|
|
|
|
long time;
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-06-05 00:23:41 -07:00
|
|
|
typedef int (*ecore_wince_suspend) (int);
|
|
|
|
typedef int (*ecore_wince_resume) (int);
|
2008-05-30 22:05:01 -07:00
|
|
|
|
|
|
|
|
|
|
|
struct _Ecore_WinCE_Window
|
|
|
|
{
|
|
|
|
HWND window;
|
|
|
|
|
2008-06-05 00:23:41 -07:00
|
|
|
int backend;
|
2008-05-30 22:05:01 -07:00
|
|
|
ecore_wince_suspend suspend;
|
|
|
|
ecore_wince_resume resume;
|
2008-06-03 10:09:44 -07:00
|
|
|
|
2009-01-10 09:57:25 -08:00
|
|
|
RECT rect; /* used to go fullscreen to normal */
|
|
|
|
|
2008-06-03 10:09:44 -07:00
|
|
|
unsigned int pointer_is_in : 1;
|
2009-01-10 09:57:25 -08:00
|
|
|
unsigned int fullscreen : 1;
|
2008-05-30 22:05:01 -07:00
|
|
|
};
|
|
|
|
|
2009-09-07 22:39:09 -07:00
|
|
|
extern HINSTANCE _ecore_wince_instance;
|
2008-06-03 10:09:44 -07:00
|
|
|
extern double _ecore_wince_double_click_time;
|
2008-05-30 22:05:01 -07:00
|
|
|
extern double _ecore_wince_event_last_time;
|
2008-06-03 10:09:44 -07:00
|
|
|
extern Ecore_WinCE_Window *_ecore_wince_event_last_window;
|
2008-05-30 22:05:01 -07:00
|
|
|
|
|
|
|
|
2009-02-25 23:24:50 -08:00
|
|
|
void _ecore_wince_event_handle_key_press(Ecore_WinCE_Callback_Data *msg, int is_keystroke);
|
|
|
|
void _ecore_wince_event_handle_key_release(Ecore_WinCE_Callback_Data *msg, int is_keystroke);
|
2008-06-03 10:09:44 -07:00
|
|
|
void _ecore_wince_event_handle_button_press(Ecore_WinCE_Callback_Data *msg, int button);
|
|
|
|
void _ecore_wince_event_handle_button_release(Ecore_WinCE_Callback_Data *msg, int button);
|
|
|
|
void _ecore_wince_event_handle_motion_notify(Ecore_WinCE_Callback_Data *msg);
|
|
|
|
void _ecore_wince_event_handle_enter_notify(Ecore_WinCE_Callback_Data *msg);
|
|
|
|
void _ecore_wince_event_handle_leave_notify(Ecore_WinCE_Callback_Data *msg);
|
2008-05-30 22:05:01 -07:00
|
|
|
void _ecore_wince_event_handle_focus_in(Ecore_WinCE_Callback_Data *msg);
|
|
|
|
void _ecore_wince_event_handle_focus_out(Ecore_WinCE_Callback_Data *msg);
|
|
|
|
void _ecore_wince_event_handle_expose(Ecore_WinCE_Callback_Data *msg);
|
|
|
|
void _ecore_wince_event_handle_create_notify(Ecore_WinCE_Callback_Data *msg);
|
|
|
|
void _ecore_wince_event_handle_destroy_notify(Ecore_WinCE_Callback_Data *msg);
|
|
|
|
void _ecore_wince_event_handle_map_notify(Ecore_WinCE_Callback_Data *msg);
|
|
|
|
void _ecore_wince_event_handle_unmap_notify(Ecore_WinCE_Callback_Data *msg);
|
|
|
|
void _ecore_wince_event_handle_delete_request(Ecore_WinCE_Callback_Data *msg);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __ECORE_WINCE_PRIVATE_H__ */
|