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 Ecore_WinCE_Window
55 * Abstract type for a window.
57 typedef struct _Ecore_WinCE_Window Ecore_WinCE_Window;
61 * @typedef Ecore_WinCE_Event_Mouse_In
62 * Event sent when the mouse enters the window.
64 typedef struct _Ecore_WinCE_Event_Mouse_In Ecore_WinCE_Event_Mouse_In;
67 * @typedef Ecore_WinCE_Event_Mouse_Out
68 * Event sent when the mouse leaves the window.
70 typedef struct _Ecore_WinCE_Event_Mouse_Out Ecore_WinCE_Event_Mouse_Out;
73 * @typedef Ecore_WinCE_Event_Window_Focus_In
74 * Event sent when the window gets the focus.
76 typedef struct _Ecore_WinCE_Event_Window_Focus_In Ecore_WinCE_Event_Window_Focus_In;
79 * @typedef Ecore_WinCE_Event_Window_Focus_Out
80 * Event sent when the window looses the focus.
82 typedef struct _Ecore_WinCE_Event_Window_Focus_Out Ecore_WinCE_Event_Window_Focus_Out;
85 * @typedef Ecore_WinCE_Event_Window_Damage
86 * Event sent when the window is damaged.
88 typedef struct _Ecore_WinCE_Event_Window_Damage Ecore_WinCE_Event_Window_Damage;
91 * @typedef Ecore_WinCE_Event_Window_Create
92 * Event sent when the window is created.
94 typedef struct _Ecore_WinCE_Event_Window_Create Ecore_WinCE_Event_Window_Create;
97 * @typedef Ecore_WinCE_Event_Window_Destroy
98 * Event sent when the window is destroyed.
100 typedef struct _Ecore_WinCE_Event_Window_Destroy Ecore_WinCE_Event_Window_Destroy;
103 * @typedef Ecore_WinCE_Event_Window_Hide
104 * Event sent when the window is hidden.
106 typedef struct _Ecore_WinCE_Event_Window_Hide Ecore_WinCE_Event_Window_Hide;
109 * @typedef Ecore_WinCE_Event_Window_Show
110 * Event sent when the window is shown.
112 typedef struct _Ecore_WinCE_Event_Window_Show Ecore_WinCE_Event_Window_Show;
115 * @typedef Ecore_WinCE_Event_Window_Delete_Request
116 * Event sent when the window is deleted.
118 typedef struct _Ecore_WinCE_Event_Window_Delete_Request Ecore_WinCE_Event_Window_Delete_Request;
122 * @struct _Ecore_WinCE_Event_Mouse_In
123 * Event sent when the mouse enters the window.
125 struct _Ecore_WinCE_Event_Mouse_In
127 Ecore_WinCE_Window *window; /**< The window that received the event */
128 int x; /**< The x coordinate where the mouse entered */
129 int y; /**< The y coordinate where the mouse entered */
130 long time; /**< The time the event occurred */
134 * @struct _Ecore_WinCE_Event_Mouse_Out
135 * Event sent when the mouse leaves the window.
137 struct _Ecore_WinCE_Event_Mouse_Out
139 Ecore_WinCE_Window *window; /**< The window that received the event */
140 int x; /**< The x coordinate where the mouse leaved */
141 int y; /**< The y coordinate where the mouse leaved */
142 long time; /**< The time the event occurred */
146 * @struct _Ecore_WinCE_Event_Window_Focus_In
147 * Event sent when the window gets the focus.
149 struct _Ecore_WinCE_Event_Window_Focus_In
151 Ecore_WinCE_Window *window; /**< The window that received the event */
152 long time; /**< The time the event occurred */
156 * @struct _Ecore_WinCE_Event_Window_Focus_Out
157 * Event sent when the window looses the focus.
159 struct _Ecore_WinCE_Event_Window_Focus_Out
161 Ecore_WinCE_Window *window; /**< The window that received the event */
162 long time; /**< The time the event occurred */
166 * @struct _Ecore_WinCE_Event_Window_Damage
167 * Event sent when the window is damaged.
169 struct _Ecore_WinCE_Event_Window_Damage
171 Ecore_WinCE_Window *window; /**< The window that received the event */
172 int x; /**< The x coordinate of the top left corner of the damaged region */
173 int y; /**< The y coordinate of the top left corner of the damaged region */
174 int width; /**< The width of the damaged region */
175 int height; /**< The height of the damaged region */
176 long time; /**< The time the event occurred */
180 * @struct _Ecore_WinCE_Event_Window_Create
181 * Event sent when the window is created.
183 struct _Ecore_WinCE_Event_Window_Create
185 Ecore_WinCE_Window *window; /**< The window that received the event */
186 long time; /**< The time the event occurred */
190 * @struct _Ecore_WinCE_Event_Window_Destroy
191 * Event sent when the window is destroyed.
193 struct _Ecore_WinCE_Event_Window_Destroy
195 Ecore_WinCE_Window *window; /**< The window that received the event */
196 long time; /**< The time the event occurred */
200 * @struct _Ecore_WinCE_Event_Window_Hide
201 * Event sent when the window is hidden.
203 struct _Ecore_WinCE_Event_Window_Hide
205 Ecore_WinCE_Window *window; /**< The window that received the event */
206 long time; /**< The time the event occurred */
210 * @struct _Ecore_WinCE_Event_Window_Show
211 * Event sent when the window is shown.
213 struct _Ecore_WinCE_Event_Window_Show
215 Ecore_WinCE_Window *window; /**< The window that received the event */
216 long time; /**< The time the event occurred */
220 * @struct _Ecore_WinCE_Event_Window_Delete_Request
221 * Event sent when the window is deleted.
223 struct _Ecore_WinCE_Event_Window_Delete_Request
225 Ecore_WinCE_Window *window; /**< The window that received the event */
226 long time; /**< The time the event occurred */
230 EAPI extern int ECORE_WINCE_EVENT_MOUSE_IN; /**< Ecore_Event for the #Ecore_WinCE_Event_Mouse_In event */
231 EAPI extern int ECORE_WINCE_EVENT_MOUSE_OUT; /**< Ecore_Event for the #Ecore_WinCE_Event_Mouse_Out event */
232 EAPI extern int ECORE_WINCE_EVENT_WINDOW_FOCUS_IN; /**< Ecore_Event for the #Ecore_WinCE_Event_Window_Focus_In event */
233 EAPI extern int ECORE_WINCE_EVENT_WINDOW_FOCUS_OUT; /**< Ecore_Event for the #Ecore_WinCE_Event_Window_Focus_Out event */
234 EAPI extern int ECORE_WINCE_EVENT_WINDOW_DAMAGE; /**< Ecore_Event for the Ecore_WinCE_Event_Damage event */
235 EAPI extern int ECORE_WINCE_EVENT_WINDOW_CREATE; /**< Ecore_Event for the Ecore_WinCE_Event_Create event */
236 EAPI extern int ECORE_WINCE_EVENT_WINDOW_DESTROY; /**< Ecore_Event for the Ecore_WinCE_Event_Destroy event */
237 EAPI extern int ECORE_WINCE_EVENT_WINDOW_HIDE; /**< Ecore_Event for the Ecore_WinCE_Event_Hide event */
238 EAPI extern int ECORE_WINCE_EVENT_WINDOW_SHOW; /**< Ecore_Event for the Ecore_WinCE_Event_Show event */
239 EAPI extern int ECORE_WINCE_EVENT_WINDOW_DELETE_REQUEST; /**< Ecore_Event for the #Ecore_WinCE_Event_Window_Delete_Request event */
244 EAPI int ecore_wince_init();
245 EAPI int ecore_wince_shutdown();
246 EAPI void ecore_wince_double_click_time_set(double t);
247 EAPI double ecore_wince_double_click_time_get(void);
248 EAPI long ecore_wince_current_time_get(void);
252 EAPI Ecore_WinCE_Window *ecore_wince_window_new(Ecore_WinCE_Window *parent,
258 EAPI void ecore_wince_window_free(Ecore_WinCE_Window *window);
260 EAPI void *ecore_wince_window_hwnd_get(Ecore_WinCE_Window *window);
262 EAPI void ecore_wince_window_move(Ecore_WinCE_Window *window,
266 EAPI void ecore_wince_window_resize(Ecore_WinCE_Window *window,
270 EAPI void ecore_wince_window_move_resize(Ecore_WinCE_Window *window,
276 EAPI void ecore_wince_window_show(Ecore_WinCE_Window *window);
278 EAPI void ecore_wince_window_hide(Ecore_WinCE_Window *window);
280 EAPI void ecore_wince_window_title_set(Ecore_WinCE_Window *window,
283 EAPI void ecore_wince_window_focus(Ecore_WinCE_Window *window);
285 EAPI void *ecore_wince_window_focus_get(void);
287 EAPI void ecore_wince_window_backend_set(Ecore_WinCE_Window *window, int backend);
289 EAPI void ecore_wince_window_suspend_cb_set(Ecore_WinCE_Window *window, int (*suspend_cb)(int));
291 EAPI void ecore_wince_window_resume_cb_set(Ecore_WinCE_Window *window, int (*resume_cb)(int));
293 EAPI void ecore_wince_window_geometry_get(Ecore_WinCE_Window *window,
299 EAPI void ecore_wince_window_size_get(Ecore_WinCE_Window *window,
303 EAPI void ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
314 #endif /* __ECORE_WINCE_H__ */