efl/src/lib/elementary/elm_interface_atspi_accessi...

446 lines
14 KiB
Plaintext

/* FIXME: This definitely shouldn't be here. */
type Efl_Event_Cb: __undefined_type; [[Efl event callback type]]
enum Elm.Atspi.Type
{
[[Type of accessibility object]]
regular, [[default accessibile object]]
disabled, [[skip object and its children in accessibility hierarchy]]
skipped [[skip object in accessibility hierarchy]]
}
enum Elm.Atspi.Role
{
[[Describes the role of an object visible to AT-SPI Clients.]]
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]]
}
enum Elm.Atspi.State_Type
{
[[Describes a possible states of an object visible to AT-SPI clients.]]
legacy: elm_atspi_state;
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]]
iconified, [[State: iconified]]
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]]
}
enum Elm.Atspi.Relation_Type
{
[[Describes relation between two objects.]]
legacy: elm_atspi_relation;
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]]
}
type Elm.Atspi.State_Set: uint64; [[AT-SPI object state set.]]
struct Elm.Atspi.Event.Handler; [[AT-SPI event listener]]
struct Elm.Atspi.Event.State_Changed.Data
{
[[AT-SPI state changed event data]]
type: Elm.Atspi.State_Type; [[Type of the state changed event]]
new_value: bool; [[New value]]
}
struct Elm.Atspi.Event.Geometry_Changed.Data
{
[[AT-SPI geometry changed event data]]
x: int; [[X coordinate]]
y: int; [[Y coordinate]]
width: int; [[Width]]
height: int; [[Height]]
}
struct Elm.Atspi.Event.Children_Changed.Data
{
[[AT-SPI children changed event data]]
is_added: bool; [[Child is added or not]]
child: Efl.Object; [[Child object]]
}
struct Elm.Atspi.Attribute
{
[[AT-SPI Attribute]]
key: string; [[Attribute key]]
value: string; [[Attribute value]]
}
struct Elm.Atspi.Relation
{
[[AT-SPI Relation]]
type: Elm.Atspi.Relation_Type; [[Relation type]]
objects: list<Efl.Object>; [[List with relation objects]]
}
type Elm.Atspi.Relation_Set: list<ptr(Elm.Atspi.Relation)>; [[Elementary AT-SPI relation set type]]
mixin Elm.Interface.Atspi_Accessible ()
{
[[AT-SPI accessible mixin]]
eo_prefix: elm_interface_atspi_accessible;
data: Elm_Interface_Atspi_Accessible_Data;
methods {
@property localized_role_name @protected {
[[Gets an localized string describing AT-SPI widget role name.]]
get {
}
values {
localized_name: string; [[Localized widget role name]]
}
}
@property name {
[[String describing AT-SPI widget role name. Should be free by a user.]]
get {
}
set {
}
values {
name: string; [[Object name]]
}
}
@property relation_set @protected {
[[Gets an string describing AT-SPI widget role name. Lists and elements Should be free by a user.]]
get {
}
values {
relations: Elm.Atspi.Relation_Set; [[Widget relation set]]
}
}
@property role {
[[The role of the widget in AT-SPI Accessibility domain.]]
get {
}
set {
}
values {
role: Elm.Atspi.Role; [[Widget role]]
}
}
@property children @protected {
[[Gets widget's accessible children.]]
get {
}
values {
children: free(own(list<Elm.Interface.Atspi_Accessible>), eina_list_free); [[List of widget's children]]
}
}
@property role_name @protected {
[[Gets human-readable string indentifying widget accessibility role.]]
get {
}
values {
role_name: string; [[Widget role name]]
}
}
@property attributes @protected {
[[Gets key-value pairs indentifying widget extra attributes. Must be free by a user.]]
get {
}
values {
attributes: free(own(list<own(ptr(Elm.Atspi.Attribute))>), elm_atspi_attributes_list_free); [[List of widget attributes]]
}
}
@property index_in_parent @protected {
[[Gets index of the child in parent's children list.]]
get {
}
values {
idx: int; [[Index in children list]]
}
}
@property description {
[[Widget contextual information.]]
get {
}
set {
}
values {
description: string; [[Widget contextual information]]
}
}
@property parent {
[[Widget accessible parent.]]
get {
}
set {
}
values {
parent: Elm.Interface.Atspi_Accessible; [[Widget parent]]
}
}
@property state_set @protected {
[[Gets set describing widget accessible states.]]
get {
}
values {
states: Elm.Atspi.State_Set; [[Widget states]]
}
}
event_handler_add @class @protected {
[[Register accessibility event listener]]
params {
@in cb: Efl_Event_Cb; [[callback]]
@in data: void_ptr; [[data]]
}
return: ptr(Elm.Atspi.Event.Handler); [[Event handler]]
}
event_handler_del @class @protected {
[[Deregister accessibility event listener]]
params {
@in handler: ptr(Elm.Atspi.Event.Handler); [[Event handler]]
}
}
event_emit @class @protected {
params {
@in accessible: Elm.Interface.Atspi_Accessible; [[Accessibility object.]]
@in event: ptr(const(Efl.Event.Description)); [[Accessibility event type.]]
@in event_info: void_ptr; [[Accessibility event details.]]
}
}
@property translation_domain {
[[Sets the translation domain of "name" and "description"
properties.
Translation domain should be set if application wants to support i18n
for accessibily "name" and "description" properties.
When translation domain is set values of "name" and "description"
properties will be translated with dgettext function using
current translation domain as "domainname" parameter.
It is application developer responsibility to ensure that
translation files are loaded and binded to translation domain
when accessibility is enabled.]]
get {
}
set {
}
values {
domain: string; [[Translation domain]]
}
}
@property type {
[[Type of accessibility object]]
get {
}
set {
}
values {
type: Elm.Atspi.Type; [[Object type]]
}
}
relationship_append {
[[Defines the relationship between two accessible objects.
Adds unique relation between source object and relation_object of a
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
appending, for example, relation ELM_ATSPI_RELATION_FLOWS_TO from object A to B,
do NOT append relation ELM_ATSPI_RELATION_FLOWS_FROM from object B to
object A.]]
return: bool; [[EINA_TRUE is relationship was successfully appended, EINA_FALSE otherwise]]
params {
@in type: Elm.Atspi.Relation_Type; [[Relation type]]
@in relation_object: const(Elm.Interface.Atspi_Accessible); [[Object to relate to]]
}
}
relationship_remove {
[[Removes the relationship between two accessible objects.
If relation_object is NULL function removes all relations
of given type.
]]
params {
@in type: Elm.Atspi.Relation_Type; [[Relation type]]
@in relation_object: const(Elm.Interface.Atspi_Accessible); [[Object to remove relation from]]
}
}
relationships_clear {
[[Removes all relationships in accessible object.]]
}
@property root @class {
get {
[[Get root object of accessible object hierarchy]]
values {
ret: Efl.Object; [[Root object]]
}
}
}
}
events {
property,changed: string; [[Called when roperty has changed]]
children,changed: Elm.Atspi.Event.Children_Changed.Data; [[Called when children have changed]]
state,changed: Elm.Atspi.Event.State_Changed.Data; [[Called when tate has changed]]
bounds,changed: Elm.Atspi.Event.Geometry_Changed.Data; [[Called when bounds have changed]]
visible,data,changed; [[Called when visibility has changed]]
active,descendant,changed; [[Called when active state of descendant has changed]]
added; [[Called when item was added]]
removed; [[Called when item was removed]]
}
}