Efl_Access_Reading_Info_Cb_Item name_cb_item;
Efl_Access_Reading_Info_Cb_Item description_cb_item;
//
+ //TIZEN_ONLY(20230414): Support org.a11y.atspi.Value.Text property.
+ Efl_Access_Reading_Info_Cb_Item value_text_cb_item;
+ //
//TIZEN_ONLY(20170405) Add gesture method to accessible interface
Efl_Access_Gesture_Cb_Item gesture_cb_item;
Elm_Atspi_Gesture_Cb_Item legacy_gesture_cb_item;
Eina_List *attr_list;
const char *name;
const char *description;
+ //TIZEN_ONLY(20230414): Support org.a11y.atspi.Value.Text property.
+ const char *value_text;
+ //
const char *translation_domain;
Efl_Access_Role role;
Efl_Access_Reading_Info_Type_Mask reading_info;
}
//
+//TIZEN_ONLY(20230414): Support org.a11y.atspi.Value.Text property.
+EOLIAN static const char *
+_efl_access_object_value_text_get(const Eo *obj, Efl_Access_Object_Data *pd)
+{
+ char *ret = NULL;
+ if (pd->value_text_cb_item.cb)
+ ret = pd->value_text_cb_item.cb((void *)pd->value_text_cb_item.data, (Eo *)obj);
+ if (ret)
+ {
+ eina_stringshare_replace(&pd->value_text, ret);
+ free(ret);
+ }
+ return pd->value_text;
+}
+
+EOLIAN static void
+_efl_access_object_value_text_set(Eo *obj EINA_UNUSED, Efl_Access_Object_Data *pd, const char *val)
+{
+ eina_stringshare_replace(&pd->value_text, val);
+}
+
+EOLIAN static void
+_efl_access_object_value_text_cb_set(Eo *obj EINA_UNUSED, Efl_Access_Object_Data *pd, Efl_Access_Reading_Info_Cb value_text_cb, const void *data)
+{
+ pd->value_text_cb_item.cb = value_text_cb;
+ pd->value_text_cb_item.data = data;
+}
+//
+
//TIZEN_ONLY(20170405) Add gesture method to accessible interface
EOLIAN static void
_efl_access_object_gesture_cb_set(Eo *obj EINA_UNUSED, Efl_Access_Object_Data *pd, Efl_Access_Gesture_Cb gesture_cb, const void *data)
}
}
//
+ //TIZEN_ONLY(20230414): Support org.a11y.atspi.Value.Text property.
+ @property value_text_cb @beta {
+ [[The callback for textual representation of value carried by object.]]
+ set {
+ }
+ values {
+ value_text_cb: Efl.Access.Reading_Info_Cb; [[The callback for textual representation of value]]
+ data: const (void_ptr);
+ }
+ }
+ @property value_text @beta {
+ [[Textual representation of value carried by object.]]
+ get {
+ }
+ set {
+ }
+ values {
+ value_text: string; [[Textual representation of value carried by object]]
+ }
+ }
+ //
@property relation_set @protected @beta {
[[An all relations between accessible object and other accessible objects.]]
get {
efl_access_object_description_cb_set(eo_item, NULL, NULL);
efl_access_object_name_cb_set(eo_item, NULL, NULL);
//
+ //TIZEN_ONLY(20230414): Support org.a11y.atspi.Value.Text property.
+ efl_access_object_value_text_set(eo_item, NULL);
+ efl_access_object_value_text_cb_set(eo_item, NULL, NULL);
+ //
//TIZEN_ONLY(20170405) Add gesture method to accessible interface
efl_access_object_gesture_cb_set(eo_item, NULL, NULL);
//
efl_access_object_description_cb_set(obj, NULL, NULL);
efl_access_object_name_cb_set(obj, NULL, NULL);
//
+ //TIZEN_ONLY(20230414): Support org.a11y.atspi.Value.Text property.
+ efl_access_object_value_text_set(obj, NULL);
+ efl_access_object_value_text_cb_set(obj, NULL, NULL);
+ //
//TIZEN_ONLY(20170405) Add gesture method to accessible interface
efl_access_object_gesture_cb_set(obj, NULL, NULL);
//
_elm_slider_efl_access_value_value_and_text_get(const Eo *obj EINA_UNUSED, Elm_Slider_Data *sd, double *value, const char **text)
{
if (value) *value = sd->val;
- if (text) *text = NULL;
+ //TIZEN_ONLY(20230414): Support org.a11y.atspi.Value.Text property.
+ if (text) *text = efl_access_object_value_text_get(efl_super(obj, MY_CLASS));
+ //
}
EOLIAN static Eina_Bool