X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cspi%2Fspi_value.c;h=78d2b56ef41956900234e3eb291103eae8ad5e6e;hb=9b94d95337a6bd6bc5946191ef52341b0e97530f;hp=bca1357908592cae69e8ef50efe0e5a8ca8ccc24;hpb=408978dd34f3338e49b6ace5f60b7606579ce7a9;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/cspi/spi_value.c b/cspi/spi_value.c index bca1357..78d2b56 100644 --- a/cspi/spi_value.c +++ b/cspi/spi_value.c @@ -1,54 +1,110 @@ +/** + * AccessibleValue_ref: + * @obj: a pointer to the #AccessibleValue implementor on which to operate. + * + * Increment the reference count for an #AccessibleValue object. + * + * Returns: (no return code implemented yet). + * + **/ int -SpiAccessibleValue_ref (SpiAccessibleValue *obj) - { - Accessibility_SpiValue_ref (*obj, &ev); - return 0; - } +AccessibleValue_ref (AccessibleValue *obj) +{ + Accessibility_Value_ref (*obj, &ev); + return 0; +} +/** + * AccessibleValue_unref: + * @obj: a pointer to the #AccessibleValue implementor on which to operate. + * + * Decrement the reference count for an #AccessibleValue object. + * + * Returns: (no return code implemented yet). + * + **/ int -SpiAccessibleValue_unref (SpiAccessibleValue *obj) - { - Accessibility_SpiValue_unref (*obj, &ev); - return 0; - } +AccessibleValue_unref (AccessibleValue *obj) +{ + Accessibility_Value_unref (*obj, &ev); + return 0; +} +/** + * AccessibleValue_getMinimumValue: + * @obj: a pointer to the #AccessibleValue implementor on which to operate. + * + * Get the minimum allowed value for an #AccessibleValue. + * + * Returns: the minimum allowed value for this object. + * + **/ float -SpiAccessibleValue_getMinimumSpiValue (SpiAccessibleValue *obj) +AccessibleValue_getMinimumValue (AccessibleValue *obj) { return (float) - Accessibility_SpiValue__get_minimumSpiValue (*obj, &ev); + Accessibility_Value__get_minimumValue (*obj, &ev); } +/** + * AccessibleValue_getCurrentValue: + * @obj: a pointer to the #AccessibleValue implementor on which to operate. + * + * Get the current value for an #AccessibleValue. + * + * Returns: the current value for this object. + * + **/ float -SpiAccessibleValue_getCurrentValue (SpiAccessibleValue *obj) +AccessibleValue_getCurrentValue (AccessibleValue *obj) { return (float) - Accessibility_SpiValue__get_currentValue (*obj, &ev); + Accessibility_Value__get_currentValue (*obj, &ev); } +/** + * AccessibleValue_getMaximumValue: + * @obj: a pointer to the #AccessibleValue implementor on which to operate. + * + * Get the maximum allowed value for an #AccessibleValue. + * + * Returns: the maximum allowed value for this object. + * + **/ float -SpiAccessibleValue_getMaximumSpiValue (SpiAccessibleValue *obj) +AccessibleValue_getMaximumValue (AccessibleValue *obj) { return (float) - Accessibility_SpiValue__get_maximumSpiValue (*obj, &ev); + Accessibility_Value__get_maximumValue (*obj, &ev); } +/** + * AccessibleValue_setCurrentValue: + * @obj: a pointer to the #AccessibleValue implementor on which to operate. + * @newValue: a #float value which is the desired new value of the object. + * + * Set the current value of an #AccessibleValue. + * + * Returns: #TRUE if the value could be assigned the specified value, + * #FALSE otherwise. + * + **/ boolean -SpiAccessibleValue_setCurrentValue (SpiAccessibleValue *obj, - float newSpiValue) +AccessibleValue_setCurrentValue (AccessibleValue *obj, + float newValue) { - Accessibility_SpiValue__set_currentValue (*obj, - (CORBA_float) newSpiValue, &ev); + Accessibility_Value__set_currentValue (*obj, + (CORBA_float) newValue, &ev); return TRUE; }