efl_extension_rotary: add eext_rotary_event_activated_object_get API 33/224133/3
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 6 Feb 2020 11:06:51 +0000 (20:06 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Fri, 7 Feb 2020 06:03:34 +0000 (15:03 +0900)
Change-Id: Ia52703babe7d05b0cb212ef6366d9eb5ab5bd115

inc/wearable/circle/efl_extension_rotary.h
src/wearable/circle/efl_extension_rotary.c

index be4780e6bbe11dc2852be0da7adfdaa9ee1ec257..682f49d445522c4f3c7d64acc230acc389e58fea 100644 (file)
@@ -321,6 +321,17 @@ EAPI void eext_rotary_object_event_activated_set(Evas_Object *obj, Eina_Bool act
  */
 EAPI Eina_Bool eext_rotary_object_event_activated_get(Evas_Object *obj);
 
+/**
+ * @WEARABLE_ONLY
+ * @brief Get the activated object which can receive the current rotary event.
+ *
+ * @return An @ref Evas_Object handle which is rotary event activated, otherwise @c NULL in case of an error.
+ *
+ * @if WEARABLE @since_tizen 5.5
+ * @endif
+ */
+EAPI Evas_Object *eext_rotary_event_activated_object_get();
+
 /**
  * @}
  */
index 7a5760f9b0c3dff2ccfa423150f2830587b86353..903d65465c0b5d1f3c5623dd216296a859954a41 100644 (file)
@@ -383,6 +383,15 @@ eext_rotary_object_event_activated_get(Evas_Object *obj)
      return EINA_FALSE;
 }
 
+EAPI Evas_Object *
+eext_rotary_event_activated_object_get()
+{
+   if (_activated_obj)
+     return _activated_obj;
+   else
+     return NULL;
+}
+
 #include <system_info.h>
 #include <vconf.h>