efl_extension_rotary: add eext_rotary_object_event_activated_get API 81/220981/2 accepted/tizen/unified/20191227.142759 submit/tizen/20191226.210901
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 26 Dec 2019 06:42:23 +0000 (15:42 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Thu, 26 Dec 2019 06:53:09 +0000 (15:53 +0900)
Change-Id: I7099702de9aa4a49b9e420152b64eefd6e5a4a6d

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

index f3a98ba2df271fd93f63ccd28ed7954b93259bd0..55aadc0abc27ed15a5eff699042bd1d5324ca1fb 100644 (file)
@@ -288,6 +288,23 @@ EAPI void *eext_rotary_event_handler_del(Eext_Rotary_Handler_Cb func);
  */
 EAPI void eext_rotary_object_event_activated_set(Evas_Object *obj, Eina_Bool activated);
 
+/**
+ * @WEARABLE_ONLY
+ * @brief Get the activated status of the given object.
+ *
+ * @details This function gets the activated status of the given object.
+ * @ref eext_rotary_object_event_activated_set.
+ *
+ * @param[in] obj The object to get the activated status.
+ *
+ * @return @c EINA_TRUE if the given object is activated.
+ *         @c EINA_FALSE otherwise.
+ *
+ * @if WEARABLE @since_tizen 5.5
+ * @endif
+ */
+EAPI Eina_Bool eext_rotary_object_event_activated_get(Evas_Object *obj);
+
 /**
  * @}
  */
index 6ec8fb494c34944b32ad688999889deb6f3576dc..f523272fc0dba79f1133caca0ac88d4da7d9bb0c 100644 (file)
@@ -368,6 +368,21 @@ eext_rotary_object_event_activated_set(Evas_Object *obj, Eina_Bool activated)
      }
 }
 
+EAPI Eina_Bool
+eext_rotary_object_event_activated_get(Evas_Object *obj)
+{
+   if (obj == NULL)
+     return EINA_FALSE;
+
+   if (_activated_obj == NULL)
+     return EINA_FALSE;
+
+   if (_activated_obj == obj)
+     return EINA_TRUE;
+   else
+     return EINA_FALSE;
+}
+
 #ifdef WITH_WAYLAND
 static void
 _rotary_rotate_event_free(void *udata EINA_UNUSED, void *fdata)