forked from enlightenment/efl
parent
b16da2d20f
commit
89b5e3fa75
|
@ -814,8 +814,8 @@ ecore_evas_software_wince_new_internal(int backend,
|
|||
}
|
||||
|
||||
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;
|
||||
|
|
|
@ -280,9 +280,9 @@ EAPI void ecore_wince_window_title_set(Ecore_WinCE_Window *window,
|
|||
|
||||
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,
|
||||
|
|
|
@ -734,8 +734,8 @@ _ecore_wince_event_handle_focus_in(Ecore_WinCE_Callback_Data *msg)
|
|||
return;
|
||||
}
|
||||
|
||||
if (window->resume)
|
||||
window->resume(window->backend);
|
||||
if (window->resume_cb)
|
||||
window->resume_cb(window->backend);
|
||||
|
||||
e->window = window;
|
||||
|
||||
|
@ -762,8 +762,8 @@ _ecore_wince_event_handle_focus_out(Ecore_WinCE_Callback_Data *msg)
|
|||
free(e);
|
||||
return;
|
||||
}
|
||||
if (window->suspend)
|
||||
window->suspend(window->backend);
|
||||
if (window->suspend_cb)
|
||||
window->suspend_cb(window->backend);
|
||||
|
||||
e->window = window;
|
||||
|
||||
|
|
|
@ -41,8 +41,8 @@ struct _Ecore_WinCE_Callback_Data
|
|||
};
|
||||
|
||||
|
||||
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
|
||||
|
@ -50,8 +50,8 @@ struct _Ecore_WinCE_Window
|
|||
HWND window;
|
||||
|
||||
int backend;
|
||||
ecore_wince_suspend suspend;
|
||||
ecore_wince_resume resume;
|
||||
ecore_wince_suspend_cb suspend_cb;
|
||||
ecore_wince_resume_cb resume_cb;
|
||||
|
||||
RECT rect; /* used to go fullscreen to normal */
|
||||
|
||||
|
|
|
@ -501,7 +501,7 @@ ecore_wince_window_backend_set(Ecore_WinCE_Window *window,
|
|||
* 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;
|
||||
|
||||
|
@ -511,7 +511,7 @@ ecore_wince_window_suspend_set(Ecore_WinCE_Window *window, int (*suspend_cb)(int
|
|||
INF("setting suspend callback");
|
||||
|
||||
w = (struct _Ecore_WinCE_Window *)window;
|
||||
w->suspend = suspend;
|
||||
w->suspend_cb = suspend_cb;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -527,7 +527,7 @@ ecore_wince_window_suspend_set(Ecore_WinCE_Window *window, int (*suspend_cb)(int
|
|||
* 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;
|
||||
|
||||
|
@ -537,7 +537,7 @@ ecore_wince_window_resume_set(Ecore_WinCE_Window *window, int (*resume_cb)(int))
|
|||
INF("setting resume callback");
|
||||
|
||||
w = (struct _Ecore_WinCE_Window *)window;
|
||||
w->resume = resume;
|
||||
w->resume_cb = resume_cb;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue