Added GetReadPosition to AccessibilityManager API 94/42394/6
authorTom Robinson <tom.robinson@samsung.com>
Fri, 26 Jun 2015 16:15:30 +0000 (17:15 +0100)
committerTom Robinson <tom.robinson@samsung.com>
Thu, 2 Jul 2015 10:12:47 +0000 (03:12 -0700)
As per request, re-added GetReadPosition to public API.

Change-Id: I2dddbfa24f732856fd3f5a233498873d29687423

dali-toolkit/internal/accessibility-manager/accessibility-manager-impl.cpp
dali-toolkit/internal/accessibility-manager/accessibility-manager-impl.h
dali-toolkit/public-api/accessibility-manager/accessibility-manager.cpp
dali-toolkit/public-api/accessibility-manager/accessibility-manager.h

index 16e0c64..935e09f 100644 (file)
@@ -553,6 +553,12 @@ Actor AccessibilityManager::GetFocusGroup(Actor actor)
   return actor;
 }
 
+Vector2 AccessibilityManager::GetReadPosition() const
+{
+  AccessibilityAdaptor adaptor = AccessibilityAdaptor::Get();
+  return adaptor.GetReadPosition();
+}
+
 void AccessibilityManager::SetGroupMode(bool enabled)
 {
   mIsFocusWithinGroup = enabled;
index e37e319..1603a02 100644 (file)
@@ -198,6 +198,11 @@ public:
    */
   Actor GetFocusGroup(Actor actor);
 
+  /**
+   * @copydoc Toolkit::AccessibilityManager::GetReadPosition
+   */
+  Vector2 GetReadPosition() const;
+
 public:
 
   /**
index 0110ef7..79ab14d 100644 (file)
@@ -186,6 +186,11 @@ Actor AccessibilityManager::GetFocusGroup(Actor actor)
   return GetImpl(*this).GetFocusGroup(actor);
 }
 
+Vector2 AccessibilityManager::GetReadPosition() const
+{
+  return GetImpl(*this).GetReadPosition();
+}
+
 AccessibilityManager::FocusChangedSignalType& AccessibilityManager::FocusChangedSignal()
 {
   return GetImpl(*this).FocusChangedSignal();
index 703d414..9f807ac 100644 (file)
@@ -375,6 +375,12 @@ public:
    */
   Actor GetFocusGroup(Actor actor);
 
+  /**
+   * @brief Returns the current position of the read action.
+   * @return The current event position.
+   */
+  Vector2 GetReadPosition() const;
+
  public: // Signals
 
   /**