2 * AT-SPI - Assistive Technology Service Provider Interface
3 * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
5 * Copyright 2001, 2002 Sun Microsystems Inc.,
6 * Copyright 2001, 2002 Ximian, Inc.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
24 #include <cspi/spi-private.h>
27 * AccessibleValue_ref:
28 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
30 * Increment the reference count for an #AccessibleValue object.
33 AccessibleValue_ref (AccessibleValue *obj)
35 cspi_object_ref (obj);
39 * AccessibleValue_unref:
40 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
42 * Decrement the reference count for an #AccessibleValue object.
45 AccessibleValue_unref (AccessibleValue *obj)
47 cspi_object_unref (obj);
51 * AccessibleValue_getMinimumValue:
52 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
54 * Get the minimum allowed value for an #AccessibleValue.
56 * Returns: the minimum allowed value for this object.
60 AccessibleValue_getMinimumValue (AccessibleValue *obj)
64 cspi_return_val_if_fail (obj != NULL, 0.0);
67 Accessibility_Value__get_minimumValue (CSPI_OBJREF (obj), cspi_ev ());
69 cspi_return_val_if_ev ("getMinimumValue", 0.0);
75 * AccessibleValue_getCurrentValue:
76 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
78 * Get the current value for an #AccessibleValue.
80 * Returns: the current value for this object.
83 AccessibleValue_getCurrentValue (AccessibleValue *obj)
87 cspi_return_val_if_fail (obj != NULL, 0.0);
90 Accessibility_Value__get_currentValue (CSPI_OBJREF (obj), cspi_ev ());
92 cspi_return_val_if_ev ("getCurrentValue", 0.0);
98 * AccessibleValue_getMaximumValue:
99 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
101 * Get the maximum allowed value for an #AccessibleValue.
103 * Returns: the maximum allowed value for this object.
106 AccessibleValue_getMaximumValue (AccessibleValue *obj)
109 cspi_return_val_if_fail (obj != NULL, 0.0);
112 Accessibility_Value__get_maximumValue (CSPI_OBJREF (obj), cspi_ev ());
114 cspi_return_val_if_ev ("getMaximumValue", 0.0);
120 * AccessibleValue_setCurrentValue:
121 * @obj: a pointer to the #AccessibleValue implementor on which to operate.
122 * @newValue: a #float value which is the desired new value of the object.
124 * Set the current value of an #AccessibleValue.
126 * Returns: #TRUE if the value could be assigned the specified value,
130 AccessibleValue_setCurrentValue (AccessibleValue *obj,
133 cspi_return_val_if_fail (obj != NULL, FALSE);
135 Accessibility_Value__set_currentValue (
136 CSPI_OBJREF (obj), newValue, cspi_ev ());
138 cspi_return_val_if_ev ("setCurrentValue", FALSE);