diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_wince/Ecore_WinCE.h | 4 | ||||
-rw-r--r-- | libraries/ecore/src/lib/ecore_wince/Makefile.in | 20 | ||||
-rw-r--r-- | libraries/ecore/src/lib/ecore_wince/ecore_wince_window.c | 52 |
3 files changed, 68 insertions, 8 deletions
diff --git a/libraries/ecore/src/lib/ecore_wince/Ecore_WinCE.h b/libraries/ecore/src/lib/ecore_wince/Ecore_WinCE.h index 681b334..63e20d5 100644 --- a/libraries/ecore/src/lib/ecore_wince/Ecore_WinCE.h +++ b/libraries/ecore/src/lib/ecore_wince/Ecore_WinCE.h | |||
@@ -280,6 +280,10 @@ EAPI void ecore_wince_window_hide(Ecore_WinCE_Window *window); | |||
280 | EAPI void ecore_wince_window_title_set(Ecore_WinCE_Window *window, | 280 | EAPI void ecore_wince_window_title_set(Ecore_WinCE_Window *window, |
281 | const char *title); | 281 | const char *title); |
282 | 282 | ||
283 | EAPI void ecore_wince_window_focus(Ecore_WinCE_Window *window); | ||
284 | |||
285 | EAPI void *ecore_wince_window_focus_get(void); | ||
286 | |||
283 | EAPI void ecore_wince_window_backend_set(Ecore_WinCE_Window *window, int backend); | 287 | EAPI void ecore_wince_window_backend_set(Ecore_WinCE_Window *window, int backend); |
284 | 288 | ||
285 | EAPI void ecore_wince_window_suspend_cb_set(Ecore_WinCE_Window *window, int (*suspend_cb)(int)); | 289 | EAPI void ecore_wince_window_suspend_cb_set(Ecore_WinCE_Window *window, int (*suspend_cb)(int)); |
diff --git a/libraries/ecore/src/lib/ecore_wince/Makefile.in b/libraries/ecore/src/lib/ecore_wince/Makefile.in index d23bf51..340416b 100644 --- a/libraries/ecore/src/lib/ecore_wince/Makefile.in +++ b/libraries/ecore/src/lib/ecore_wince/Makefile.in | |||
@@ -50,16 +50,15 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \ | |||
50 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | 50 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ |
51 | $(top_srcdir)/m4/efl_threads.m4 $(top_srcdir)/m4/gettext.m4 \ | 51 | $(top_srcdir)/m4/efl_threads.m4 $(top_srcdir)/m4/gettext.m4 \ |
52 | $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ | 52 | $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ |
53 | $(top_srcdir)/m4/isc-posix.m4 $(top_srcdir)/m4/lib-ld.m4 \ | 53 | $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ |
54 | $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ | 54 | $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ |
55 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | 55 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ |
56 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | 56 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ |
57 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ | 57 | $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ |
58 | $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ | 58 | $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac |
59 | $(top_srcdir)/configure.ac | ||
60 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 59 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
61 | $(ACLOCAL_M4) | 60 | $(ACLOCAL_M4) |
62 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | 61 | mkinstalldirs = $(install_sh) -d |
63 | CONFIG_HEADER = $(top_builddir)/config.h | 62 | CONFIG_HEADER = $(top_builddir)/config.h |
64 | CONFIG_CLEAN_FILES = | 63 | CONFIG_CLEAN_FILES = |
65 | CONFIG_CLEAN_VPATH_FILES = | 64 | CONFIG_CLEAN_VPATH_FILES = |
@@ -194,6 +193,8 @@ EVAS_LIBS = @EVAS_LIBS@ | |||
194 | EVIL_CFLAGS = @EVIL_CFLAGS@ | 193 | EVIL_CFLAGS = @EVIL_CFLAGS@ |
195 | EVIL_LIBS = @EVIL_LIBS@ | 194 | EVIL_LIBS = @EVIL_LIBS@ |
196 | EXEEXT = @EXEEXT@ | 195 | EXEEXT = @EXEEXT@ |
196 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
197 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
197 | FGREP = @FGREP@ | 198 | FGREP = @FGREP@ |
198 | GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ | 199 | GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ |
199 | GLIB_CFLAGS = @GLIB_CFLAGS@ | 200 | GLIB_CFLAGS = @GLIB_CFLAGS@ |
@@ -249,6 +250,8 @@ PATH_SEPARATOR = @PATH_SEPARATOR@ | |||
249 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | 250 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ |
250 | PIXMAN_LIBS = @PIXMAN_LIBS@ | 251 | PIXMAN_LIBS = @PIXMAN_LIBS@ |
251 | PKG_CONFIG = @PKG_CONFIG@ | 252 | PKG_CONFIG = @PKG_CONFIG@ |
253 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
254 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
252 | POSUB = @POSUB@ | 255 | POSUB = @POSUB@ |
253 | RANLIB = @RANLIB@ | 256 | RANLIB = @RANLIB@ |
254 | SCIM_CFLAGS = @SCIM_CFLAGS@ | 257 | SCIM_CFLAGS = @SCIM_CFLAGS@ |
@@ -259,6 +262,7 @@ SDL_LIBS = @SDL_LIBS@ | |||
259 | SED = @SED@ | 262 | SED = @SED@ |
260 | SET_MAKE = @SET_MAKE@ | 263 | SET_MAKE = @SET_MAKE@ |
261 | SHELL = @SHELL@ | 264 | SHELL = @SHELL@ |
265 | SHM_OPEN_LIBS = @SHM_OPEN_LIBS@ | ||
262 | SSL_CFLAGS = @SSL_CFLAGS@ | 266 | SSL_CFLAGS = @SSL_CFLAGS@ |
263 | SSL_LIBS = @SSL_LIBS@ | 267 | SSL_LIBS = @SSL_LIBS@ |
264 | STRIP = @STRIP@ | 268 | STRIP = @STRIP@ |
diff --git a/libraries/ecore/src/lib/ecore_wince/ecore_wince_window.c b/libraries/ecore/src/lib/ecore_wince/ecore_wince_window.c index 4e8b7b1..72353ce 100644 --- a/libraries/ecore/src/lib/ecore_wince/ecore_wince_window.c +++ b/libraries/ecore/src/lib/ecore_wince/ecore_wince_window.c | |||
@@ -447,6 +447,58 @@ ecore_wince_window_title_set(Ecore_WinCE_Window *window, | |||
447 | } | 447 | } |
448 | 448 | ||
449 | /** | 449 | /** |
450 | * @brief Set the focus to the given window. | ||
451 | * | ||
452 | * @param window The window to give focus to. | ||
453 | * | ||
454 | * This function gives the focus to @p window. If @p window is | ||
455 | * @c NULL, this function does nothing. | ||
456 | */ | ||
457 | EAPI void | ||
458 | ecore_wince_window_focus(Ecore_WinCE_Window *window) | ||
459 | { | ||
460 | if (!window) return; | ||
461 | |||
462 | INF("focusing window"); | ||
463 | |||
464 | if (!SetFocus(window->window)) | ||
465 | { | ||
466 | ERR("SetFocus() failed"); | ||
467 | } | ||
468 | } | ||
469 | |||
470 | /** | ||
471 | * @brief Get the current focused window. | ||
472 | * | ||
473 | * @return The window that has focus. | ||
474 | * | ||
475 | * This function returns the window that has focus. If the calling | ||
476 | * thread's message queue does not have an associated window with the | ||
477 | * keyboard focus, the return value is @c NULL. | ||
478 | * | ||
479 | * @note Even if the returned value is @c NULL, another thread's queue | ||
480 | * may be associated with a window that has the keyboard focus. | ||
481 | * | ||
482 | * @note The returned value is of type HWND. | ||
483 | */ | ||
484 | EAPI void * | ||
485 | ecore_wince_window_focus_get(void) | ||
486 | { | ||
487 | HWND focused; | ||
488 | |||
489 | INF("getting focused window"); | ||
490 | |||
491 | focused = GetFocus(); | ||
492 | if (!focused) | ||
493 | { | ||
494 | ERR("GetFocus() failed"); | ||
495 | return NULL; | ||
496 | } | ||
497 | |||
498 | return focused; | ||
499 | } | ||
500 | |||
501 | /** | ||
450 | * @brief Set the graphic backend used for the given window. | 502 | * @brief Set the graphic backend used for the given window. |
451 | * | 503 | * |
452 | * @param window The window. | 504 | * @param window The window. |