зеркало из https://github.com/mozilla/pjs.git
99 строки
3.5 KiB
Plaintext
99 строки
3.5 KiB
Plaintext
/*************************************************************************
|
|
*
|
|
* File Name (AccessibleValue)
|
|
*
|
|
* IAccessible2 IDL Specification
|
|
*
|
|
* 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.
|
|
|
|
The IAccessibleValue interface represents a single numerical value and should
|
|
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
|
|
Returns the current value represented by this object.
|
|
*/
|
|
[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.
|
|
*/
|
|
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
|
|
has no upper bound then an empty object is returned.
|
|
*/
|
|
[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
|
|
has no upper bound then an empty object is returned.
|
|
*/
|
|
[propget] HRESULT minimumValue
|
|
(
|
|
[out, retval] VARIANT *minimumValue
|
|
);
|
|
|
|
};
|