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=aa5084a34862eb02d27c282349c0b34aa4ec97d6;hp=ab168c67c1392a474ae503f0aed0d2359f221e2f;hb=22e4cff18fd079527c93d76f1d4f784b25731e12;hpb=34ff717e1cc4869695d01f8d2add4180f19811e8 diff --git a/dali-toolkit/devel-api/controls/accessible-impl.h b/dali-toolkit/devel-api/controls/accessible-impl.h index ab168c6..aa5084a 100644 --- a/dali-toolkit/devel-api/controls/accessible-impl.h +++ b/dali-toolkit/devel-api/controls/accessible-impl.h @@ -47,13 +47,15 @@ struct DALI_TOOLKIT_API AccessibleImpl : public virtual Dali::Accessibility::Acc public virtual Dali::Accessibility::Action { protected: - Dali::WeakHandle self; - Dali::WeakHandle currentHighlightActor; - bool modal = false, root = false; + Vector2 mLastPosition{0.0f, 0.0f}; + Dali::WeakHandle mSelf; + Dali::WeakHandle mCurrentHighlightActor; + bool mIsModal = false; + bool mIsRoot = false; Dali::Actor Self() { - auto handle = self.GetHandle(); + auto handle = mSelf.GetHandle(); // Control::Impl holds a std::unique_ptr to the Accessible object, // so that one does not outlive the other. @@ -64,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); @@ -113,6 +131,11 @@ public: Dali::Accessibility::Role GetRole() override; /** + * @copydoc Dali::Accessibility::Accessible::GetLocalizedRoleName() + */ + std::string GetLocalizedRoleName() override; + + /** * @copydoc Dali::Accessibility::Accessible::GetStates() */ Dali::Accessibility::States GetStates() override; @@ -125,7 +148,7 @@ public: /** * @copydoc Dali::Accessibility::Component::GetExtents() */ - Dali::Rect<> GetExtents(Dali::Accessibility::CoordType ctype) override; + Dali::Rect<> GetExtents(Accessibility::CoordinateType type) override; /** * @copydoc Dali::Accessibility::Component::GetLayer() @@ -222,6 +245,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