X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Faccessible-impl.h;h=8bd07143bd42dcb553aaa7b8b2e59e300d49831b;hp=37e7ad34c489f67f548b89f9b0f489f599dd318b;hb=90168515fb4b80ff64c068769420c0235a225d71;hpb=fa3f750c6878eb126034d7958458dc3a1f67924f diff --git a/dali-toolkit/devel-api/controls/accessible-impl.h b/dali-toolkit/devel-api/controls/accessible-impl.h index 37e7ad3..8bd0714 100644 --- a/dali-toolkit/devel-api/controls/accessible-impl.h +++ b/dali-toolkit/devel-api/controls/accessible-impl.h @@ -47,6 +47,7 @@ struct DALI_TOOLKIT_API AccessibleImpl : public virtual Dali::Accessibility::Acc public virtual Dali::Accessibility::Action { protected: + Vector2 mLastPosition{0.0f, 0.0f}; Dali::WeakHandle mSelf; Dali::WeakHandle mCurrentHighlightActor; bool mIsModal = false; @@ -65,6 +66,22 @@ protected: void ScrollToSelf(); + /** + * @brief Register property notification to check highlighted object position + */ + void RegisterPositionPropertyNotification(); + + /** + * @brief Remove property notification added by RegisterPropertyNotification + */ + void UnregisterPositionPropertyNotification(); + + /** + * @brief Check if the actor is showing + * @return True if the actor is showing + */ + bool IsShowing(); + public: AccessibleImpl(Dali::Actor self, Dali::Accessibility::Role role, bool modal = false); @@ -209,12 +226,17 @@ public: std::vector GetRelationSet() override; /** + * @copydoc Dali::Accessibility::Accessible::GetInternalActor() + */ + Dali::Actor GetInternalActor() override; + + /** * @copydoc Dali::Accessibility::Accessible::GetStates() */ virtual Dali::Accessibility::States CalculateStates(); /** - * @brief Makes sure that a given child of this container (e.g. ItemView) is visible + * @brief Makes sure that a given child (descendant) of this container (e.g. ItemView) is visible * @return false if scrolling is not supported or child is already visible */ virtual bool ScrollToChild(Actor child); @@ -228,6 +250,18 @@ public: * @brief Returns the index of the property that represents this actor's description */ virtual Dali::Property::Index GetDescriptionPropertyIndex(); + + /** + * @brief Sets last object position + * @param[in] position Last object position + */ + void SetLastPosition(Vector2 position); + + /** + * @brief Gets last object position + * @return The Last object position + */ + Vector2 GetLastPosition() const; }; } // namespace Dali::Toolkit::DevelControl