[AT-SPI] Implement Value::GetValueText() 22/291322/3
authorArtur Świgoń <a.swigon@samsung.com>
Thu, 13 Apr 2023 09:31:02 +0000 (11:31 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Fri, 14 Apr 2023 08:59:33 +0000 (10:59 +0200)
Change-Id: I00038f6e06166a3c3b6f12484f1a4ed12c30494b

dali-csharp-binder/src/nui-view-accessible.cpp
dali-csharp-binder/src/nui-view-accessible.h

index 8f29698ff96025b12bc05adbcefa74f1ed545527..e0b566fd6e6e99fa1939e9c06ee513bff836767a 100644 (file)
@@ -83,6 +83,7 @@ struct NUIViewAccessible::AccessibilityDelegate
   bool                  (*deselectChild)           (RefObject*, int);              // 35
   Rect<int>*            (*getRangeExtents)         (RefObject*, int, int, int);    // 36
   void                  (*getAttributes)           (RefObject*, GetAttributesCallbackType, Accessibility::Attributes*); // 37
+  char*                 (*getValueText)            (RefObject*);                   // 38
   // clang-format on
 };
 
@@ -269,6 +270,13 @@ double NUIViewAccessible::GetCurrent() const
   return CallMethod<Interface::VALUE>(mTable->getCurrent);
 }
 
+std::string NUIViewAccessible::GetValueText() const
+{
+  char *text = CallMethod<Interface::VALUE>(mTable->getValueText);
+
+  return StealString(text);
+}
+
 double NUIViewAccessible::GetMaximum() const
 {
   return CallMethod<Interface::VALUE>(mTable->getMaximum);
index 4aad8cf9e959ffcdccea7e015d4261e7fe1a979d..2c26fa459ec736d063d2313877019e452a934648 100644 (file)
@@ -83,6 +83,8 @@ public:
 
   double GetCurrent() const override;
 
+  std::string GetValueText() const override;
+
   double GetMaximum() const override;
 
   bool SetCurrent(double value) override;