X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cspi%2Fspi-impl.h;h=60049b334b2f1acdedcf9f48c67a7f1e295a478d;hb=b6a9e880c09f13a391a2a23b0dd685a518fe61a1;hp=e20e33c4adb7241130eb01694a4617c217b9eb17;hpb=9b94d95337a6bd6bc5946191ef52341b0e97530f;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/cspi/spi-impl.h b/cspi/spi-impl.h index e20e33c..60049b3 100644 --- a/cspi/spi-impl.h +++ b/cspi/spi-impl.h @@ -1,41 +1,100 @@ /* - * Note: this header is a private implementation header, clients of - * the at-spi interfaces or the C bindings in libcspi should - * not depend on any of the information in this file directly, - * as it it not intended for use as a public interface. + * AT-SPI - Assistive Technology Service Provider Interface + * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap) * - * You have been warned ! + * Copyright 2001, 2002 Sun Microsystems Inc., + * Copyright 2001, 2002 Ximian, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. */ +/* + * A load of opaque handles that people can't poke at. + */ #ifndef _SPI_IMPL_H_ #define _SPI_IMPL_H_ -#include -#include -#include "accessibleeventlistener.h" -#include "keystrokelistener.h" -#include "Accessibility.h" - -typedef unsigned int boolean; - -typedef CORBA_Object Accessible; -typedef CORBA_Object AccessibleAction; -typedef CORBA_Object AccessibleApplication; -typedef CORBA_Object AccessibleComponent; -typedef CORBA_Object AccessibleEditableText; -typedef CORBA_Object AccessibleHyperlink; -typedef CORBA_Object AccessibleHypertext; -typedef CORBA_Object AccessibleImage; -typedef CORBA_Object AccessibleRelation; -typedef CORBA_Object AccessibleSelection; -typedef CORBA_Object AccessibleStateSet; -typedef CORBA_Object AccessibleTable; -typedef CORBA_Object AccessibleText; -typedef CORBA_Object AccessibleValue; -typedef CORBA_Object AccessibilityRegistry; -typedef CORBA_Object GenericInterface; - -typedef SpiKeystrokeListener AccessibleKeystrokeListener; -typedef SpiEventListener AccessibleEventListener; +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct _Accessible AccessibleUnknown; +typedef AccessibleUnknown Accessible; + +typedef Accessible AccessibleAction; +typedef Accessible AccessibleApplication; +typedef Accessible AccessibleCollection; +typedef Accessible AccessibleComponent; +typedef Accessible AccessibleDocument; +typedef Accessible AccessibleEditableText; +typedef Accessible AccessibleHyperlink; +typedef Accessible AccessibleHypertext; +typedef Accessible AccessibleImage; +typedef Accessible AccessibleMatchRule; + +typedef struct _AccessibleRelation AccessibleRelation; +struct _AccessibleRelation +{ + gint ref_count; + Accessibility_RelationType type; + GArray *targets; +}; + +typedef Accessible AccessibleSelection; +typedef Accessible AccessibleStreamableContent; +typedef Accessible AccessibleTable; +typedef Accessible AccessibleText; +typedef Accessible AccessibleValue; +typedef Accessible AccessibilityRegistry; + +/** + * AccessibleStateSet: + * @ref_count: private + * @states: private + * + * An opaque structure representing an accessible object's state, + * which can then be queried via AccessibleStateSet APIs. + **/ +typedef void AccessibleStateSet; +typedef void AccessibleEventListener; +typedef void AccessibleKeystrokeListener; +typedef void AccessibleDeviceListener; + +typedef unsigned int SPIBoolean; +#define SPI_FALSE (0) +#define SPI_TRUE (!SPI_FALSE) + +/** + * SPIRect: + * @x: The position of the minimum x value of the rectangle (i.e. left hand corner) + * @y: The position of the minimum y value of the rectangle's bounds. + * @width: Width of the rectangle in pixels. + * @height: Height of the rectangle in pixels. + * + * A structure encapsulating a rectangle. + **/ +typedef struct { + long x; + long y; + long width; + long height; +} SPIRect; + +#ifdef __cplusplus +} +#endif #endif