2 * AT-SPI - Assistive Technology Service Provider Interface
3 * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
5 * Copyright 2001 Sun Microsystems Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
23 #include <cspi/spi-private.h>
26 * AccessibleValue_ref:
27 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
29 * Increment the reference count for an #AccessibleValue object.
32 AccessibleValue_ref (AccessibleValue *obj)
34 cspi_object_ref (obj);
38 * AccessibleValue_unref:
39 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
41 * Decrement the reference count for an #AccessibleValue object.
44 AccessibleValue_unref (AccessibleValue *obj)
46 cspi_object_unref (obj);
50 * AccessibleValue_getMinimumValue:
51 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
53 * Get the minimum allowed value for an #AccessibleValue.
55 * Returns: the minimum allowed value for this object.
59 AccessibleValue_getMinimumValue (AccessibleValue *obj)
63 cspi_return_val_if_fail (obj != NULL, 0.0);
66 Accessibility_Value__get_minimumValue (CSPI_OBJREF (obj), cspi_ev ());
68 cspi_return_val_if_ev ("getMinimumValue", 0.0);
74 * AccessibleValue_getCurrentValue:
75 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
77 * Get the current value for an #AccessibleValue.
79 * Returns: the current value for this object.
82 AccessibleValue_getCurrentValue (AccessibleValue *obj)
86 cspi_return_val_if_fail (obj != NULL, 0.0);
89 Accessibility_Value__get_currentValue (CSPI_OBJREF (obj), cspi_ev ());
91 cspi_return_val_if_ev ("getCurrentValue", 0.0);
97 * AccessibleValue_getMaximumValue:
98 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
100 * Get the maximum allowed value for an #AccessibleValue.
102 * Returns: the maximum allowed value for this object.
105 AccessibleValue_getMaximumValue (AccessibleValue *obj)
108 cspi_return_val_if_fail (obj != NULL, 0.0);
111 Accessibility_Value__get_maximumValue (CSPI_OBJREF (obj), cspi_ev ());
113 cspi_return_val_if_ev ("getMaximumValue", 0.0);
119 * AccessibleValue_setCurrentValue:
120 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
121 * @newValue: a #float value which is the desired new value of the object.
123 * Set the current value of an #AccessibleValue.
125 * Returns: #TRUE if the value could be assigned the specified value,
129 AccessibleValue_setCurrentValue (AccessibleValue *obj,
132 cspi_return_val_if_fail (obj != NULL, FALSE);
134 Accessibility_Value__set_currentValue (
135 CSPI_OBJREF (obj), newValue, cspi_ev ());
137 cspi_return_val_if_ev ("setCurrentValue", FALSE);