From 8d254c377701f5167b26b5634cdff0abb24ee408 Mon Sep 17 00:00:00 2001 From: Jiyoun Park Date: Thu, 14 Dec 2017 14:35:22 +0900 Subject: [PATCH] elm_win_input_rect_set/add/subtract added Before_Change-Id: I0ff5ae24eb30b3d824da7fd020db96fe41eac6cc Signed-off-by: Junghwan Choi Change-Id: Iaf9b0ca33f1bdde5d4a42f78fdcaa3ebb307a3d7 --- src/lib/elementary/efl_ui_win.c | 23 +++++++++++++++++++++++ src/lib/elementary/elm_win_common.h | 5 +++++ src/lib/elementary/elm_win_legacy.h | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index dda5dbe..9c4707d 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -9529,6 +9529,29 @@ elm_win_teamwork_uri_open(Efl_Ui_Win *obj EINA_UNUSED, const char *uri EINA_UNUS ERR("Calling deprecrated function '%s'", __FUNCTION__); } +// TIZEN_ONLY(20160216) : elm_win_input_rect_set/add/subtract added +EAPI void +elm_win_input_rect_set(Evas_Object *obj, Eina_Rectangle *input_rect) +{ + ELM_WIN_DATA_GET_OR_RETURN(obj, sd); + TRAP(sd, input_rect_set, input_rect); +} + +EAPI void +elm_win_input_rect_add(Evas_Object *obj, Eina_Rectangle *input_rect) +{ + ELM_WIN_DATA_GET_OR_RETURN(obj, sd); + TRAP(sd, input_rect_add, input_rect); +} + +EAPI void +elm_win_input_rect_subtract(Evas_Object *obj, Eina_Rectangle *input_rect) +{ + ELM_WIN_DATA_GET_OR_RETURN(obj, sd); + TRAP(sd, input_rect_subtract, input_rect); +} +// + // TIZEN_ONLY(20160617) : add elm_win_active_win_orientation_get EAPI int elm_win_active_win_orientation_get(Evas_Object *obj) diff --git a/src/lib/elementary/elm_win_common.h b/src/lib/elementary/elm_win_common.h index a0d4fef..550b16a 100644 --- a/src/lib/elementary/elm_win_common.h +++ b/src/lib/elementary/elm_win_common.h @@ -55,6 +55,11 @@ struct _Elm_Win_Trap Eina_Bool (*title_set)(void *data, Evas_Object *o, const char *t); Eina_Bool (*urgent_set)(void *data, Evas_Object *o, Eina_Bool urgent); Eina_Bool (*withdrawn_set)(void *data, Evas_Object *o, Eina_Bool withdrawn); +// TIZEN_ONLY(20160216) : elm_win_input_rect_set/add/subtract added + Eina_Bool (*input_rect_set)(void *data, Evas_Object *o, Eina_Rectangle *input_rect); + Eina_Bool (*input_rect_add)(void *data, Evas_Object *o, Eina_Rectangle *input_rect); + Eina_Bool (*input_rect_subtract)(void *data, Evas_Object *o, Eina_Rectangle *input_rect); +// }; /** diff --git a/src/lib/elementary/elm_win_legacy.h b/src/lib/elementary/elm_win_legacy.h index 6ac8425..49d6562 100644 --- a/src/lib/elementary/elm_win_legacy.h +++ b/src/lib/elementary/elm_win_legacy.h @@ -1288,6 +1288,41 @@ EAPI Eina_Bool elm_win_focus_highlight_animate_get(const Elm_Win *obj); */ EAPI void elm_win_raise(Elm_Win *obj); +// TIZEN_ONLY(20160216): elm_win_input_rect_set/add/subtract added +/** + * @internal + * @remarks Tizen only feature + * + * @brief Sets an input rect of surface. + * @remarks Support for this depends on the underlying windowing system. + * @param obj The window object + * @param input_rect The rectangle of input to be set + */ +EAPI void elm_win_input_rect_set(Evas_Object *obj, Eina_Rectangle *input_rect); + +/** + * @internal + * @remarks Tizen only feature + * + * @brief Adds an input rect of surface. + * @remarks Support for this depends on the underlying windowing system. + * @param obj The window object + * @param input_rect The rectangle of input to be added + */ +EAPI void elm_win_input_rect_add(Evas_Object *obj, Eina_Rectangle *input_rect); + +/** + * @internal + * @remarks Tizen only feature + * + * @brief Subtracts an input rect of surface. + * @remarks Support for this depends on the underlying windowing system. + * @param obj The window object + * @param input_rect The rectangle of input to be subtracted + */ +EAPI void elm_win_input_rect_subtract(Evas_Object *obj, Eina_Rectangle *input_rect); +// + /** * @brief Set the array of available profiles to a window. * -- 2.7.4