1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/other-licenses/ia2/AccessibleComponent.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,124 @@ 1.4 +/************************************************************************* 1.5 + * 1.6 + * File Name (AccessibleComponent.idl) 1.7 + * 1.8 + * IAccessible2 IDL Specification 1.9 + * 1.10 + * Copyright (c) 2007, 2010 Linux Foundation 1.11 + * Copyright (c) 2006 IBM Corporation 1.12 + * Copyright (c) 2000, 2006 Sun Microsystems, Inc. 1.13 + * All rights reserved. 1.14 + * 1.15 + * 1.16 + * Redistribution and use in source and binary forms, with or without 1.17 + * modification, are permitted provided that the following conditions 1.18 + * are met: 1.19 + * 1.20 + * 1. Redistributions of source code must retain the above copyright 1.21 + * notice, this list of conditions and the following disclaimer. 1.22 + * 1.23 + * 2. Redistributions in binary form must reproduce the above 1.24 + * copyright notice, this list of conditions and the following 1.25 + * disclaimer in the documentation and/or other materials 1.26 + * provided with the distribution. 1.27 + * 1.28 + * 3. Neither the name of the Linux Foundation nor the names of its 1.29 + * contributors may be used to endorse or promote products 1.30 + * derived from this software without specific prior written 1.31 + * permission. 1.32 + * 1.33 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 1.34 + * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 1.35 + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1.36 + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 1.37 + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 1.38 + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1.39 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 1.40 + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 1.41 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1.42 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1.43 + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 1.44 + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 1.45 + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1.46 + * 1.47 + * This BSD License conforms to the Open Source Initiative "Simplified 1.48 + * BSD License" as published at: 1.49 + * http://www.opensource.org/licenses/bsd-license.php 1.50 + * 1.51 + * IAccessible2 is a trademark of the Linux Foundation. The IAccessible2 1.52 + * mark may be used in accordance with the Linux Foundation Trademark 1.53 + * Policy to indicate compliance with the IAccessible2 specification. 1.54 + * 1.55 + ************************************************************************/ 1.56 + 1.57 +import "objidl.idl"; 1.58 +import "oaidl.idl"; 1.59 +import "oleacc.idl"; 1.60 + 1.61 +/** A value specifying a color in ARGB format, where each 8 bit color component 1.62 +specifies alpha, red, green, and blue respectively. The alpha value is optional. 1.63 +*/ 1.64 +typedef long IA2Color; 1.65 + 1.66 +/** @brief This interface is implemented by any object that can be rendered 1.67 + on the screen. 1.68 + 1.69 + This interface provides the standard mechanism for an assistive technology 1.70 + to retrieve information concerning the graphical representation of an object. 1.71 + Coordinates used by the functions of this interface are specified in 1.72 + different coordinate systems. Their scale is the same and is equal to 1.73 + that of the screen coordinate system. In other words all coordinates 1.74 + are measured in pixels. They differ in their respective origin: 1.75 + <ul> 1.76 + <li>The screen coordinate system has its origin in the upper left 1.77 + corner of the current screen.</li> 1.78 + <li>The origin of the parent coordinate system is the upper left corner 1.79 + of the parent's bounding box. With no parent the screen coordinate 1.80 + system is used instead.</li> 1.81 + </ul> 1.82 +*/ 1.83 +[object, uuid(1546D4B0-4C98-4bda-89AE-9A64748BDDE4)] 1.84 +interface IAccessibleComponent : IUnknown 1.85 +{ 1.86 + 1.87 + /** @brief Returns the location of the upper left corner of the object's 1.88 + bounding box relative to the immediate parent object. 1.89 + 1.90 + The coordinates of the bounding box are given relative to the parent's 1.91 + coordinate system. The coordinates of the returned position are relative 1.92 + to this object's parent or relative to the screen on which this object 1.93 + is rendered if it has no parent. If the object is not on any screen 1.94 + the returned position is (0,0). 1.95 + 1.96 + @param [out] x 1.97 + @param [out] y 1.98 + @retval S_OK 1.99 + */ 1.100 + [propget] HRESULT locationInParent 1.101 + ( 1.102 + [out] long *x, 1.103 + [out, retval] long *y 1.104 + ); 1.105 + 1.106 + /** @brief Returns the foreground color of this object. 1.107 + @param [out] foreground 1.108 + The returned color is the foreground color of this object or, if 1.109 + that is not supported, the default foreground color. 1.110 + @retval S_OK 1.111 + */ 1.112 + [propget] HRESULT foreground 1.113 + ( 1.114 + [out, retval] IA2Color *foreground 1.115 + ); 1.116 + 1.117 + /** @brief Returns the background color of this object. 1.118 + @param [out] background 1.119 + The returned color is the background color of this object or, if 1.120 + that is not supported, the default background color. 1.121 + @retval S_OK 1.122 + */ 1.123 + [propget] HRESULT background 1.124 + ( 1.125 + [out, retval] IA2Color *background 1.126 + ); 1.127 +}