2 * This file is part of duit.
4 * duit is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * duit is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with duit; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = AtkValue.html
52 private import atk
.atktypes
;
54 private import lib
.atk
;
56 private import gobject
.Value
;
60 * AtkValue should be implemented for components which either display a
61 * value from a bounded range, or which allow the user to specify a value
62 * from a bounded range, or both. For instance, most sliders and range
63 * controls, as well as dials, should have AtkObject representations which
64 * implement AtkValue on the component's behalf. AtKValues may be
65 * read-only, in which case attempts to alter the value return FALSE to
71 /** the main Gtk struct */
72 protected AtkValue
* atkValue
;
75 public AtkValue
* getValueAtkStruct()
81 /** the main Gtk struct as a void* */
82 protected void* getStruct()
84 return cast(void*)atkValue
;
88 * Sets our main struct and passes it to the parent class
90 public this (AtkValue
* atkValue
)
92 this.atkValue
= atkValue
;
100 * Gets the value of this object.
102 * a GObject instance that implements AtkValueIface
104 * a GValue representing the current accessible value
106 public void getCurrentValue(Value value
)
108 // void atk_value_get_current_value (AtkValue *obj, GValue *value);
109 atk_value_get_current_value(atkValue
, (value
is null) ?
null : value
.getValueStruct());
113 * Gets the maximum value of this object.
115 * a GObject instance that implements AtkValueIface
117 * a GValue representing the maximum accessible value
119 public void getMaximumValue(Value value
)
121 // void atk_value_get_maximum_value (AtkValue *obj, GValue *value);
122 atk_value_get_maximum_value(atkValue
, (value
is null) ?
null : value
.getValueStruct());
126 * Gets the minimum value of this object.
128 * a GObject instance that implements AtkValueIface
130 * a GValue representing the minimum accessible value
132 public void getMinimumValue(Value value
)
134 // void atk_value_get_minimum_value (AtkValue *obj, GValue *value);
135 atk_value_get_minimum_value(atkValue
, (value
is null) ?
null : value
.getValueStruct());
139 * Sets the value of this object.
141 * a GObject instance that implements AtkValueIface
143 * a GValue which is the desired new accessible value.
145 * TRUE if new value is successfully set, FALSE otherwise.
147 public int setCurrentValue(Value value
)
149 // gboolean atk_value_set_current_value (AtkValue *obj, const GValue *value);
150 return atk_value_set_current_value(atkValue
, (value
is null) ?
null : value
.getValueStruct());
154 * Gets the minimum increment by which the value of this object may be changed. If zero,
155 * the minimum increment is undefined, which may mean that it is limited only by the
156 * floating point precision of the platform.
158 * a GObject instance that implements AtkValueIface
160 * a GValue representing the minimum increment by which the accessible value may be changed
163 public void getMinimumIncrement(Value value
)
165 // void atk_value_get_minimum_increment (AtkValue *obj, GValue *value);
166 atk_value_get_minimum_increment(atkValue
, (value
is null) ?
null : value
.getValueStruct());