return ret;
}
-struct AccessibleImpl_NUI : public AccessibleImpl
+struct NUIViewAccessible : public ControlAccessible
{
// Points to memory managed from the C# side
const AccessibilityDelegate *table;
- AccessibleImpl_NUI() = delete;
- AccessibleImpl_NUI(const AccessibleImpl_NUI &) = delete;
- AccessibleImpl_NUI(AccessibleImpl_NUI &&) = delete;
+ NUIViewAccessible() = delete;
+ NUIViewAccessible(const NUIViewAccessible &) = delete;
+ NUIViewAccessible(NUIViewAccessible &&) = delete;
- AccessibleImpl_NUI& operator=(const AccessibleImpl_NUI &) = delete;
- AccessibleImpl_NUI& operator=(AccessibleImpl_NUI &&) = delete;
+ NUIViewAccessible& operator=(const NUIViewAccessible &) = delete;
+ NUIViewAccessible& operator=(NUIViewAccessible &&) = delete;
- AccessibleImpl_NUI(Dali::Actor actor, Dali::Accessibility::Role role, const AccessibilityDelegate *vtable)
- : AccessibleImpl(actor, role, false), table{vtable} {}
+ NUIViewAccessible(Dali::Actor actor, Dali::Accessibility::Role role, const AccessibilityDelegate *vtable)
+ : ControlAccessible(actor, role, false), table{vtable} {}
- std::string GetNameRaw() override
+ std::string GetNameRaw() const override
{
std::string ret{};
return ret;
}
- std::string GetDescriptionRaw() override
+ std::string GetDescriptionRaw() const override
{
std::string ret{};
bool GrabHighlight() override
{
- bool ret = AccessibleImpl::GrabHighlight();
+ bool ret = ControlAccessible::GrabHighlight();
if (ret)
{
return ret;
}
- std::string GetActionName(std::size_t index) override
+ std::string GetActionName(std::size_t index) const override
{
std::string ret{};
return ret;
}
- std::size_t GetActionCount() override
+ std::size_t GetActionCount() const override
{
std::size_t ret{0};
Dali::Accessibility::States CalculateStates() override
{
Dali::Accessibility::States ret{};
- auto states = AccessibleImpl::CalculateStates();
+ auto states = ControlAccessible::CalculateStates();
uint64_t baseStates = states.GetRawData()[0];
uint64_t high = states.GetRawData()[1];
return Dali::Property::INVALID_INDEX;
}
- virtual bool ShouldReportZeroChildren()
+ virtual bool ShouldReportZeroChildren() const
{
bool ret{false};
return ret;
}
- std::size_t GetChildCount() override
+ std::size_t GetChildCount() const override
{
bool highlighted = (Self() == Dali::Accessibility::Accessible::GetCurrentlyHighlightedActor());
}
else
{
- return AccessibleImpl::GetChildCount();
+ return ControlAccessible::GetChildCount();
}
}
}
else
{
- return AccessibleImpl::GetChildAtIndex(index);
+ return ControlAccessible::GetChildAtIndex(index);
}
}
- bool IsScrollable() override
+ bool IsScrollable() const override
{
bool ret{false};
}
};
-struct AccessibleImpl_NUI_Value : public AccessibleImpl_NUI,
- public virtual Dali::Accessibility::Value
+struct NUIViewAccessible_Value : public NUIViewAccessible,
+ public virtual Dali::Accessibility::Value
{
- using AccessibleImpl_NUI::AccessibleImpl_NUI;
+ using NUIViewAccessible::NUIViewAccessible;
- double GetMinimum() override
+ double GetMinimum() const override
{
double ret{0.0};
return ret;
}
- double GetCurrent() override
+ double GetCurrent() const override
{
double ret{0.0};
return ret;
}
- double GetMaximum() override
+ double GetMaximum() const override
{
double ret{0.0};
return ret;
}
- double GetMinimumIncrement() override
+ double GetMinimumIncrement() const override
{
double ret{0.0};
}
};
-struct AccessibleImpl_NUI_EditableText : public AccessibleImpl_NUI,
- public virtual Dali::Accessibility::Text,
- public virtual Dali::Accessibility::EditableText
+struct NUIViewAccessible_EditableText : public NUIViewAccessible,
+ public virtual Dali::Accessibility::EditableText
{
- using AccessibleImpl_NUI::AccessibleImpl_NUI;
+ using NUIViewAccessible::NUIViewAccessible;
- std::string GetText(std::size_t startOffset, std::size_t endOffset) override
+ std::string GetText(std::size_t startOffset, std::size_t endOffset) const override
{
std::string ret{};
return ret;
}
- std::size_t GetCharacterCount() override
+ std::size_t GetCharacterCount() const override
{
std::size_t ret{0};
return ret;
}
- std::size_t GetCursorOffset() override
+ std::size_t GetCursorOffset() const override
{
std::size_t ret{0};
return ret;
}
- Dali::Accessibility::Range GetTextAtOffset(std::size_t offset, Dali::Accessibility::TextBoundary boundary) override
+ Dali::Accessibility::Range GetTextAtOffset(std::size_t offset, Dali::Accessibility::TextBoundary boundary) const override
{
Dali::Accessibility::Range ret{};
return ret;
}
- Dali::Accessibility::Range GetRangeOfSelection(std::size_t selectionIndex) override
+ Dali::Accessibility::Range GetRangeOfSelection(std::size_t selectionIndex) const override
{
Dali::Accessibility::Range ret{};
}
};
-struct AccessibleImpl_NUI_Selection : public AccessibleImpl_NUI,
- public virtual Dali::Accessibility::Selection
+struct NUIViewAccessible_Selection : public NUIViewAccessible,
+ public virtual Dali::Accessibility::Selection
{
- using AccessibleImpl_NUI::AccessibleImpl_NUI;
+ using NUIViewAccessible::NUIViewAccessible;
- int GetSelectedChildrenCount() override
+ int GetSelectedChildrenCount() const override
{
int ret{0};
return ret;
}
- bool IsChildSelected(int childIndex) override
+ bool IsChildSelected(int childIndex) const override
{
bool ret{false};
DALI_LOG_ERROR("SetAccessibilityConstructor_NUI error: unknown interface %d", iface);
// fall-through
case IFACE_NONE:
- accessible = new AccessibleImpl_NUI(actor, role, vtable);
+ accessible = new NUIViewAccessible(actor, role, vtable);
break;
case IFACE_VALUE:
- accessible = new AccessibleImpl_NUI_Value(actor, role, vtable);
+ accessible = new NUIViewAccessible_Value(actor, role, vtable);
break;
case IFACE_EDITABLE_TEXT:
- accessible = new AccessibleImpl_NUI_EditableText(actor, role, vtable);
+ accessible = new NUIViewAccessible_EditableText(actor, role, vtable);
break;
case IFACE_SELECTION:
- accessible = new AccessibleImpl_NUI_Selection(actor, role, vtable);
+ accessible = new NUIViewAccessible_Selection(actor, role, vtable);
break;
}