*/
Toolkit::DevelControl::ControlAccessible* GetAccessibleObject();
+ /**
+ * @copydoc Dali::Toolkit::DevelControl::IsAccessibleCreated()
+ */
+ bool IsAccessibleCreated() const;
+
+ /**
+ * @copydoc Dali::Toolkit::DevelControl::EnableCreateAccessible()
+ */
+ void EnableCreateAccessible(bool enable);
+
+ /**
+ * @copydoc Dali::Toolkit::DevelControl::IsCreateAccessibleEnabled()
+ */
+ bool IsCreateAccessibleEnabled() const;
+
private:
/**
* Used as an alternative to boolean so that it is obvious whether a visual is enabled/disabled.
/**
* @brief Callbacks called on idle.
+ *
+ * @return True if we need to call this idle callback one more time.
*/
- void OnIdleCallback();
+ bool OnIdleCallback();
/**
* @brief Checks highlighted object geometry if it is showing or not
void RegisterAccessibilityPositionPropertyNotification();
/**
- * @brief Remove property notification added by RegisterPropertyNotification
+ * @brief Remove property notification added by RegisterAccessibilityPositionPropertyNotification
*/
void UnregisterAccessibilityPositionPropertyNotification();
+ /**
+ * @brief Register PropertySet signal to check highlighted object name and description
+ */
+ void RegisterAccessibilityPropertySetSignal();
+
+ /**
+ * @brief Remove PropertySet signal added by RegisterAccessibilityPropertySetSignal
+ */
+ void UnregisterAccessibilityPropertySetSignal();
+
+ /**
+ * @brief Signal callback of PropertySet when this object is become highlighted, so RegisterAccessibilityPropertySetSignal called.
+ *
+ * @param[in] handle Handle of the control.
+ * @param[in] index The index of property.
+ * @param[in] value The value of property.
+ */
+ void OnAccessibilityPropertySet(Dali::Handle& handle, Dali::Property::Index index, const Dali::Property::Value& value);
+
public:
Control& mControlImpl;
DevelControl::State mState;
bool mAccessibilityHighlightable = false;
bool mAccessibilityHidden = false;
+ bool mAccessibleCreatable = true;
Dali::Accessibility::Role mAccessibilityRole = Dali::Accessibility::Role::UNKNOWN;
bool mIsKeyboardNavigationSupported : 1; ///< Stores whether keyboard navigation is supported by the control.
bool mIsKeyboardFocusGroup : 1; ///< Stores whether the control is a focus group.
bool mIsEmittingResourceReadySignal : 1; ///< True during ResourceReady().
- bool mNeedToEmitResourceReady : 1; ///< True if need to emit the resource ready signal again.
+ bool mIdleCallbackRegistered : 1; ///< True if need to emit the resource ready signal again.
bool mDispatchKeyEvents : 1; ///< Whether the actor emits key event signals
RegisteredVisualContainer mRemoveVisuals; ///< List of visuals that are being replaced by another visual once ready
private:
// Accessibility - notification for highlighted object to check if it is showing.
bool mIsAccessibilityPositionPropertyNotificationSet{false};
+ bool mIsAccessibilityPropertySetSignalRegistered{false};
Dali::PropertyNotification mAccessibilityPositionNotification;
Dali::Accessibility::ScreenRelativeMoveType mAccessibilityLastScreenRelativeMoveType{Accessibility::ScreenRelativeMoveType::OUTSIDE};
};