aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ecore/src/lib/ecore_wince/Ecore_WinCE.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ecore/src/lib/ecore_wince/Ecore_WinCE.h')
-rw-r--r--libraries/ecore/src/lib/ecore_wince/Ecore_WinCE.h314
1 files changed, 0 insertions, 314 deletions
diff --git a/libraries/ecore/src/lib/ecore_wince/Ecore_WinCE.h b/libraries/ecore/src/lib/ecore_wince/Ecore_WinCE.h
deleted file mode 100644
index 63e20d5..0000000
--- a/libraries/ecore/src/lib/ecore_wince/Ecore_WinCE.h
+++ /dev/null
@@ -1,314 +0,0 @@
1#ifndef __ECORE_WINCE_H__
2#define __ECORE_WINCE_H__
3
4/*
5 * DO NOT USE THIS HEADER. IT IS WORK IN PROGRESS. IT IS NOT FINAL AND
6 * THE API MAY CHANGE.
7 */
8
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."
12#endif
13
14#include <Eina.h>
15
16#ifdef EAPI
17# undef EAPI
18#endif
19
20#ifdef _WIN32
21# ifdef EFL_ECORE_WINCE_BUILD
22# ifdef DLL_EXPORT
23# define EAPI __declspec(dllexport)
24# else
25# define EAPI
26# endif /* ! DLL_EXPORT */
27# else
28# define EAPI __declspec(dllimport)
29# endif /* ! EFL_ECORE_WINCE_BUILD */
30#else
31# ifdef __GNUC__
32# if __GNUC__ >= 4
33# define EAPI __attribute__ ((visibility("default")))
34# else
35# define EAPI
36# endif
37# else
38# define EAPI
39# endif
40#endif /* ! _WINCE */
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46/**
47 * @defgroup Ecore_WinCE_Group Ecore_WinCE library
48 *
49 * @{
50 */
51
52
53/**
54 * @typedef Ecore_WinCE_Window
55 * Abstract type for a window.
56 */
57typedef struct _Ecore_WinCE_Window Ecore_WinCE_Window;
58
59
60/**
61 * @typedef Ecore_WinCE_Event_Mouse_In
62 * Event sent when the mouse enters the window.
63 */
64typedef struct _Ecore_WinCE_Event_Mouse_In Ecore_WinCE_Event_Mouse_In;
65
66/**
67 * @typedef Ecore_WinCE_Event_Mouse_Out
68 * Event sent when the mouse leaves the window.
69 */
70typedef struct _Ecore_WinCE_Event_Mouse_Out Ecore_WinCE_Event_Mouse_Out;
71
72/**
73 * @typedef Ecore_WinCE_Event_Window_Focus_In
74 * Event sent when the window gets the focus.
75 */
76typedef struct _Ecore_WinCE_Event_Window_Focus_In Ecore_WinCE_Event_Window_Focus_In;
77
78/**
79 * @typedef Ecore_WinCE_Event_Window_Focus_Out
80 * Event sent when the window looses the focus.
81 */
82typedef struct _Ecore_WinCE_Event_Window_Focus_Out Ecore_WinCE_Event_Window_Focus_Out;
83
84/**
85 * @typedef Ecore_WinCE_Event_Window_Damage
86 * Event sent when the window is damaged.
87 */
88typedef struct _Ecore_WinCE_Event_Window_Damage Ecore_WinCE_Event_Window_Damage;
89
90/**
91 * @typedef Ecore_WinCE_Event_Window_Create
92 * Event sent when the window is created.
93 */
94typedef struct _Ecore_WinCE_Event_Window_Create Ecore_WinCE_Event_Window_Create;
95
96/**
97 * @typedef Ecore_WinCE_Event_Window_Destroy
98 * Event sent when the window is destroyed.
99 */
100typedef struct _Ecore_WinCE_Event_Window_Destroy Ecore_WinCE_Event_Window_Destroy;
101
102/**
103 * @typedef Ecore_WinCE_Event_Window_Hide
104 * Event sent when the window is hidden.
105 */
106typedef struct _Ecore_WinCE_Event_Window_Hide Ecore_WinCE_Event_Window_Hide;
107
108/**
109 * @typedef Ecore_WinCE_Event_Window_Show
110 * Event sent when the window is shown.
111 */
112typedef struct _Ecore_WinCE_Event_Window_Show Ecore_WinCE_Event_Window_Show;
113
114/**
115 * @typedef Ecore_WinCE_Event_Window_Delete_Request
116 * Event sent when the window is deleted.
117 */
118typedef struct _Ecore_WinCE_Event_Window_Delete_Request Ecore_WinCE_Event_Window_Delete_Request;
119
120
121/**
122 * @struct _Ecore_WinCE_Event_Mouse_In
123 * Event sent when the mouse enters the window.
124 */
125struct _Ecore_WinCE_Event_Mouse_In
126{
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 */
131};
132
133/**
134 * @struct _Ecore_WinCE_Event_Mouse_Out
135 * Event sent when the mouse leaves the window.
136 */
137struct _Ecore_WinCE_Event_Mouse_Out
138{
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 */
143};
144
145/**
146 * @struct _Ecore_WinCE_Event_Window_Focus_In
147 * Event sent when the window gets the focus.
148 */
149struct _Ecore_WinCE_Event_Window_Focus_In
150{
151 Ecore_WinCE_Window *window; /**< The window that received the event */
152 long time; /**< The time the event occurred */
153};
154
155/**
156 * @struct _Ecore_WinCE_Event_Window_Focus_Out
157 * Event sent when the window looses the focus.
158 */
159struct _Ecore_WinCE_Event_Window_Focus_Out
160{
161 Ecore_WinCE_Window *window; /**< The window that received the event */
162 long time; /**< The time the event occurred */
163};
164
165/**
166 * @struct _Ecore_WinCE_Event_Window_Damage
167 * Event sent when the window is damaged.
168 */
169struct _Ecore_WinCE_Event_Window_Damage
170{
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 */
177};
178
179/**
180 * @struct _Ecore_WinCE_Event_Window_Create
181 * Event sent when the window is created.
182 */
183struct _Ecore_WinCE_Event_Window_Create
184{
185 Ecore_WinCE_Window *window; /**< The window that received the event */
186 long time; /**< The time the event occurred */
187};
188
189/**
190 * @struct _Ecore_WinCE_Event_Window_Destroy
191 * Event sent when the window is destroyed.
192 */
193struct _Ecore_WinCE_Event_Window_Destroy
194{
195 Ecore_WinCE_Window *window; /**< The window that received the event */
196 long time; /**< The time the event occurred */
197};
198
199/**
200 * @struct _Ecore_WinCE_Event_Window_Hide
201 * Event sent when the window is hidden.
202 */
203struct _Ecore_WinCE_Event_Window_Hide
204{
205 Ecore_WinCE_Window *window; /**< The window that received the event */
206 long time; /**< The time the event occurred */
207};
208
209/**
210 * @struct _Ecore_WinCE_Event_Window_Show
211 * Event sent when the window is shown.
212 */
213struct _Ecore_WinCE_Event_Window_Show
214{
215 Ecore_WinCE_Window *window; /**< The window that received the event */
216 long time; /**< The time the event occurred */
217};
218
219/**
220 * @struct _Ecore_WinCE_Event_Window_Delete_Request
221 * Event sent when the window is deleted.
222 */
223struct _Ecore_WinCE_Event_Window_Delete_Request
224{
225 Ecore_WinCE_Window *window; /**< The window that received the event */
226 long time; /**< The time the event occurred */
227};
228
229
230EAPI extern int ECORE_WINCE_EVENT_MOUSE_IN; /**< Ecore_Event for the #Ecore_WinCE_Event_Mouse_In event */
231EAPI extern int ECORE_WINCE_EVENT_MOUSE_OUT; /**< Ecore_Event for the #Ecore_WinCE_Event_Mouse_Out event */
232EAPI extern int ECORE_WINCE_EVENT_WINDOW_FOCUS_IN; /**< Ecore_Event for the #Ecore_WinCE_Event_Window_Focus_In event */
233EAPI extern int ECORE_WINCE_EVENT_WINDOW_FOCUS_OUT; /**< Ecore_Event for the #Ecore_WinCE_Event_Window_Focus_Out event */
234EAPI extern int ECORE_WINCE_EVENT_WINDOW_DAMAGE; /**< Ecore_Event for the #Ecore_WinCE_Event_Damage event */
235EAPI extern int ECORE_WINCE_EVENT_WINDOW_CREATE; /**< Ecore_Event for the #Ecore_WinCE_Event_Create event */
236EAPI extern int ECORE_WINCE_EVENT_WINDOW_DESTROY; /**< Ecore_Event for the #Ecore_WinCE_Event_Destroy event */
237EAPI extern int ECORE_WINCE_EVENT_WINDOW_HIDE; /**< Ecore_Event for the #Ecore_WinCE_Event_Hide event */
238EAPI extern int ECORE_WINCE_EVENT_WINDOW_SHOW; /**< Ecore_Event for the #Ecore_WinCE_Event_Show event */
239EAPI extern int ECORE_WINCE_EVENT_WINDOW_DELETE_REQUEST; /**< Ecore_Event for the #Ecore_WinCE_Event_Window_Delete_Request event */
240
241
242/* Core */
243
244EAPI int ecore_wince_init();
245EAPI int ecore_wince_shutdown();
246EAPI void ecore_wince_double_click_time_set(double t);
247EAPI double ecore_wince_double_click_time_get(void);
248EAPI long ecore_wince_current_time_get(void);
249
250/* Window */
251
252EAPI Ecore_WinCE_Window *ecore_wince_window_new(Ecore_WinCE_Window *parent,
253 int x,
254 int y,
255 int width,
256 int height);
257
258EAPI void ecore_wince_window_free(Ecore_WinCE_Window *window);
259
260EAPI void *ecore_wince_window_hwnd_get(Ecore_WinCE_Window *window);
261
262EAPI void ecore_wince_window_move(Ecore_WinCE_Window *window,
263 int x,
264 int y);
265
266EAPI void ecore_wince_window_resize(Ecore_WinCE_Window *window,
267 int width,
268 int height);
269
270EAPI void ecore_wince_window_move_resize(Ecore_WinCE_Window *window,
271 int x,
272 int y,
273 int width,
274 int height);
275
276EAPI void ecore_wince_window_show(Ecore_WinCE_Window *window);
277
278EAPI void ecore_wince_window_hide(Ecore_WinCE_Window *window);
279
280EAPI void ecore_wince_window_title_set(Ecore_WinCE_Window *window,
281 const char *title);
282
283EAPI void ecore_wince_window_focus(Ecore_WinCE_Window *window);
284
285EAPI void *ecore_wince_window_focus_get(void);
286
287EAPI void ecore_wince_window_backend_set(Ecore_WinCE_Window *window, int backend);
288
289EAPI void ecore_wince_window_suspend_cb_set(Ecore_WinCE_Window *window, int (*suspend_cb)(int));
290
291EAPI void ecore_wince_window_resume_cb_set(Ecore_WinCE_Window *window, int (*resume_cb)(int));
292
293EAPI void ecore_wince_window_geometry_get(Ecore_WinCE_Window *window,
294 int *x,
295 int *y,
296 int *width,
297 int *height);
298
299EAPI void ecore_wince_window_size_get(Ecore_WinCE_Window *window,
300 int *width,
301 int *height);
302
303EAPI void ecore_wince_window_fullscreen_set(Ecore_WinCE_Window *window,
304 Eina_Bool on);
305
306/**
307 * @}
308 */
309
310#ifdef __cplusplus
311}
312#endif
313
314#endif /* __ECORE_WINCE_H__ */