2007-03-22 10:30:00 -07:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
|
|
|
* File Name (AccessibleValue)
|
|
|
|
*
|
|
|
|
* IAccessible2 IDL Specification
|
|
|
|
*
|
2009-09-10 18:07:56 -07:00
|
|
|
* Copyright (c) Linux Foundation 2007, 2008
|
2007-03-22 10:30:00 -07:00
|
|
|
* Copyright (c) IBM Corp. 2006
|
|
|
|
* Copyright (c) Sun Microsystems, Inc. 2000, 2006
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
import "objidl.idl";
|
|
|
|
import "oaidl.idl";
|
|
|
|
import "oleacc.idl";
|
|
|
|
|
|
|
|
/** @brief This interface gives access to a single numerical value.
|
|
|
|
|
2009-09-10 18:07:56 -07:00
|
|
|
The %IAccessibleValue interface represents a single numerical value and should
|
2007-03-22 10:30:00 -07:00
|
|
|
be implemented by any class that supports numerical value like progress bars
|
|
|
|
and spin boxes. This interface lets you access the value and its upper and
|
|
|
|
lower bounds.
|
|
|
|
*/
|
|
|
|
[object, uuid(35855B5B-C566-4fd0-A7B1-E65465600394)]
|
|
|
|
interface IAccessibleValue : IUnknown
|
|
|
|
{
|
|
|
|
|
|
|
|
/** @brief Returns the value of this object as a number.
|
|
|
|
|
|
|
|
The exact return type is implementation dependent. Typical types are long and
|
|
|
|
double.
|
|
|
|
@param [out] currentValue
|
2009-09-10 18:07:56 -07:00
|
|
|
Returns the current value represented by this object. See the section about
|
|
|
|
@ref _variants "VARIANTs" for additional information.
|
|
|
|
@retval S_OK
|
|
|
|
@retval S_FALSE if there is nothing to return, [out] value is NULL
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
|
|
|
[propget] HRESULT currentValue
|
|
|
|
(
|
|
|
|
[out, retval] VARIANT *currentValue
|
|
|
|
);
|
|
|
|
|
|
|
|
/** @brief Sets the value of this object to the given number.
|
|
|
|
|
|
|
|
The argument is clipped to the valid interval whose upper and lower
|
|
|
|
bounds are returned by the methods IAccessibleValue::maximumValue and
|
|
|
|
IAccessibleValue::minimumValue, i.e. if it is lower than the minimum
|
|
|
|
value the new value will be the minimum and if it is greater than the
|
|
|
|
maximum then the new value will be the maximum.
|
|
|
|
|
|
|
|
@param [out] value
|
|
|
|
The new value represented by this object. The set of admissible types for
|
|
|
|
this argument is implementation dependent.
|
2009-09-10 18:07:56 -07:00
|
|
|
@retval S_OK
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
|
|
|
HRESULT setCurrentValue
|
|
|
|
(
|
|
|
|
[in] VARIANT value
|
|
|
|
);
|
|
|
|
|
|
|
|
/** @brief Returns the maximal value that can be represented by this object.
|
|
|
|
|
|
|
|
The type of the returned value is implementation dependent. It does not have
|
|
|
|
to be the same type as that returned by method IAccessibleValue::currentValue.
|
|
|
|
|
|
|
|
@param [out] maximumValue
|
|
|
|
Returns the maximal value in an implementation dependent type. If this object
|
2009-09-10 18:07:56 -07:00
|
|
|
has no upper bound then an empty object is returned. See the section about
|
|
|
|
@ref _variants "VARIANTs" for additional information.
|
|
|
|
@retval S_OK
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
|
|
|
[propget] HRESULT maximumValue
|
|
|
|
(
|
|
|
|
[out, retval] VARIANT *maximumValue
|
|
|
|
);
|
|
|
|
|
|
|
|
/** @brief Returns the minimal value that can be represented by this object.
|
|
|
|
|
|
|
|
The type of the returned value is implementation dependent. It does not have
|
|
|
|
to be the same type as that returned by method IAccessibleValue::currentValue.
|
|
|
|
|
|
|
|
@param [out] minimumValue
|
|
|
|
Returns the minimal value in an implementation dependent type. If this object
|
2009-09-10 18:07:56 -07:00
|
|
|
has no lower bound then an empty object is returned. See the section about
|
|
|
|
@ref _variants "VARIANTs" for additional information.
|
|
|
|
@retval S_OK
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
|
|
|
[propget] HRESULT minimumValue
|
|
|
|
(
|
|
|
|
[out, retval] VARIANT *minimumValue
|
|
|
|
);
|
|
|
|
|
|
|
|
};
|