| AT-SPI C Bindings Reference Manual | ||||
|---|---|---|---|---|
AccessibleValue InterfaceAccessibleValue Interface — An interface implemented by valuators, sliders, and other onscren components which allow discrete or continuous values to be manipulated. |
void AccessibleValue_ref (AccessibleValue *obj);void AccessibleValue_unref (AccessibleValue *obj);double AccessibleValue_getCurrentValue (AccessibleValue *obj);double AccessibleValue_getMaximumValue (AccessibleValue *obj);double AccessibleValue_getMinimumValue (AccessibleValue *obj);SPIBoolean AccessibleValue_setCurrentValue (AccessibleValue *obj,double newValue);double AccessibleValue_getMinimumIncrement (AccessibleValue *obj);
The Value interface is exposed by sliders, scrollbars, dials, and other components which are used to change scalar values in an application. The interface may be used to change a value in an "approximately continuous" fashion, or in integer increments - the interface allows the client to determine the incremental granularity of the adjustments possible, the possible range of values, and the current value. It also allows the value to be programmatically set, if the implementor's state does not include READONLY.
void AccessibleValue_ref (AccessibleValue *obj);
Increment the reference count for an
obj : |
a pointer to the |
void AccessibleValue_unref (AccessibleValue *obj);
Decrement the reference count for an
obj : |
a pointer to the |
double AccessibleValue_getCurrentValue (AccessibleValue *obj);
Get the current value for an
obj : |
a pointer to the |
| Returns : | the current value for this object. |
double AccessibleValue_getMaximumValue (AccessibleValue *obj);
Get the maximum allowed value for an
obj : |
a pointer to the |
| Returns : | the maximum allowed value for this object. |
double AccessibleValue_getMinimumValue (AccessibleValue *obj);
Get the minimum allowed value for an
obj : |
a pointer to the |
| Returns : | the minimum allowed value for this object. |
SPIBoolean AccessibleValue_setCurrentValue (AccessibleValue *obj,double newValue);
Set the current value of an
obj : |
a pointer to the |
newValue : |
a |
| Returns : | |
double AccessibleValue_getMinimumIncrement (AccessibleValue *obj);
Get the minimum increment by which an
obj : |
a pointer to the |
| Returns : | the minimum increment by which the value may be changed, or zero if the minimum increment cannot be determined. |