elm_win_input_rect_set/add/subtract added 13/58513/2
authorJunghwan Choi <jhhh.choi@samsung.com>
Mon, 1 Feb 2016 14:15:44 +0000 (23:15 +0900)
committerJunghwan Choi <jhhh.choi@samsung.com>
Tue, 16 Feb 2016 08:04:16 +0000 (17:04 +0900)
Change-Id: I0ff5ae24eb30b3d824da7fd020db96fe41eac6cc
Signed-off-by: Junghwan Choi <jhhh.choi@samsung.com>
src/lib/elm_win.c
src/lib/elm_win.h
src/lib/elm_win_common.h

index c5f33e4ff8eff562a1c30e978913e298cda10e43..48b9923af8d204504c303e71c9a213e60c12e3ef 100644 (file)
@@ -5969,4 +5969,29 @@ elm_win_profiles_set(Evas_Object *obj, const char **profiles, unsigned int num_p
 
    _elm_win_available_profiles_set(obj, sd, profiles, num_profiles);
 }
+
+EAPI void
+elm_win_input_rect_set(Evas_Object *obj, Eina_Rectangle *input_rect)
+{
+   ELM_WIN_CHECK(obj) EINA_FALSE;
+   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_CHECK(obj) EINA_FALSE;
+   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_CHECK(obj) EINA_FALSE;
+   ELM_WIN_DATA_GET_OR_RETURN(obj, sd);
+   TRAP(sd, input_rect_subtract, input_rect);
+}
+
 //////////////////////////////////////////////////////////////////
index d29f2a5c6766b8da7da89d84f24f5fc589b70667..a7c92dd4b8bdf0b59e38c9cb61efa27c2da1b656 100644 (file)
@@ -218,6 +218,39 @@ EAPI const char           *elm_win_aux_hint_val_get(Evas_Object *obj, int id);
  */
 EAPI int                   elm_win_aux_hint_id_get(Evas_Object *obj, const char *hint);
 
+/**
+ * @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);
+
 /**
  * @}
  */
index 02d8bd4e203921b9e7f0f988bc823a5abcfefe08..39e8d04bf0efc30dd52a5a066238a48ac326eebb 100644 (file)
@@ -55,6 +55,9 @@ 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);
+   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);
 };
 
 /**