}
ecore_wince_window_backend_set((Ecore_WinCE_Window *)ee->prop.window, backend);
- ecore_wince_window_suspend_set((Ecore_WinCE_Window *)ee->prop.window, einfo->func.suspend);
- ecore_wince_window_resume_set((Ecore_WinCE_Window *)ee->prop.window, einfo->func.resume);
+ ecore_wince_window_suspend_cb_set((Ecore_WinCE_Window *)ee->prop.window, einfo->func.suspend);
+ ecore_wince_window_resume_cb_set((Ecore_WinCE_Window *)ee->prop.window, einfo->func.resume);
}
ee->engine.func->fn_render = _ecore_evas_wince_render;
EAPI void ecore_wince_window_backend_set(Ecore_WinCE_Window *window, int backend);
-EAPI void ecore_wince_window_suspend_set(Ecore_WinCE_Window *window, int (*suspend_cb)(int));
+EAPI void ecore_wince_window_suspend_cb_set(Ecore_WinCE_Window *window, int (*suspend_cb)(int));
-EAPI void ecore_wince_window_resume_set(Ecore_WinCE_Window *window, int (*resume_cb)(int));
+EAPI void ecore_wince_window_resume_cb_set(Ecore_WinCE_Window *window, int (*resume_cb)(int));
EAPI void ecore_wince_window_geometry_get(Ecore_WinCE_Window *window,
int *x,
return;
}
- if (window->resume)
- window->resume(window->backend);
+ if (window->resume_cb)
+ window->resume_cb(window->backend);
e->window = window;
free(e);
return;
}
- if (window->suspend)
- window->suspend(window->backend);
+ if (window->suspend_cb)
+ window->suspend_cb(window->backend);
e->window = window;
};
-typedef int (*ecore_wince_suspend) (int);
-typedef int (*ecore_wince_resume) (int);
+typedef int (*ecore_wince_suspend_cb) (int);
+typedef int (*ecore_wince_resume_cb) (int);
struct _Ecore_WinCE_Window
{
- HWND window;
+ HWND window;
- int backend;
- ecore_wince_suspend suspend;
- ecore_wince_resume resume;
+ int backend;
+ ecore_wince_suspend_cb suspend_cb;
+ ecore_wince_resume_cb resume_cb;
- RECT rect; /* used to go fullscreen to normal */
+ RECT rect; /* used to go fullscreen to normal */
- unsigned int pointer_is_in : 1;
- unsigned int fullscreen : 1;
+ unsigned int pointer_is_in : 1;
+ unsigned int fullscreen : 1;
};
extern HINSTANCE _ecore_wince_instance;
* function should not be called if Ecore_Evas is used.
*/
EAPI void
-ecore_wince_window_suspend_set(Ecore_WinCE_Window *window, int (*suspend_cb)(int))
+ecore_wince_window_suspend_cb_set(Ecore_WinCE_Window *window, int (*suspend_cb)(int))
{
struct _Ecore_WinCE_Window *w;
INF("setting suspend callback");
w = (struct _Ecore_WinCE_Window *)window;
- w->suspend = suspend;
+ w->suspend_cb = suspend_cb;
}
/**
* function should not be called if Ecore_Evas is used.
*/
EAPI void
-ecore_wince_window_resume_set(Ecore_WinCE_Window *window, int (*resume_cb)(int))
+ecore_wince_window_resume_cb_set(Ecore_WinCE_Window *window, int (*resume_cb)(int))
{
struct _Ecore_WinCE_Window *w;
INF("setting resume callback");
w = (struct _Ecore_WinCE_Window *)window;
- w->resume = resume;
+ w->resume_cb = resume_cb;
}
/**