87d2c81a27c34a41418ed29eab8f4a7adad9dc07
[platform/core/uifw/at-spi2-atk.git] / idl / Accessibility_Role.idl
1 /* 
2  * AT-SPI - Assistive Technology Service Provider Interface 
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2001 Sun Microsystems Inc.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23 #ifndef _ACCESSIBILITY_ROLE_IDL
24 #define _ACCESSIBILITY_ROLE_IDL
25
26 module Accessibility {
27
28   enum Role {
29   ROLE_INVALID,
30   /* Object is a label indicating the keyboard accelerators for the parent  */
31   ROLE_ACCELERATOR_LABEL,
32   /* Object is used to alert the user about something */
33   ROLE_ALERT,
34   /* Object contains a dynamic or moving image of some kind */
35   ROLE_ANIMATION,
36   /* Object is a 2d directional indicator */
37   ROLE_ARROW,
38   /* Object contains one or more dates, usually arranged into a 2d list */
39   ROLE_CALENDAR,
40   /* Object that can be drawn into and is used to trap events */
41   ROLE_CANVAS,
42   /*
43    * A choice that can be checked or unchecked and provides a separate
44    * indicator for the current state.
45    */
46   ROLE_CHECK_BOX,
47   /* A menu item that behaves like a check box (see ROLE_CHECK_BOX) */
48   ROLE_CHECK_MENU_ITEM,
49   /* A specialized dialog that lets the user choose a color. */
50   ROLE_COLOR_CHOOSER,
51   /* The header for a column of data */
52   ROLE_COLUMN_HEADER,
53   /* A list of choices the user can select from */
54   ROLE_COMBO_BOX,
55   /* An object which allows entry of a date */
56   ROLE_DATE_EDITOR,
57   /* An inconifed internal frame within a DESKTOP_PANE */
58   ROLE_DESKTOP_ICON,
59   /*
60    * A pane that supports internal frames and iconified versions of those
61    * internal frames.
62    */
63   ROLE_DESKTOP_FRAME,
64   /* 
65    * An object that allows a value to be changed via rotating a visual element,
66    * or which displays a value via such a rotating element. 
67    */
68   ROLE_DIAL,
69   /* A top level window with title bar and a border */
70   ROLE_DIALOG,
71   /*
72    * A pane that allows the user to navigate through and select the contents
73    * of a directory
74    */
75   ROLE_DIRECTORY_PANE,
76   /*
77    * A specialized dialog that displays the files in the directory and lets
78    * the user select a file, browse a different directory, or specify a
79    * filename.
80    */
81   ROLE_FILE_CHOOSER,
82   /*
83    * A object that fills up space in a user interface
84    */
85   ROLE_FILLER,
86   /* XXX Don't know sure about this. */
87   ROLE_FOCUS_TRAVERSABLE,
88   /* Allows selection of a display font */
89   ROLE_FONT_CHOOSER,
90   /* A top level window with a title bar, border, menubar, etc. */
91   ROLE_FRAME,
92   /* A pane that is guaranteed to be painted on top of all panes beneath it */
93   ROLE_GLASS_PANE,
94   /*
95    * A document container for HTML, whose children
96    * represent the document content.
97    */
98   ROLE_HTML_CONTAINER,
99   /* A small fixed size picture, typically used to decorate components */
100   ROLE_ICON,
101   /* An image, typically static. */
102   ROLE_IMAGE,
103   /* A frame-like object that is clipped by a desktop pane. */
104   ROLE_INTERNAL_FRAME,
105   /* An object used to present an icon or short string in an interface */
106   ROLE_LABEL,
107   /*
108    * A specialized pane that allows its children to be drawn in layers,
109    * providing a form of stacking order.
110    */
111   ROLE_LAYERED_PANE,
112   /*
113    * An object that presents a list of objects to the user and allows the
114    * user to select one or more of them.
115    */
116   ROLE_LIST,
117    /* An object that represents an element of a list. */
118   ROLE_LIST_ITEM,
119   /*
120    * An object usually found inside a menu bar that contains a list of
121    * actions the user can choose from.
122    */
123   ROLE_MENU,
124   /*
125    * An object usually drawn at the top of the primary dialog box of an
126    * application that contains a list of menus the user can choose from.
127    */
128   ROLE_MENU_BAR,
129   /*
130    * An object usually contained in a menu that presents an action the
131    * user can choose.
132    */
133   ROLE_MENU_ITEM,
134   /* A specialized pane whose primary use is inside a DIALOG */
135   ROLE_OPTION_PANE,
136   /* An object that is a child of a page tab list */
137   ROLE_PAGE_TAB,
138   /*
139    * An object that presents a series of panels (or page tabs), one at a time,
140    * through some mechanism provided by the object.
141    */
142   ROLE_PAGE_TAB_LIST,
143   /* A generic container that is often used to group objects. */
144   ROLE_PANEL,
145   /*
146    * A text object uses for passwords, or other places where the text
147    * content is not shown visibly to the user.
148    */
149   ROLE_PASSWORD_TEXT,
150   /*
151    * A temporary window that is usually used to offer the user a list of
152    * choices, and then hides when the user selects one of those choices.
153    */
154   ROLE_POPUP_MENU,
155   /* An object used to indicate how much of a task has been completed. */
156   ROLE_PROGRESS_BAR,
157   /*
158    * An object the user can manipulate to tell the application to do
159    * something.
160    */
161   ROLE_PUSH_BUTTON,
162   /*
163    * A specialized check box that will cause other radio buttons in the
164    * same group to become uncghecked when this one is checked.
165    */
166   ROLE_RADIO_BUTTON,
167   /* Object is both a menu item and a "radio button" (see ROLE_RADIO_BUTTON) */
168   ROLE_RADIO_MENU_ITEM,
169   /*
170    * A specialized pane that has a glass pane and a layered pane as its
171    * children.
172    */
173   ROLE_ROOT_PANE,
174   /* The header for a row of data */
175   ROLE_ROW_HEADER,
176   /*
177    * An object usually used to allow a user to incrementally view a large
178    * amount of data.
179    */
180   ROLE_SCROLL_BAR,
181   /*
182    * An object that allows a user to incrementally view a large amount
183    * of information.
184    */
185   ROLE_SCROLL_PANE,
186   /*
187    * An object usually contained in a menu to provide a visible and
188    * logical separation of the contents in a menu.
189    */
190   ROLE_SEPARATOR,
191   /* An object that allows the user to select from a bounded range */
192   ROLE_SLIDER,
193   /* 
194    * An object which allows one of a set of choices to be selected, 
195    * and which displays the current choice.
196    */
197   ROLE_SPIN_BUTTON,
198   /* A specialized panel that presents two other panels at the same time. */
199   ROLE_SPLIT_PANE,
200   /* Object displays non-quantitative status information (c.f. ROLE_PROGRESS_BAR) */
201   ROLE_STATUS_BAR,
202   /* An object used to repesent information in terms of rows and columns. */
203   ROLE_TABLE,
204   ROLE_TABLE_CELL,
205   ROLE_TABLE_COLUMN_HEADER,
206   ROLE_TABLE_ROW_HEADER,
207   /* Object allows menu to be removed from menubar and shown in its own window. */
208   ROLE_TEAROFF_MENU_ITEM,
209   /* An object that emulates a terminal */
210   ROLE_TERMINAL,
211   /* An object that presents text to the user */
212   ROLE_TEXT,
213   /*
214    * A specialized push button that can be checked or unchecked, but does
215    * not procide a separate indicator for the current state.
216    */
217   ROLE_TOGGLE_BUTTON,
218   /*
219    * A bar or palette usually composed of push buttons or toggle buttons
220    */
221   ROLE_TOOL_BAR,
222   /*
223    * An object that provides information about another object
224    */
225   ROLE_TOOL_TIP,
226   /* An object used to repsent hierarchical information to the user. */
227   ROLE_TREE,
228   /* An object that presents both tabular and hierarchical info to the user */
229   ROLE_TREE_TABLE,
230   /*
231    * The object contains some Accessible information, but its role is
232    * not known.
233    */
234   ROLE_UNKNOWN,
235   /* An object usually used in a scroll pane. */
236   ROLE_VIEWPORT,
237   /* A top level window with no title or border */
238   ROLE_WINDOW,
239   /* 
240    * means that the role for this item is known, but not included in the 
241    * core enumeration 
242    */
243   ROLE_EXTENDED,
244   /* not a valid role, used for finding end of enumeration. */
245   ROLE_LAST_DEFINED
246   };
247 };
248
249 #endif