1 #ifndef __ECORE_WINCE_H__
2 #define __ECORE_WINCE_H__
5 * DO NOT USE THIS HEADER. IT IS WORK IN PROGRESS. IT IS NOT FINAL AND
9 #ifndef ECORE_WINCE_WIP_OSXCKQSD
10 # warning "You are using a work in progress API. This API is not stable"
11 # warning "and is subject to change. You use this at your own risk."
21 # ifdef EFL_ECORE_WINCE_BUILD
23 # define EAPI __declspec(dllexport)
26 # endif /* ! DLL_EXPORT */
28 # define EAPI __declspec(dllimport)
29 # endif /* ! EFL_ECORE_WINCE_BUILD */
33 # define EAPI __attribute__ ((visibility("default")))
47 * @defgroup Ecore_WinCE_Group Ecore_WinCE library
54 typedef void Ecore_WinCE_Window;
59 * @typedef Ecore_WinCE_Event_Mouse_In
60 * Event sent when the mouse enters the window.
62 typedef struct _Ecore_WinCE_Event_Mouse_In Ecore_WinCE_Event_Mouse_In;
65 * @typedef Ecore_WinCE_Event_Mouse_Out
66 * Event sent when the mouse leaves the window.
68 typedef struct _Ecore_WinCE_Event_Mouse_Out Ecore_WinCE_Event_Mouse_Out;
71 * @typedef Ecore_WinCE_Event_Window_Focus_In
72 * Event sent when the window gets the focus.
74 typedef struct _Ecore_WinCE_Event_Window_Focus_In Ecore_WinCE_Event_Window_Focus_In;
77 * @typedef Ecore_WinCE_Event_Window_Focus_Out
78 * Event sent when the window looses the focus.
80 typedef struct _Ecore_WinCE_Event_Window_Focus_Out Ecore_WinCE_Event_Window_Focus_Out;
83 * @typedef Ecore_WinCE_Event_Window_Damage
84 * Event sent when the window is damaged.
86 typedef struct _Ecore_WinCE_Event_Window_Damage Ecore_WinCE_Event_Window_Damage;
89 * @typedef Ecore_WinCE_Event_Window_Create
90 * Event sent when the window is created.
92 typedef struct _Ecore_WinCE_Event_Window_Create Ecore_WinCE_Event_Window_Create;
95 * @typedef Ecore_WinCE_Event_Window_Destroy
96 * Event sent when the window is destroyed.
98 typedef struct _Ecore_WinCE_Event_Window_Destroy Ecore_WinCE_Event_Window_Destroy;
101 * @typedef Ecore_WinCE_Event_Window_Hide
102 * Event sent when the window is hidden.
104 typedef struct _Ecore_WinCE_Event_Window_Hide Ecore_WinCE_Event_Window_Hide;
107 * @typedef Ecore_WinCE_Event_Window_Show
108 * Event sent when the window is shown.
110 typedef struct _Ecore_WinCE_Event_Window_Show Ecore_WinCE_Event_Window_Show;
113 * @typedef Ecore_WinCE_Event_Window_Delete_Request
114 * Event sent when the window is deleted.
116 typedef struct _Ecore_WinCE_Event_Window_Delete_Request Ecore_WinCE_Event_Window_Delete_Request;
120 * @struct _Ecore_WinCE_Event_Mouse_In
121 * Event sent when the mouse enters the window.
123 struct _Ecore_WinCE_Event_Mouse_In
125 Ecore_WinCE_Window *window; /**< The window that received the event */
126 int x; /**< The x coordinate where the mouse entered */
127 int y; /**< The y coordinate where the mouse entered */
128 long time; /**< The time the event occured */
132 * @struct _Ecore_WinCE_Event_Mouse_Out
133 * Event sent when the mouse leaves the window.
135 struct _Ecore_WinCE_Event_Mouse_Out
137 Ecore_WinCE_Window *window; /**< The window that received the event */
138 int x; /**< The x coordinate where the mouse leaved */
139 int y; /**< The y coordinate where the mouse leaved */
140 long time; /**< The time the event occured */
144 * @struct _Ecore_WinCE_Event_Window_Focus_In
145 * Event sent when the window gets the focus.
147 struct _Ecore_WinCE_Event_Window_Focus_In
149 Ecore_WinCE_Window *window; /**< The window that received the event */
150 long time; /**< The time the event occured */
154 * @struct _Ecore_WinCE_Event_Window_Focus_Out
155 * Event sent when the window looses the focus.
157 struct _Ecore_WinCE_Event_Window_Focus_Out
159 Ecore_WinCE_Window *window; /**< The window that received the event */
160 long time; /**< The time the event occured */
164 * @struct _Ecore_WinCE_Event_Window_Damage
165 * Event sent when the window is damaged.
167 struct _Ecore_WinCE_Event_Window_Damage
169 Ecore_WinCE_Window *window; /**< The window that received the event */
170 int x; /**< The x coordinate of the top left corner of the damaged region */
171 int y; /**< The y coordinate of the top left corner of the damaged region */
172 int width; /**< The width of the damaged region */
173 int height; /**< The height of the damaged region */
174 long time; /**< The time the event occured */
178 * @struct _Ecore_WinCE_Event_Window_Create
179 * Event sent when the window is created.
181 struct _Ecore_WinCE_Event_Window_Create
183 Ecore_WinCE_Window *window; /**< The window that received the event */
184 long time; /**< The time the event occured */
188 * @struct _Ecore_WinCE_Event_Window_Destroy
189 * Event sent when the window is destroyed.
191 struct _Ecore_WinCE_Event_Window_Destroy
193 Ecore_WinCE_Window *window; /**< The window that received the event */
194 long time; /**< The time the event occured */
198 * @struct _Ecore_WinCE_Event_Window_Hide
199 * Event sent when the window is hidden.
201 struct _Ecore_WinCE_Event_Window_Hide
203 Ecore_WinCE_Window *window; /**< The window that received the event */
204 long time; /**< The time the event occured */
208 * @struct _Ecore_WinCE_Event_Window_Show
209 * Event sent when the window is shown.
211 struct _Ecore_WinCE_Event_Window_Show
213 Ecore_WinCE_Window *window; /**< The window that received the event */
214 long time; /**< The time the event occured */
218 * @struct _Ecore_WinCE_Event_Window_Delete_Request
219 * Event sent when the window is deleted.
221 struct _Ecore_WinCE_Event_Window_Delete_Request
223 Ecore_WinCE_Window *window; /**< The window that received the event */
224 long time; /**< The time the event occured */
228 EAPI extern int ECORE_WINCE_EVENT_MOUSE_IN; /**< Ecore_Event for the #Ecore_WinCE_Event_Mouse_In event */
229 EAPI extern int ECORE_WINCE_EVENT_MOUSE_OUT; /**< Ecore_Event for the #Ecore_WinCE_Event_Mouse_Out event */
230 EAPI extern int ECORE_WINCE_EVENT_WINDOW_FOCUS_IN; /**< Ecore_Event for the #Ecore_WinCE_Event_Window_Focus_In event */
231 EAPI extern int ECORE_WINCE_EVENT_WINDOW_FOCUS_OUT; /**< Ecore_Event for the #Ecore_WinCE_Event_Window_Focus_Out event */
232 EAPI extern int ECORE_WINCE_EVENT_WINDOW_DAMAGE; /**< Ecore_Event for the #Ecore_WinCE_Event_Damage event */
233 EAPI extern int ECORE_WINCE_EVENT_WINDOW_CREATE; /**< Ecore_Event for the #Ecore_WinCE_Event_Create event */
234 EAPI extern int ECORE_WINCE_EVENT_WINDOW_DESTROY; /**< Ecore_Event for the #Ecore_WinCE_Event_Destroy event */
235 EAPI extern int ECORE_WINCE_EVENT_WINDOW_HIDE; /**< Ecore_Event for the #Ecore_WinCE_Event_Hide event */
236 EAPI extern int ECORE_WINCE_EVENT_WINDOW_SHOW; /**< Ecore_Event for the #Ecore_WinCE_Event_Show event */
237 EAPI extern int ECORE_WINCE_EVENT_WINDOW_DELETE_REQUEST; /**< Ecore_Event for the #Ecore_WinCE_Event_Window_Delete_Request event */
242 EAPI int ecore_wince_init();
243 EAPI int ecore_wince_shutdown();
244 EAPI void ecore_wince_double_click_time_set(double t);
245 EAPI double ecore_wince_double_click_time_get(void);
246 EAPI long ecore_wince_current_time_get(void);
250 EAPI Ecore_WinCE_Window *ecore_wince_window_new(Ecore_WinCE_Window *parent,
256 EAPI void ecore_wince_window_free(Ecore_WinCE_Window *window);
258 EAPI void *ecore_wince_window_hwnd_get(Ecore_WinCE_Window *window);
260 EAPI void ecore_wince_window_move(Ecore_WinCE_Window *window,
264 EAPI void ecore_wince_window_resize(Ecore_WinCE_Window *window,
268 EAPI void ecore_wince_window_move_resize(Ecore_WinCE_Window *window,
274 EAPI void ecore_wince_window_show(Ecore_WinCE_Window *window);
276 EAPI void ecore_wince_window_hide(Ecore_WinCE_Window *window);
278 EAPI void ecore_wince_window_title_set(Ecore_WinCE_Window *window,
281 EAPI void ecore_wince_window_backend_set(Ecore_WinCE_Window *window, int backend);
283 EAPI void ecore_wince_window_suspend_set(Ecore_WinCE_Window *window, int (*suspend_cb)(int));
285 EAPI void ecore_wince_window_resume_set(Ecore_WinCE_Window *window, int (*resume_cb)(int));
287 EAPI void ecore_wince_window_geometry_get(Ecore_WinCE_Window *window,
293 EAPI void ecore_wince_window_size_get(Ecore_WinCE_Window *window,
297 EAPI void ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
308 #endif /* __ECORE_WINCE_H__ */