2019-03-08 06:55:43 -08:00
|
|
|
enum @beta Efl.Access.Type
|
2015-11-26 07:53:32 -08:00
|
|
|
{
|
|
|
|
[[Type of accessibility object]]
|
2018-08-29 22:01:21 -07:00
|
|
|
regular, [[default accessible object]]
|
2015-11-26 07:53:32 -08:00
|
|
|
disabled, [[skip object and its children in accessibility hierarchy]]
|
|
|
|
skipped [[skip object in accessibility hierarchy]]
|
|
|
|
}
|
|
|
|
|
2019-03-08 06:55:43 -08:00
|
|
|
enum @beta Efl.Access.Role
|
2016-02-01 06:14:17 -08:00
|
|
|
{
|
2017-10-18 18:13:54 -07:00
|
|
|
[[Describes the role of an object visible to Accessibility Clients.]]
|
2016-10-24 04:18:26 -07:00
|
|
|
invalid, [[Role: invalid]]
|
|
|
|
accelerator_label, [[Role: accelerator label]]
|
|
|
|
alert, [[Role: alert]]
|
|
|
|
animation, [[Role: animation]]
|
|
|
|
arrow, [[Role: arrow]]
|
|
|
|
calendar, [[Role: calendar]]
|
|
|
|
canvas, [[Role: canvas]]
|
|
|
|
check_box, [[Role: check box]]
|
|
|
|
check_menu_item, [[Role: check menu item]]
|
|
|
|
color_chooser, [[Role: color chooser]]
|
|
|
|
column_header, [[Role: column header]]
|
|
|
|
combo_box, [[Role: combo box]]
|
|
|
|
date_editor, [[Role: data editor]]
|
|
|
|
desktop_icon, [[Role: desktop icon]]
|
|
|
|
desktop_frame, [[Role: desktop frame]]
|
|
|
|
dial, [[Role: dial]]
|
|
|
|
dialog, [[Role: dialog]]
|
|
|
|
directory_pane, [[Role: directory pane]]
|
|
|
|
drawing_area, [[Role: drawing area]]
|
|
|
|
file_chooser, [[Role: file chooser]]
|
|
|
|
filler, [[Role: filler]]
|
|
|
|
focus_traversable, [[Role: focus traversable]]
|
|
|
|
font_chooser, [[Role: font chooser]]
|
|
|
|
frame, [[Role: frame]]
|
|
|
|
glass_pane, [[Role: glass pane]]
|
|
|
|
html_container, [[Role: HTML container]]
|
|
|
|
icon, [[Role: icon]]
|
|
|
|
image, [[Role: image]]
|
|
|
|
internal_frame, [[Role: internal frame]]
|
|
|
|
label, [[Role: label]]
|
|
|
|
layered_pane, [[Role: layered pane]]
|
|
|
|
list, [[Role: list]]
|
|
|
|
list_item, [[Role: list item]]
|
|
|
|
menu, [[Role: menu]]
|
|
|
|
menu_bar, [[Role: menu bar]]
|
|
|
|
menu_item, [[Role: menu item]]
|
|
|
|
option_pane, [[Role: option pane]]
|
|
|
|
page_tab, [[Role: page tab]]
|
|
|
|
page_tab_list, [[Role: page tab list]]
|
|
|
|
panel, [[Role: panel]]
|
|
|
|
password_text, [[Role: password text]]
|
|
|
|
popup_menu, [[Role: popup menu]]
|
|
|
|
progress_bar, [[Role: progress bar]]
|
|
|
|
push_button, [[Role: push button]]
|
|
|
|
radio_button, [[Role: radio button]]
|
|
|
|
radio_menu_item, [[Role: radio menu item]]
|
|
|
|
root_pane, [[Role: root pane]]
|
|
|
|
row_header, [[Role: row header]]
|
|
|
|
scroll_bar, [[Role: scroll bar]]
|
|
|
|
scroll_pane, [[Role: scroll pane]]
|
|
|
|
separator, [[Role: separator]]
|
|
|
|
slider, [[Role: slider]]
|
|
|
|
spin_button, [[Role: spin button]]
|
|
|
|
split_pane, [[Role: split pane]]
|
|
|
|
status_bar, [[Role: status bar]]
|
|
|
|
table, [[Role: table]]
|
|
|
|
table_cell, [[Role: table cell]]
|
|
|
|
table_column_header, [[Role: table column header]]
|
|
|
|
table_row_header, [[Role: table row header]]
|
|
|
|
tearoff_menu_item, [[Role: tearoff menu item]]
|
|
|
|
terminal, [[Role: terminal]]
|
|
|
|
text, [[Role: text]]
|
|
|
|
toggle_button, [[Role: toggle button]]
|
|
|
|
tool_bar, [[Role: too bar]]
|
|
|
|
tool_tip, [[Role: tool tip]]
|
|
|
|
tree, [[Role: tree]]
|
|
|
|
tree_table, [[Role: tree table]]
|
|
|
|
unknown, [[Role: unknown]]
|
|
|
|
viewport, [[Role: viewport]]
|
|
|
|
window, [[Role: window]]
|
|
|
|
extended, [[Role: extended]]
|
|
|
|
header, [[Role: header]]
|
|
|
|
footer, [[Role: footer]]
|
|
|
|
paragraph, [[Role: paragraph]]
|
|
|
|
ruler, [[Role: ruler]]
|
|
|
|
application, [[Role: application]]
|
|
|
|
autocomplete, [[Role: autocomplete]]
|
|
|
|
editbar, [[Role: editbar]]
|
|
|
|
embedded, [[Role: embedded]]
|
|
|
|
entry, [[Role: entry]]
|
|
|
|
chart, [[Role: chart]]
|
|
|
|
caption, [[Role: caption]]
|
|
|
|
document_frame, [[Role: document frame]]
|
|
|
|
heading, [[Role: heading]]
|
|
|
|
page, [[Role: page]]
|
|
|
|
section, [[Role: section]]
|
|
|
|
redundant_object, [[Role: redundant object]]
|
|
|
|
form, [[Role: form]]
|
|
|
|
link, [[Role: link]]
|
|
|
|
input_method_window, [[Role: input method window]]
|
|
|
|
table_row, [[Role: table row]]
|
|
|
|
tree_item, [[Role: table item]]
|
|
|
|
document_spreadsheet, [[Role: document spreadsheet]]
|
|
|
|
document_presentation, [[Role: document presentation]]
|
|
|
|
document_text, [[Role: document text]]
|
|
|
|
document_web, [[Role: document web]]
|
|
|
|
document_email, [[Role: document email]]
|
|
|
|
comment, [[Role: comment]]
|
|
|
|
list_box, [[Role: list box]]
|
|
|
|
grouping, [[Role: grouping]]
|
|
|
|
image_map, [[Role: image map]]
|
|
|
|
notification, [[Role: notification]]
|
|
|
|
info_bar, [[Role: info bar]]
|
|
|
|
last_defined, [[Last enum entry sentinel]]
|
2016-02-01 06:14:17 -08:00
|
|
|
}
|
|
|
|
|
2019-03-08 06:55:43 -08:00
|
|
|
enum @beta Efl.Access.State_Type
|
2016-02-01 06:14:17 -08:00
|
|
|
{
|
2018-01-04 04:16:23 -08:00
|
|
|
[[Describes the possible states for an object visible to accessibility clients.]]
|
2016-10-24 04:18:26 -07:00
|
|
|
invalid, [[State: invalid]]
|
|
|
|
active, [[State: active]]
|
|
|
|
armed, [[State: armed]]
|
|
|
|
busy, [[State: busy]]
|
|
|
|
checked, [[State: checked]]
|
|
|
|
collapsed, [[State: collapsed]]
|
|
|
|
defunct, [[State: defunct]]
|
|
|
|
editable, [[State: editable]]
|
|
|
|
enabled, [[State: enabled]]
|
|
|
|
expandable, [[State: expandable]]
|
|
|
|
expanded, [[State: expanded]]
|
|
|
|
focusable, [[State: focusable]]
|
|
|
|
focused, [[State: focused]]
|
|
|
|
has_tooltip, [[State: has a tooltip]]
|
|
|
|
horizontal, [[State: horizontal]]
|
2019-02-28 07:50:20 -08:00
|
|
|
minimized, [[State: minimized]]
|
2016-10-24 04:18:26 -07:00
|
|
|
modal, [[State: modal]]
|
|
|
|
multi_line, [[State: multi line]]
|
|
|
|
multiselectable, [[State: multiselectable]]
|
|
|
|
opaque, [[State: opaque]]
|
|
|
|
pressed, [[State: pressed]]
|
|
|
|
resizable, [[State: resizable]]
|
|
|
|
selectable, [[State: selectable]]
|
|
|
|
selected, [[State: selected]]
|
|
|
|
sensitive, [[State: sensitive]]
|
|
|
|
showing, [[State: showing]]
|
|
|
|
single_line, [[State: single line]]
|
|
|
|
stale, [[State: stale]]
|
|
|
|
transient, [[State: transient]]
|
|
|
|
vertical, [[State: vertical]]
|
|
|
|
visible, [[State: visible]]
|
|
|
|
manages_descendants, [[State: manage descendants]]
|
|
|
|
indeterminate, [[State: indeterminate]]
|
|
|
|
required, [[State: required]]
|
|
|
|
truncated, [[State: truncated]]
|
|
|
|
animated, [[State: animated]]
|
|
|
|
invalid_entry, [[State: invalid entry]]
|
|
|
|
supports_autocompletion, [[State: supports autocompletion]]
|
|
|
|
selectable_text, [[State: selectable text]]
|
|
|
|
is_default, [[State: is default]]
|
|
|
|
visited, [[State: visited]]
|
|
|
|
last_defined, [[Last enum entry sentinel]]
|
2016-02-01 06:14:17 -08:00
|
|
|
}
|
|
|
|
|
2019-03-08 06:55:43 -08:00
|
|
|
enum @beta Efl.Access.Relation_Type
|
2016-02-01 06:14:17 -08:00
|
|
|
{
|
2018-01-04 04:16:23 -08:00
|
|
|
[[Describes the relationship between two objects.]]
|
2016-10-24 04:18:26 -07:00
|
|
|
null, [[No relation]]
|
|
|
|
label_for, [[Label for relation]]
|
|
|
|
labelled_by, [[Labelled by relation]]
|
|
|
|
controller_for, [[Controller for relation]]
|
|
|
|
controlled_by, [[Controlled by relation]]
|
|
|
|
member_of, [[Member of relation]]
|
|
|
|
tooltip_for, [[Tooltip for relation]]
|
|
|
|
node_child_of, [[Node child of relation]]
|
|
|
|
node_parent_of, [[Node parent of relation]]
|
|
|
|
extended, [[Extended relation]]
|
|
|
|
flows_to, [[Flows to relation]]
|
|
|
|
flows_from, [[Flows from relation]]
|
|
|
|
subwindow_of, [[Subwindow of relation]]
|
|
|
|
embeds, [[Embeds relation]]
|
|
|
|
embedded_by, [[Embedded by relation]]
|
|
|
|
popup_for, [[Popup for relation]]
|
|
|
|
parent_window_of, [[Parent window of relation]]
|
|
|
|
description_for, [[Description for relation]]
|
|
|
|
described_by, [[Described by relation]]
|
|
|
|
last_defined, [[Last enum entry sentinel]]
|
2016-02-01 06:14:17 -08:00
|
|
|
}
|
|
|
|
|
2019-03-08 06:55:43 -08:00
|
|
|
enum @beta Efl.Access.Reading.Info.Type
|
2017-11-22 19:07:52 -08:00
|
|
|
{
|
|
|
|
[[The accessible Reading information type that can be read.]]
|
|
|
|
name = 1 << 0, [[Name should be read]]
|
|
|
|
role = 1 << 1, [[Role should be read]]
|
|
|
|
description = 1 << 2, [[description should be read.]]
|
|
|
|
state = 1 << 3, [[State should be read.]]
|
|
|
|
}
|
|
|
|
|
2019-03-08 06:55:43 -08:00
|
|
|
type @beta Efl.Access.State_Set: uint64; [[Accessibility object state set.]]
|
2016-02-01 06:14:17 -08:00
|
|
|
|
2019-03-08 06:55:43 -08:00
|
|
|
struct @beta Efl.Access.Event.Handler; [[Accessibility event listener]]
|
2016-02-01 06:14:17 -08:00
|
|
|
|
2019-03-08 06:55:43 -08:00
|
|
|
struct @beta Efl.Access.Event.State_Changed.Data
|
2016-02-01 06:14:17 -08:00
|
|
|
{
|
2017-10-18 18:13:54 -07:00
|
|
|
[[Accessibility state changed event data]]
|
|
|
|
type: Efl.Access.State_Type; [[Type of the state changed event]]
|
2016-10-21 07:14:27 -07:00
|
|
|
new_value: bool; [[New value]]
|
2016-02-01 06:14:17 -08:00
|
|
|
}
|
|
|
|
|
2019-03-08 06:55:43 -08:00
|
|
|
struct @beta Efl.Access.Event.Geometry_Changed.Data
|
2016-06-27 11:30:01 -07:00
|
|
|
{
|
2017-10-18 18:13:54 -07:00
|
|
|
[[Accessibility geometry changed event data]]
|
2016-10-21 07:14:27 -07:00
|
|
|
x: int; [[X coordinate]]
|
|
|
|
y: int; [[Y coordinate]]
|
|
|
|
width: int; [[Width]]
|
|
|
|
height: int; [[Height]]
|
2016-06-27 11:30:01 -07:00
|
|
|
}
|
|
|
|
|
2019-03-08 06:55:43 -08:00
|
|
|
struct @beta Efl.Access.Event.Children_Changed.Data
|
2016-02-01 06:14:17 -08:00
|
|
|
{
|
2017-10-18 18:13:54 -07:00
|
|
|
[[Accessibility children changed event data]]
|
2016-10-21 07:14:27 -07:00
|
|
|
is_added: bool; [[Child is added or not]]
|
|
|
|
child: Efl.Object; [[Child object]]
|
2016-02-01 06:14:17 -08:00
|
|
|
}
|
|
|
|
|
2019-01-14 11:43:21 -08:00
|
|
|
struct @free(efl_access_attribute_free) Efl.Access.Attribute
|
2016-02-01 06:14:17 -08:00
|
|
|
{
|
2017-10-18 18:13:54 -07:00
|
|
|
[[Accessibility Attribute]]
|
2016-10-21 07:14:27 -07:00
|
|
|
key: string; [[Attribute key]]
|
|
|
|
value: string; [[Attribute value]]
|
2016-02-01 06:14:17 -08:00
|
|
|
}
|
|
|
|
|
2019-03-08 06:55:43 -08:00
|
|
|
struct @beta Efl.Access.Relation
|
2016-02-01 06:14:17 -08:00
|
|
|
{
|
2017-10-18 18:13:54 -07:00
|
|
|
[[Accessibility Relation]]
|
|
|
|
type: Efl.Access.Relation_Type; [[Relation type]]
|
2016-10-21 07:14:27 -07:00
|
|
|
objects: list<Efl.Object>; [[List with relation objects]]
|
2016-02-01 06:14:17 -08:00
|
|
|
}
|
|
|
|
|
2019-02-14 08:37:02 -08:00
|
|
|
mixin @beta Efl.Access.Object requires Efl.Object
|
2014-04-20 20:46:11 -07:00
|
|
|
{
|
2017-10-18 18:13:54 -07:00
|
|
|
[[Accessibility accessible mixin]]
|
2019-05-09 07:16:42 -07:00
|
|
|
c_prefix: efl_access_object;
|
2018-04-03 04:27:30 -07:00
|
|
|
data: Efl_Access_Object_Data;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
2017-11-01 05:31:46 -07:00
|
|
|
@property localized_role_name @protected @beta {
|
2017-03-17 00:52:16 -07:00
|
|
|
[[Gets an localized string describing accessible object role name.]]
|
2014-04-20 20:46:11 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2017-03-17 00:52:16 -07:00
|
|
|
localized_name: string; [[Localized accessible object role name]]
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
|
|
|
}
|
2018-02-14 18:14:52 -08:00
|
|
|
@property i18n_name @beta {
|
2017-03-17 00:52:16 -07:00
|
|
|
[[Accessible name of the object.]]
|
2014-04-20 20:46:11 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
values {
|
2018-02-14 18:14:52 -08:00
|
|
|
i18n_name: string; [[Accessible name]]
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
|
|
|
}
|
2018-05-04 14:17:15 -07:00
|
|
|
relations_get @protected @beta @const {
|
2017-03-17 00:52:16 -07:00
|
|
|
[[Gets an all relations between accessible object and other accessible objects.]]
|
2018-05-04 14:17:15 -07:00
|
|
|
return: iterator<ptr(Efl.Access.Relation)>; [[Accessible relation set]]
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
2017-11-01 05:31:46 -07:00
|
|
|
@property role @beta {
|
2017-03-17 00:52:16 -07:00
|
|
|
[[The role of the object in accessibility domain.]]
|
2014-04-20 20:46:11 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
values {
|
2017-10-18 18:13:54 -07:00
|
|
|
role: Efl.Access.Role; [[Accessible role]]
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
|
|
|
}
|
2018-02-14 18:14:52 -08:00
|
|
|
@property access_children @protected @beta {
|
2017-03-17 00:52:16 -07:00
|
|
|
[[Gets object's accessible children.]]
|
2014-04-20 20:46:11 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2018-04-03 04:27:30 -07:00
|
|
|
children: list<Efl.Access.Object> @owned; [[List of widget's children]]
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
|
|
|
}
|
2017-11-01 05:31:46 -07:00
|
|
|
@property role_name @protected @beta {
|
2019-09-02 07:24:26 -07:00
|
|
|
[[Gets human-readable string identifying object accessibility role.]]
|
2014-04-20 20:46:11 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2017-03-17 00:52:16 -07:00
|
|
|
role_name: string; [[Accessible role name]]
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
|
|
|
}
|
2017-11-01 05:31:46 -07:00
|
|
|
@property attributes @protected @beta {
|
2019-09-02 07:24:26 -07:00
|
|
|
[[Gets key-value pairs identifying object extra attributes. Must be free by a user.]]
|
2014-04-20 20:46:11 -07:00
|
|
|
get {
|
2014-05-28 01:12:34 -07:00
|
|
|
}
|
|
|
|
values {
|
2019-09-02 07:24:26 -07:00
|
|
|
attributes: list<ptr(Efl.Access.Attribute) @owned> @owned; [[List of object attributes.
|
|
|
|
Must be freed by the user]]
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
|
|
|
}
|
2017-11-21 18:54:44 -08:00
|
|
|
attribute_append {
|
|
|
|
[[Add key-value pair identifying object extra attributes
|
|
|
|
]]
|
|
|
|
params {
|
2017-11-21 20:45:21 -08:00
|
|
|
@in key: string; [[The string key to give extra information]]
|
|
|
|
@in value: string; [[The string value to give extra information]]
|
2017-11-21 18:54:44 -08:00
|
|
|
}
|
|
|
|
}
|
2019-03-20 07:16:11 -07:00
|
|
|
attribute_del {
|
|
|
|
[[delete key-value pair identifying object extra attributes when key is given
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
@in key: string; [[The string key to identify the key-value pair]]
|
|
|
|
}
|
|
|
|
}
|
2017-11-21 18:54:44 -08:00
|
|
|
attributes_clear {
|
2018-11-28 04:33:46 -08:00
|
|
|
[[Removes all attributes in accessible object.]]
|
2017-11-21 18:54:44 -08:00
|
|
|
}
|
2017-11-22 19:07:52 -08:00
|
|
|
@property reading_info_type @protected {
|
|
|
|
get {
|
efl_access: if 0 is set as reading_info_type, remove existing reading_info
Summary:
if 0 is set as reading_info_type, remove existing reading_info and
allow default reading info types (name, role, state and description)
to be read.
Do not set reading info again in reading_info_type_set API if new
value matches the old value.
Test Plan:
If application does not set reading_info_type or set 0 reading_info_type,
All four reading info types of an accessible object should be read on highlight.
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
Reviewers: kimcinoo, jsuya, bu5hm4n, lukasz.stanislawski
Subscribers: prasoonsingh16, rajeev.jnnce, #reviewers, cedric, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8435
2019-03-24 18:11:39 -07:00
|
|
|
[[Gets reading information types of an accessible object. if no reading information
|
|
|
|
is set, 0 is returned which means all four reading information types will be read on
|
|
|
|
object highlight]]
|
2017-11-22 19:07:52 -08:00
|
|
|
}
|
|
|
|
set {
|
efl_access: if 0 is set as reading_info_type, remove existing reading_info
Summary:
if 0 is set as reading_info_type, remove existing reading_info and
allow default reading info types (name, role, state and description)
to be read.
Do not set reading info again in reading_info_type_set API if new
value matches the old value.
Test Plan:
If application does not set reading_info_type or set 0 reading_info_type,
All four reading info types of an accessible object should be read on highlight.
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
Reviewers: kimcinoo, jsuya, bu5hm4n, lukasz.stanislawski
Subscribers: prasoonsingh16, rajeev.jnnce, #reviewers, cedric, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8435
2019-03-24 18:11:39 -07:00
|
|
|
[[Sets reading information of an accessible object. If set as 0, existing
|
|
|
|
reading info will be deleted and by default all four reading information types
|
|
|
|
like name, role, state and description will be read on object highlight]]
|
2017-11-22 19:07:52 -08:00
|
|
|
}
|
|
|
|
values {
|
|
|
|
reading_info: Efl.Access.Reading.Info.Type; [[Reading information types]]
|
|
|
|
}
|
|
|
|
}
|
2017-11-01 05:31:46 -07:00
|
|
|
@property index_in_parent @protected @beta {
|
2016-06-30 07:34:24 -07:00
|
|
|
[[Gets index of the child in parent's children list.]]
|
2014-04-20 20:46:11 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-10-21 07:15:12 -07:00
|
|
|
idx: int; [[Index in children list]]
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
|
|
|
}
|
2017-11-01 05:31:46 -07:00
|
|
|
@property description @beta {
|
2017-03-17 00:52:16 -07:00
|
|
|
[[Contextual information about object.]]
|
2014-04-20 20:46:11 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
values {
|
2017-03-17 00:52:16 -07:00
|
|
|
description: string; [[Accessible contextual information]]
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
|
|
|
}
|
2017-11-01 05:31:46 -07:00
|
|
|
@property state_set @protected @beta {
|
2017-03-17 00:52:16 -07:00
|
|
|
[[Gets set describing object accessible states.]]
|
2014-04-20 20:46:11 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2017-10-18 18:13:54 -07:00
|
|
|
states: Efl.Access.State_Set; [[Accessible state set]]
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
|
|
|
}
|
2019-08-16 07:27:00 -07:00
|
|
|
event_handler_add @static @protected @beta {
|
2015-09-03 05:07:23 -07:00
|
|
|
[[Register accessibility event listener]]
|
|
|
|
params {
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
@in cb: Efl.Event_Cb; [[Callback]]
|
2016-11-17 03:19:50 -08:00
|
|
|
@in data: void_ptr; [[Data]]
|
2015-09-03 05:07:23 -07:00
|
|
|
}
|
2017-10-18 18:13:54 -07:00
|
|
|
return: ptr(Efl.Access.Event.Handler); [[Event handler]]
|
2015-09-03 05:07:23 -07:00
|
|
|
}
|
2019-08-16 07:27:00 -07:00
|
|
|
event_handler_del @static @protected @beta {
|
2015-09-03 05:07:23 -07:00
|
|
|
[[Deregister accessibility event listener]]
|
|
|
|
params {
|
2017-10-18 18:13:54 -07:00
|
|
|
@in handler: ptr(Efl.Access.Event.Handler); [[Event handler]]
|
2015-09-03 05:07:23 -07:00
|
|
|
}
|
|
|
|
}
|
2019-08-16 07:27:00 -07:00
|
|
|
event_emit @static @protected @beta {
|
2018-02-12 09:56:31 -08:00
|
|
|
[[Emit event]]
|
2015-09-03 05:07:23 -07:00
|
|
|
params {
|
2018-04-03 04:27:30 -07:00
|
|
|
@in accessible: Efl.Access.Object; [[Accessibility object.]]
|
2019-08-29 04:46:35 -07:00
|
|
|
@in event: ptr(const(Efl.Event_Description)); [[Accessibility event type.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in event_info: void_ptr; [[Accessibility event details.]]
|
2015-09-03 05:07:23 -07:00
|
|
|
}
|
|
|
|
}
|
2017-11-01 05:31:46 -07:00
|
|
|
@property translation_domain @beta {
|
2017-03-17 00:52:16 -07:00
|
|
|
[[The translation domain of "name" and "description"
|
2016-06-30 07:34:24 -07:00
|
|
|
properties.
|
2015-10-02 08:04:38 -07:00
|
|
|
|
2018-01-04 04:16:23 -08:00
|
|
|
Translation domain should be set if the application wants to support i18n
|
2019-01-28 04:14:20 -08:00
|
|
|
for accessibility "name" and "description" properties.
|
2015-10-02 08:04:38 -07:00
|
|
|
|
2018-01-04 04:16:23 -08:00
|
|
|
When translation domain is set, values of "name" and "description"
|
|
|
|
properties will be translated with the dgettext function using the
|
|
|
|
current translation domain as the "domainname" parameter.
|
2015-10-02 08:04:38 -07:00
|
|
|
|
2018-01-04 04:16:23 -08:00
|
|
|
It is the application developer's responsibility to ensure that
|
|
|
|
translation files are loaded and bound to the translation domain
|
2016-06-30 07:34:24 -07:00
|
|
|
when accessibility is enabled.]]
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
set {
|
2015-10-02 08:04:38 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-06-30 07:34:24 -07:00
|
|
|
domain: string; [[Translation domain]]
|
2015-10-02 08:04:38 -07:00
|
|
|
}
|
|
|
|
}
|
2018-02-14 18:14:52 -08:00
|
|
|
@property access_type @beta {
|
2016-06-30 07:34:24 -07:00
|
|
|
[[Type of accessibility object]]
|
2015-11-26 07:53:32 -08:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
values {
|
2017-10-18 18:13:54 -07:00
|
|
|
type: Efl.Access.Type; [[Object type]]
|
2015-11-26 07:53:32 -08:00
|
|
|
}
|
|
|
|
}
|
2017-11-01 05:31:46 -07:00
|
|
|
relationship_append @beta {
|
2015-10-04 13:30:31 -07:00
|
|
|
[[Defines the relationship between two accessible objects.
|
|
|
|
|
2018-01-04 04:16:23 -08:00
|
|
|
Adds a unique relationship between source object and relation_object of a
|
2015-10-04 13:30:31 -07:00
|
|
|
given type.
|
|
|
|
|
|
|
|
Relationships can be queried by Assistive Technology clients to
|
|
|
|
provide customized feedback, improving overall user experience.
|
|
|
|
|
|
|
|
Relationship_append API is asymmetric, which means that
|
2019-03-05 14:00:37 -08:00
|
|
|
appending, for example, relation EFL_ACCESS_RELATION_TYPE_FLOWS_TO from object A to B,
|
|
|
|
do NOT append relation EFL_ACCESS_RELATION_TYPE_FLOWS_FROM from object B to
|
2016-10-21 07:15:12 -07:00
|
|
|
object A.]]
|
2016-11-17 03:19:50 -08:00
|
|
|
return: bool; [[$true if relationship was successfully appended, $false otherwise]]
|
2015-10-04 13:30:31 -07:00
|
|
|
params {
|
2017-10-18 18:13:54 -07:00
|
|
|
@in type: Efl.Access.Relation_Type; [[Relation type]]
|
2018-04-03 04:27:30 -07:00
|
|
|
@in relation_object: const(Efl.Access.Object); [[Object to relate to]]
|
2015-10-04 13:30:31 -07:00
|
|
|
}
|
|
|
|
}
|
2017-11-01 05:31:46 -07:00
|
|
|
relationship_remove @beta {
|
2015-10-04 13:30:31 -07:00
|
|
|
[[Removes the relationship between two accessible objects.
|
|
|
|
|
|
|
|
If relation_object is NULL function removes all relations
|
2018-01-04 04:16:23 -08:00
|
|
|
of the given type.
|
2015-10-04 13:30:31 -07:00
|
|
|
]]
|
|
|
|
params {
|
2017-10-18 18:13:54 -07:00
|
|
|
@in type: Efl.Access.Relation_Type; [[Relation type]]
|
2018-04-03 04:27:30 -07:00
|
|
|
@in relation_object: const(Efl.Access.Object); [[Object to remove relation from]]
|
2015-10-04 13:30:31 -07:00
|
|
|
}
|
|
|
|
}
|
2017-11-01 05:31:46 -07:00
|
|
|
relationships_clear @beta {
|
2015-10-04 13:30:31 -07:00
|
|
|
[[Removes all relationships in accessible object.]]
|
|
|
|
}
|
2019-08-16 07:27:00 -07:00
|
|
|
@property access_root @static @beta {
|
2015-09-09 04:58:14 -07:00
|
|
|
get {
|
|
|
|
[[Get root object of accessible object hierarchy]]
|
|
|
|
values {
|
2016-10-21 07:15:12 -07:00
|
|
|
ret: Efl.Object; [[Root object]]
|
2015-09-09 04:58:14 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
2016-11-14 11:10:57 -08:00
|
|
|
implements {
|
|
|
|
Efl.Object.destructor;
|
2018-05-04 14:17:15 -07:00
|
|
|
Efl.Object.invalidate;
|
2018-02-14 18:14:52 -08:00
|
|
|
Efl.Object.provider_find;
|
2016-11-14 11:10:57 -08:00
|
|
|
}
|
2014-04-20 20:46:11 -07:00
|
|
|
events {
|
2018-01-04 04:16:23 -08:00
|
|
|
property,changed: string; [[Called when property has changed]]
|
2017-10-18 18:13:54 -07:00
|
|
|
children,changed: Efl.Access.Event.Children_Changed.Data; [[Called when children have changed]]
|
2018-01-04 04:16:23 -08:00
|
|
|
state,changed: Efl.Access.Event.State_Changed.Data; [[Called when state has changed]]
|
|
|
|
bounds,changed: Efl.Access.Event.Geometry_Changed.Data; [[Called when boundaries have changed]]
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
visible,data,changed: void; [[Called when visibility has changed]]
|
|
|
|
active,descendant,changed: Efl.Object; [[Called when active state of descendant has changed]]
|
|
|
|
added: void; [[Called when item is added]]
|
|
|
|
removed: void; [[Called when item is removed]]
|
2014-04-20 20:46:11 -07:00
|
|
|
}
|
|
|
|
}
|