1 #include <cspi/spi-private.h>
5 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
7 * Increment the reference count for an #AccessibleValue object.
10 AccessibleValue_ref (AccessibleValue *obj)
12 cspi_object_ref (obj);
16 * AccessibleValue_unref:
17 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
19 * Decrement the reference count for an #AccessibleValue object.
22 AccessibleValue_unref (AccessibleValue *obj)
24 cspi_object_unref (obj);
28 * AccessibleValue_getMinimumValue:
29 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
31 * Get the minimum allowed value for an #AccessibleValue.
33 * Returns: the minimum allowed value for this object.
37 AccessibleValue_getMinimumValue (AccessibleValue *obj)
41 cspi_return_val_if_fail (obj != NULL, 0.0);
44 Accessibility_Value__get_minimumValue (CSPI_OBJREF (obj), cspi_ev ());
46 cspi_return_val_if_ev ("getMinimumValue", 0.0);
52 * AccessibleValue_getCurrentValue:
53 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
55 * Get the current value for an #AccessibleValue.
57 * Returns: the current value for this object.
60 AccessibleValue_getCurrentValue (AccessibleValue *obj)
64 cspi_return_val_if_fail (obj != NULL, 0.0);
67 Accessibility_Value__get_currentValue (CSPI_OBJREF (obj), cspi_ev ());
69 cspi_return_val_if_ev ("getCurrentValue", 0.0);
75 * AccessibleValue_getMaximumValue:
76 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
78 * Get the maximum allowed value for an #AccessibleValue.
80 * Returns: the maximum allowed value for this object.
83 AccessibleValue_getMaximumValue (AccessibleValue *obj)
87 cspi_return_val_if_fail (obj != NULL, 0.0);
90 Accessibility_Value__get_maximumValue (CSPI_OBJREF (obj), cspi_ev ());
92 cspi_return_val_if_ev ("getMaximumValue", 0.0);
98 * AccessibleValue_setCurrentValue:
99 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
100 * @newValue: a #float value which is the desired new value of the object.
102 * Set the current value of an #AccessibleValue.
104 * Returns: #TRUE if the value could be assigned the specified value,
108 AccessibleValue_setCurrentValue (AccessibleValue *obj,
111 cspi_return_val_if_fail (obj != NULL, FALSE);
113 Accessibility_Value__set_currentValue (
114 CSPI_OBJREF (obj), (CORBA_float) newValue, cspi_ev ());
116 cspi_return_val_if_ev ("setCurrentValue", FALSE);