# Accessibility_Accessible.idl

Go to the documentation of this file.

    00001 /*
    00002  * AT-SPI - Assistive Technology Service Provider Interface
    00003  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
    00004  *
    00005  * Copyright 2001 Sun Microsystems Inc.
    00006  *
    00007  * This library is free software; you can redistribute it and/or
    00008  * modify it under the terms of the GNU Library General Public
    00009  * License as published by the Free Software Foundation; either
    00010  * version 2 of the License, or (at your option) any later version.
    00011  *
    00012  * This library is distributed in the hope that it will be useful,
    00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00015  * Library General Public License for more details.
    00016  *
    00017  * You should have received a copy of the GNU Library General Public
    00018  * License along with this library; if not, write to the
    00019  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00020  * Boston, MA 02111-1307, USA.
    00021  */
    00022
    00023 #ifndef _ACCESSIBILITY_ACCESSIBLE_IDL
    00024 #define _ACCESSIBILITY_ACCESSIBLE_IDL
    00025
    00026 #include "Accessibility_Relation.idl"
    00027 #include "Accessibility_State.idl"
    00028 #include "Accessibility_Role.idl"
    00029
    00030 module Accessibility {
    00031
    00033   enum LOCALE_TYPE {
    00034       LOCALE_TYPE_MESSAGES,
    00035       LOCALE_TYPE_COLLATE,
    00036       LOCALE_TYPE_CTYPE,
    00037       LOCALE_TYPE_MONETARY,
    00038       LOCALE_TYPE_NUMERIC,
    00039       LOCALE_TYPE_TIME
    00040   };
    00041
    00043   typedef sequence<Relation> RelationSet;
    00044
    00079   typedef sequence<string> AttributeSet;
    00080
    00085   typedef sequence<Role> RoleSet;
    00086
    00091   struct BoundingBox {
    00092           long x;
    00093           long y;
    00094           long width;
    00098           long height;
    00102   };
    00103
    00104
    00105   interface Application;
    00134   interface Accessible : Bonobo::Unknown {
    00135
    00139     attribute string name;
    00140
    00144     attribute string description;
    00145
    00149     readonly attribute Accessibility::Accessible parent;
    00150
    00154     readonly attribute long     childCount;
    00155
    00166     boolean isEqual (in Accessible obj);
    00167
    00173     Accessible  getChildAtIndex (in long index);
    00174
    00179     long                getIndexInParent ();
    00180
    00185     RelationSet getRelationSet ();
    00186
    00192     Role                getRole ();
    00193
    00199     string              getRoleName ();
    00200
    00207     string              getLocalizedRoleName ();
    00208
    00213     StateSet    getState ();
    00214
    00257     AttributeSet        getAttributes ();
    00258
    00265     Application getApplication ();
    00266
    00268      void unimplemented ();
    00271   };
    00272 };
    00273
    00274 #endif
    00275