| 1 | /* GTK - The GIMP Toolkit |
| 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library 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 GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | /* |
| 19 | * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS |
| 20 | * file for a list of people on the GTK+ Team. See the ChangeLog |
| 21 | * files for a list of changes. These files are distributed with |
| 22 | * GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
| 23 | */ |
| 24 | |
| 25 | #include "config.h"cxx . . $ `<file>/build/config.h`/ |
| 26 | #include "gtkadjustment.h"cxx . . $ `<file>/gtk/gtkadjustment.h`/ |
| 27 | #include "gtkadjustmentprivate.h"cxx . . $ `<file>/gtk/gtkadjustmentprivate.h`/ |
| 28 | #include "gtkmarshalers.h"cxx . . $ `<file>/build/gtk/gtkmarshalers.h`/ |
| 29 | #include "gtkprivate.h"cxx . . $ `<file>/gtk/gtkprivate.h`/ |
| 30 | |
| 31 | |
| 32 | /** |
| 33 | * GtkAdjustment: |
| 34 | * |
| 35 | * A model for a numeric value. |
| 36 | * |
| 37 | * The `GtkAdjustment` has an associated lower and upper bound. |
| 38 | * It also contains step and page increments, and a page size. |
| 39 | * |
| 40 | * Adjustments are used within several GTK widgets, including |
| 41 | * [[email protected]], [[email protected]], [[email protected]] |
| 42 | * and [[email protected]]. |
| 43 | * |
| 44 | * The `GtkAdjustment` object does not update the value itself. Instead |
| 45 | * it is left up to the owner of the `GtkAdjustment` to control the value. |
| 46 | */ |
| 47 | |
| 48 | |
| 49 | struct _GtkAdjustmentPrivatecxx . . $ _GtkAdjustmentPrivate# { |
| 50 | double lowercxx . . $ _GtkAdjustmentPrivate#lower.; |
| 51 | double uppercxx . . $ _GtkAdjustmentPrivate#upper.; |
| 52 | double valuecxx . . $ _GtkAdjustmentPrivate#value.; |
| 53 | double step_incrementcxx . . $ _GtkAdjustmentPrivate#step_increment.; |
| 54 | double page_incrementcxx . . $ _GtkAdjustmentPrivate#page_increment.; |
| 55 | double page_sizecxx . . $ _GtkAdjustmentPrivate#page_size.; |
| 56 | |
| 57 | double sourcecxx . . $ _GtkAdjustmentPrivate#source.; |
| 58 | double targetcxx . . $ _GtkAdjustmentPrivate#target.; |
| 59 | |
| 60 | guintcxx . . $ guint# durationcxx . . $ _GtkAdjustmentPrivate#duration.; |
| 61 | guintcxx . . $ guint# tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id.; |
| 62 | gint64cxx . . $ gint64# start_timecxx . . $ _GtkAdjustmentPrivate#start_time.; |
| 63 | gint64cxx . . $ gint64# end_timecxx . . $ _GtkAdjustmentPrivate#end_time.; |
| 64 | GdkFrameClockcxx . . $ GdkFrameClock# *clockcxx . . $ _GtkAdjustmentPrivate#clock.; |
| 65 | }; |
| 66 | typedef struct _GtkAdjustmentPrivatecxx . . $ _GtkAdjustmentPrivate# GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate#; |
| 67 | |
| 68 | enumcxx . . $ $anonymous_type_897101c3fd20cc98_0# |
| 69 | { |
| 70 | PROP_0cxx . . $ PROP_0., |
| 71 | PROP_VALUEcxx . . $ PROP_VALUE., |
| 72 | PROP_LOWERcxx . . $ PROP_LOWER., |
| 73 | PROP_UPPERcxx . . $ PROP_UPPER., |
| 74 | PROP_STEP_INCREMENTcxx . . $ PROP_STEP_INCREMENT., |
| 75 | PROP_PAGE_INCREMENTcxx . . $ PROP_PAGE_INCREMENT., |
| 76 | PROP_PAGE_SIZEcxx . . $ PROP_PAGE_SIZE., |
| 77 | NUM_PROPERTIEScxx . . $ NUM_PROPERTIES. |
| 78 | }; |
| 79 | |
| 80 | enumcxx . . $ $anonymous_type_897101c3fd20cc98_1# |
| 81 | { |
| 82 | CHANGEDcxx . . $ CHANGED., |
| 83 | VALUE_CHANGEDcxx . . $ VALUE_CHANGED., |
| 84 | LAST_SIGNALcxx . . $ LAST_SIGNAL. |
| 85 | }; |
| 86 | |
| 87 | |
| 88 | static void gtk_adjustment_get_propertycxx . . $ gtk_adjustment_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object, |
| 89 | guintcxx . . $ guint# prop_id, |
| 90 | GValuecxx . . $ GValue# *value, |
| 91 | GParamSpeccxx . . $ GParamSpec# *pspec); |
| 92 | static void gtk_adjustment_set_propertycxx . . $ gtk_adjustment_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object, |
| 93 | guintcxx . . $ guint# prop_id, |
| 94 | const GValuecxx . . $ GValue# *value, |
| 95 | GParamSpeccxx . . $ GParamSpec# *pspec); |
| 96 | static void gtk_adjustment_dispatch_properties_changedcxx . . $ gtk_adjustment_dispatch_properties_changed(33bdd79ef2f847d0). (GObjectcxx . . $ GObject# *object, |
| 97 | guintcxx . . $ guint# n_pspecs, |
| 98 | GParamSpeccxx . . $ GParamSpec# **pspecs); |
| 99 | |
| 100 | static guintcxx . . $ guint# adjustment_signalscxx . . $ adjustment_signals.[LAST_SIGNALcxx . . $ LAST_SIGNAL.] = { 0 }; |
| 101 | |
| 102 | static GParamSpeccxx . . $ GParamSpec# *adjustment_propscxx . . $ adjustment_props.[NUM_PROPERTIEScxx . . $ NUM_PROPERTIES.] = { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, }; |
| 103 | |
| 104 | G_DEFINE_TYPE_WITH_PRIVATEcxx . . $ `<external>/9567554376676449156/gtype.h:1876:9`! (GtkAdjustment, gtk_adjustment, G_TYPE_INITIALLY_UNOWNEDcxx . . $ `<external>/1341695927569185362/gobject.h:144:9`!) |
| 105 | |
| 106 | static void |
| 107 | gtk_adjustment_finalizecxx . . $ gtk_adjustment_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object) |
| 108 | { |
| 109 | GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment = GTK_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:37:9`! (object); |
| 110 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 111 | |
| 112 | if (priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id.) |
| 113 | g_signal_handler_disconnectcxx . . $ g_signal_handler_disconnect(5500c4293b1bbef0). (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock., priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id.); |
| 114 | if (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock.) |
| 115 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock.); |
| 116 | |
| 117 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_adjustment_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (object); |
| 118 | } |
| 119 | |
| 120 | static void |
| 121 | gtk_adjustment_class_initcxx . . $ gtk_adjustment_class_init(de2a211110710792). (GtkAdjustmentClasscxx . . $ GtkAdjustmentClass# *class) |
| 122 | { |
| 123 | GObjectClasscxx . . $ GObjectClass# *gobject_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (class); |
| 124 | |
| 125 | gobject_class->finalizecxx . . $ _GObjectClass#finalize. = gtk_adjustment_finalizecxx . . $ gtk_adjustment_finalize(6087475fa43034d3).; |
| 126 | gobject_class->set_propertycxx . . $ _GObjectClass#set_property. = gtk_adjustment_set_propertycxx . . $ gtk_adjustment_set_property(d7c4bb29f36c0dc4).; |
| 127 | gobject_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_adjustment_get_propertycxx . . $ gtk_adjustment_get_property(cee2c52f22407c66).; |
| 128 | gobject_class->dispatch_properties_changedcxx . . $ _GObjectClass#dispatch_properties_changed. = gtk_adjustment_dispatch_properties_changedcxx . . $ gtk_adjustment_dispatch_properties_changed(33bdd79ef2f847d0).; |
| 129 | |
| 130 | class->changedcxx . . $ _GtkAdjustmentClass#changed. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 131 | class->value_changedcxx . . $ _GtkAdjustmentClass#value_changed. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 132 | |
| 133 | /** |
| 134 | * GtkAdjustment:value: |
| 135 | * |
| 136 | * The value of the adjustment. |
| 137 | */ |
| 138 | adjustment_propscxx . . $ adjustment_props.[PROP_VALUEcxx . . $ PROP_VALUE.] = |
| 139 | g_param_spec_doublecxx . . $ g_param_spec_double(7074fc8ad37faddb). ("value", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 140 | -G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, |
| 141 | 0.0, |
| 142 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 143 | |
| 144 | /** |
| 145 | * GtkAdjustment:lower: |
| 146 | * |
| 147 | * The minimum value of the adjustment. |
| 148 | */ |
| 149 | adjustment_propscxx . . $ adjustment_props.[PROP_LOWERcxx . . $ PROP_LOWER.] = |
| 150 | g_param_spec_doublecxx . . $ g_param_spec_double(7074fc8ad37faddb). ("lower", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 151 | -G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, |
| 152 | 0.0, |
| 153 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 154 | |
| 155 | /** |
| 156 | * GtkAdjustment:upper: |
| 157 | * |
| 158 | * The maximum value of the adjustment. |
| 159 | * |
| 160 | * Note that values will be restricted by `upper - page-size` if the page-size |
| 161 | * property is nonzero. |
| 162 | */ |
| 163 | adjustment_propscxx . . $ adjustment_props.[PROP_UPPERcxx . . $ PROP_UPPER.] = |
| 164 | g_param_spec_doublecxx . . $ g_param_spec_double(7074fc8ad37faddb). ("upper", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 165 | -G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, |
| 166 | 0.0, |
| 167 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 168 | |
| 169 | /** |
| 170 | * GtkAdjustment:step-increment: |
| 171 | * |
| 172 | * The step increment of the adjustment. |
| 173 | */ |
| 174 | adjustment_propscxx . . $ adjustment_props.[PROP_STEP_INCREMENTcxx . . $ PROP_STEP_INCREMENT.] = |
| 175 | g_param_spec_doublecxx . . $ g_param_spec_double(7074fc8ad37faddb). ("step-increment", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 176 | -G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, |
| 177 | 0.0, |
| 178 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 179 | |
| 180 | /** |
| 181 | * GtkAdjustment:page-increment: |
| 182 | * |
| 183 | * The page increment of the adjustment. |
| 184 | */ |
| 185 | adjustment_propscxx . . $ adjustment_props.[PROP_PAGE_INCREMENTcxx . . $ PROP_PAGE_INCREMENT.] = |
| 186 | g_param_spec_doublecxx . . $ g_param_spec_double(7074fc8ad37faddb). ("page-increment", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 187 | -G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, |
| 188 | 0.0, |
| 189 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 190 | |
| 191 | /** |
| 192 | * GtkAdjustment:page-size: |
| 193 | * |
| 194 | * The page size of the adjustment. |
| 195 | * |
| 196 | * Note that the page-size is irrelevant and should be set to zero |
| 197 | * if the adjustment is used for a simple scalar value, e.g. in a |
| 198 | * `GtkSpinButton`. |
| 199 | */ |
| 200 | adjustment_propscxx . . $ adjustment_props.[PROP_PAGE_SIZEcxx . . $ PROP_PAGE_SIZE.] = |
| 201 | g_param_spec_doublecxx . . $ g_param_spec_double(7074fc8ad37faddb). ("page-size", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 202 | -G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, G_MAXDOUBLEcxx . . $ `<external>/10505296616216143549/glibconfig.h:34:9`!, |
| 203 | 0.0, |
| 204 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 205 | |
| 206 | g_object_class_install_propertiescxx . . $ g_object_class_install_properties(569d03e6a4088541). (gobject_class, NUM_PROPERTIEScxx . . $ NUM_PROPERTIES., adjustment_propscxx . . $ adjustment_props.); |
| 207 | |
| 208 | /** |
| 209 | * GtkAdjustment::changed: |
| 210 | * @adjustment: the adjustment which emitted the signal |
| 211 | * |
| 212 | * Emitted when one or more of the `GtkAdjustment` properties have been |
| 213 | * changed. |
| 214 | * |
| 215 | * Note that the [[email protected]:value] property is |
| 216 | * covered by the [[email protected]::value-changed] signal. |
| 217 | */ |
| 218 | adjustment_signalscxx . . $ adjustment_signals.[CHANGEDcxx . . $ CHANGED.] = |
| 219 | g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("changed"), |
| 220 | G_OBJECT_CLASS_TYPEcxx . . $ `<external>/1341695927569185362/gobject.h:117:9`! (class), |
| 221 | G_SIGNAL_RUN_FIRSTcxx . . $ G_SIGNAL_RUN_FIRST. | G_SIGNAL_NO_RECURSEcxx . . $ G_SIGNAL_NO_RECURSE., |
| 222 | G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkAdjustmentClass, changed), |
| 223 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 224 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 225 | G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0); |
| 226 | |
| 227 | /** |
| 228 | * GtkAdjustment::value-changed: |
| 229 | * @adjustment: the adjustment which emitted the signal |
| 230 | * |
| 231 | * Emitted when the value has been changed. |
| 232 | */ |
| 233 | adjustment_signalscxx . . $ adjustment_signals.[VALUE_CHANGEDcxx . . $ VALUE_CHANGED.] = |
| 234 | g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("value-changed"), |
| 235 | G_OBJECT_CLASS_TYPEcxx . . $ `<external>/1341695927569185362/gobject.h:117:9`! (class), |
| 236 | G_SIGNAL_RUN_FIRSTcxx . . $ G_SIGNAL_RUN_FIRST. | G_SIGNAL_NO_RECURSEcxx . . $ G_SIGNAL_NO_RECURSE., |
| 237 | G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkAdjustmentClass, value_changed), |
| 238 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 239 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 240 | G_TYPE_NONEcxx . . $ `<external>/9567554376676449156/gtype.h:72:9`!, 0); |
| 241 | } |
| 242 | |
| 243 | static void |
| 244 | gtk_adjustment_initcxx . . $ gtk_adjustment_init(b291aa00d5bc5a3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 245 | { |
| 246 | } |
| 247 | |
| 248 | static void |
| 249 | gtk_adjustment_get_propertycxx . . $ gtk_adjustment_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object, |
| 250 | guintcxx . . $ guint# prop_id, |
| 251 | GValuecxx . . $ GValue# *value, |
| 252 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 253 | { |
| 254 | GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment = GTK_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:37:9`! (object); |
| 255 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 256 | |
| 257 | switch (prop_id) |
| 258 | { |
| 259 | case PROP_VALUEcxx . . $ PROP_VALUE.: |
| 260 | g_value_set_doublecxx . . $ g_value_set_double(994eddfdeb9c9cc0). (value, priv->valuecxx . . $ _GtkAdjustmentPrivate#value.); |
| 261 | break; |
| 262 | case PROP_LOWERcxx . . $ PROP_LOWER.: |
| 263 | g_value_set_doublecxx . . $ g_value_set_double(994eddfdeb9c9cc0). (value, priv->lowercxx . . $ _GtkAdjustmentPrivate#lower.); |
| 264 | break; |
| 265 | case PROP_UPPERcxx . . $ PROP_UPPER.: |
| 266 | g_value_set_doublecxx . . $ g_value_set_double(994eddfdeb9c9cc0). (value, priv->uppercxx . . $ _GtkAdjustmentPrivate#upper.); |
| 267 | break; |
| 268 | case PROP_STEP_INCREMENTcxx . . $ PROP_STEP_INCREMENT.: |
| 269 | g_value_set_doublecxx . . $ g_value_set_double(994eddfdeb9c9cc0). (value, priv->step_incrementcxx . . $ _GtkAdjustmentPrivate#step_increment.); |
| 270 | break; |
| 271 | case PROP_PAGE_INCREMENTcxx . . $ PROP_PAGE_INCREMENT.: |
| 272 | g_value_set_doublecxx . . $ g_value_set_double(994eddfdeb9c9cc0). (value, priv->page_incrementcxx . . $ _GtkAdjustmentPrivate#page_increment.); |
| 273 | break; |
| 274 | case PROP_PAGE_SIZEcxx . . $ PROP_PAGE_SIZE.: |
| 275 | g_value_set_doublecxx . . $ g_value_set_double(994eddfdeb9c9cc0). (value, priv->page_sizecxx . . $ _GtkAdjustmentPrivate#page_size.); |
| 276 | break; |
| 277 | default: |
| 278 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec); |
| 279 | break; |
| 280 | } |
| 281 | } |
| 282 | |
| 283 | static void |
| 284 | gtk_adjustment_set_propertycxx . . $ gtk_adjustment_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object, |
| 285 | guintcxx . . $ guint# prop_id, |
| 286 | const GValuecxx . . $ GValue# *value, |
| 287 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 288 | { |
| 289 | GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment = GTK_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:37:9`! (object); |
| 290 | double double_value = g_value_get_doublecxx . . $ g_value_get_double(5c6b000bff87b62c). (value); |
| 291 | |
| 292 | switch (prop_id) |
| 293 | { |
| 294 | case PROP_VALUEcxx . . $ PROP_VALUE.: |
| 295 | gtk_adjustment_set_valuecxx . . $ gtk_adjustment_set_value(7d3846fa90c40411). (adjustment, double_value); |
| 296 | break; |
| 297 | case PROP_LOWERcxx . . $ PROP_LOWER.: |
| 298 | gtk_adjustment_set_lowercxx . . $ gtk_adjustment_set_lower(7d3846fa90c40411). (adjustment, double_value); |
| 299 | break; |
| 300 | case PROP_UPPERcxx . . $ PROP_UPPER.: |
| 301 | gtk_adjustment_set_uppercxx . . $ gtk_adjustment_set_upper(7d3846fa90c40411). (adjustment, double_value); |
| 302 | break; |
| 303 | case PROP_STEP_INCREMENTcxx . . $ PROP_STEP_INCREMENT.: |
| 304 | gtk_adjustment_set_step_incrementcxx . . $ gtk_adjustment_set_step_increment(7d3846fa90c40411). (adjustment, double_value); |
| 305 | break; |
| 306 | case PROP_PAGE_INCREMENTcxx . . $ PROP_PAGE_INCREMENT.: |
| 307 | gtk_adjustment_set_page_incrementcxx . . $ gtk_adjustment_set_page_increment(7d3846fa90c40411). (adjustment, double_value); |
| 308 | break; |
| 309 | case PROP_PAGE_SIZEcxx . . $ PROP_PAGE_SIZE.: |
| 310 | gtk_adjustment_set_page_sizecxx . . $ gtk_adjustment_set_page_size(7d3846fa90c40411). (adjustment, double_value); |
| 311 | break; |
| 312 | default: |
| 313 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec); |
| 314 | break; |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | static inline void |
| 319 | emit_value_changedcxx . . $ emit_value_changed(b291aa00d5bc5a3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 320 | { |
| 321 | g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (adjustment, adjustment_signalscxx . . $ adjustment_signals.[VALUE_CHANGEDcxx . . $ VALUE_CHANGED.], 0); |
| 322 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (adjustment), adjustment_propscxx . . $ adjustment_props.[PROP_VALUEcxx . . $ PROP_VALUE.]); |
| 323 | } |
| 324 | |
| 325 | static void |
| 326 | gtk_adjustment_dispatch_properties_changedcxx . . $ gtk_adjustment_dispatch_properties_changed(33bdd79ef2f847d0). (GObjectcxx . . $ GObject# *object, |
| 327 | guintcxx . . $ guint# n_pspecs, |
| 328 | GParamSpeccxx . . $ GParamSpec# **pspecs) |
| 329 | { |
| 330 | gbooleancxx . . $ gboolean# changed = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 331 | int i; |
| 332 | |
| 333 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_adjustment_parent_class)->dispatch_properties_changedcxx . . $ _GObjectClass#dispatch_properties_changed. (object, n_pspecs, pspecs); |
| 334 | |
| 335 | for (i = 0; i < n_pspecs; i++) |
| 336 | switch (pspecs[i]->param_idcxx . . $ _GParamSpec#param_id.) |
| 337 | { |
| 338 | case PROP_LOWERcxx . . $ PROP_LOWER.: |
| 339 | case PROP_UPPERcxx . . $ PROP_UPPER.: |
| 340 | case PROP_STEP_INCREMENTcxx . . $ PROP_STEP_INCREMENT.: |
| 341 | case PROP_PAGE_INCREMENTcxx . . $ PROP_PAGE_INCREMENT.: |
| 342 | case PROP_PAGE_SIZEcxx . . $ PROP_PAGE_SIZE.: |
| 343 | changed = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 344 | break; |
| 345 | default: |
| 346 | break; |
| 347 | } |
| 348 | |
| 349 | if (changed) |
| 350 | { |
| 351 | g_signal_emitcxx . . $ g_signal_emit(cc3f7c2ba1c6a182). (object, adjustment_signalscxx . . $ adjustment_signals.[CHANGEDcxx . . $ CHANGED.], 0); |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | double |
| 356 | gtk_adjustment_get_bounded_uppercxx . . $ gtk_adjustment_get_bounded_upper(23c94c3b49116bb3). (GtkAdjustmentcxx . . $ GtkAdjustment# *self) |
| 357 | { |
| 358 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (self); |
| 359 | |
| 360 | /* The real upper value is upper - page_size and not below the lower value. */ |
| 361 | return MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (priv->lower, priv->upper - priv->page_size); |
| 362 | } |
| 363 | |
| 364 | static double |
| 365 | gtk_adjustment_sanitize_valuecxx . . $ gtk_adjustment_sanitize_value(db43f2743ca04220). (GtkAdjustmentcxx . . $ GtkAdjustment# *self, |
| 366 | double value) |
| 367 | { |
| 368 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (self); |
| 369 | gdoublecxx . . $ gdouble# upper = gtk_adjustment_get_bounded_uppercxx . . $ gtk_adjustment_get_bounded_upper(23c94c3b49116bb3). (self); |
| 370 | |
| 371 | return CLAMPcxx . . $ `<external>/12741050725406041920/gmacros.h:984:9`! (value, priv->lower, upper); |
| 372 | } |
| 373 | |
| 374 | /** |
| 375 | * gtk_adjustment_new: |
| 376 | * @value: the initial value |
| 377 | * @lower: the minimum value |
| 378 | * @upper: the maximum value |
| 379 | * @step_increment: the step increment |
| 380 | * @page_increment: the page increment |
| 381 | * @page_size: the page size |
| 382 | * |
| 383 | * Creates a new `GtkAdjustment`. |
| 384 | * |
| 385 | * Returns: a new `GtkAdjustment` |
| 386 | */ |
| 387 | GtkAdjustmentcxx . . $ GtkAdjustment# * |
| 388 | gtk_adjustment_newcxx . . $ gtk_adjustment_new(f9ef38989e4aef29). (double value, |
| 389 | double lower, |
| 390 | double upper, |
| 391 | double step_increment, |
| 392 | double page_increment, |
| 393 | double page_size) |
| 394 | { |
| 395 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (lower + page_size <= upper, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 396 | |
| 397 | return g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:36:9`!, |
| 398 | "lower", lower, |
| 399 | "upper", upper, |
| 400 | "step-increment", step_increment, |
| 401 | "page-increment", page_increment, |
| 402 | "page-size", page_size, |
| 403 | "value", value, |
| 404 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 405 | } |
| 406 | |
| 407 | /** |
| 408 | * gtk_adjustment_get_value: |
| 409 | * @adjustment: an adjustment |
| 410 | * |
| 411 | * Gets the current value of the adjustment. |
| 412 | * |
| 413 | * Returns: the current value |
| 414 | */ |
| 415 | double |
| 416 | gtk_adjustment_get_valuecxx . . $ gtk_adjustment_get_value(23c94c3b49116bb3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 417 | { |
| 418 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 419 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment), 0.0); |
| 420 | |
| 421 | return priv->valuecxx . . $ _GtkAdjustmentPrivate#value.; |
| 422 | } |
| 423 | |
| 424 | double |
| 425 | gtk_adjustment_get_target_valuecxx . . $ gtk_adjustment_get_target_value(23c94c3b49116bb3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 426 | { |
| 427 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 428 | |
| 429 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment), 0.0); |
| 430 | |
| 431 | if (priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id.) |
| 432 | return priv->targetcxx . . $ _GtkAdjustmentPrivate#target.; |
| 433 | else |
| 434 | return priv->valuecxx . . $ _GtkAdjustmentPrivate#value.; |
| 435 | } |
| 436 | |
| 437 | static void |
| 438 | adjustment_set_valuecxx . . $ adjustment_set_value(7d3846fa90c40411). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 439 | double value) |
| 440 | { |
| 441 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 442 | |
| 443 | value = gtk_adjustment_sanitize_valuecxx . . $ gtk_adjustment_sanitize_value(db43f2743ca04220). (adjustment, value); |
| 444 | |
| 445 | if (priv->valuecxx . . $ _GtkAdjustmentPrivate#value. != value) |
| 446 | { |
| 447 | priv->valuecxx . . $ _GtkAdjustmentPrivate#value. = value; |
| 448 | emit_value_changedcxx . . $ emit_value_changed(b291aa00d5bc5a3). (adjustment); |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | static void gtk_adjustment_on_frame_clock_updatecxx . . $ gtk_adjustment_on_frame_clock_update(b1fcce055da22e6d). (GdkFrameClockcxx . . $ GdkFrameClock# *clock, |
| 453 | GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment); |
| 454 | |
| 455 | static void |
| 456 | gtk_adjustment_begin_updatingcxx . . $ gtk_adjustment_begin_updating(b291aa00d5bc5a3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 457 | { |
| 458 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 459 | |
| 460 | if (priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id. == 0) |
| 461 | { |
| 462 | priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id. = g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (priv->clock, "update", |
| 463 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (gtk_adjustment_on_frame_clock_update), adjustment); |
| 464 | gdk_frame_clock_begin_updatingcxx . . $ gdk_frame_clock_begin_updating(4f21140f29f248f1). (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock.); |
| 465 | } |
| 466 | } |
| 467 | |
| 468 | static void |
| 469 | gtk_adjustment_end_updatingcxx . . $ gtk_adjustment_end_updating(b291aa00d5bc5a3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 470 | { |
| 471 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 472 | |
| 473 | if (priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id. != 0) |
| 474 | { |
| 475 | g_signal_handler_disconnectcxx . . $ g_signal_handler_disconnect(5500c4293b1bbef0). (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock., priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id.); |
| 476 | priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id. = 0; |
| 477 | gdk_frame_clock_end_updatingcxx . . $ gdk_frame_clock_end_updating(4f21140f29f248f1). (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock.); |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | /* From clutter-easing.c, based on Robert Penner's |
| 482 | * infamous easing equations, MIT license. |
| 483 | */ |
| 484 | static double |
| 485 | ease_out_cubiccxx . . $ ease_out_cubic(447c67c6676f75c3). (double t) |
| 486 | { |
| 487 | double p = t - 1; |
| 488 | |
| 489 | return p * p * p + 1; |
| 490 | } |
| 491 | |
| 492 | static void |
| 493 | gtk_adjustment_on_frame_clock_updatecxx . . $ gtk_adjustment_on_frame_clock_update(b1fcce055da22e6d). (GdkFrameClockcxx . . $ GdkFrameClock# *clock, |
| 494 | GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 495 | { |
| 496 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 497 | gint64cxx . . $ gint64# now; |
| 498 | |
| 499 | now = gdk_frame_clock_get_frame_timecxx . . $ gdk_frame_clock_get_frame_time(417c30ec8704d8fe). (clock); |
| 500 | |
| 501 | if (now < priv->end_timecxx . . $ _GtkAdjustmentPrivate#end_time.) |
| 502 | { |
| 503 | double t; |
| 504 | |
| 505 | t = (now - priv->start_timecxx . . $ _GtkAdjustmentPrivate#start_time.) / (double) (priv->end_timecxx . . $ _GtkAdjustmentPrivate#end_time. - priv->start_timecxx . . $ _GtkAdjustmentPrivate#start_time.); |
| 506 | t = ease_out_cubiccxx . . $ ease_out_cubic(447c67c6676f75c3). (t); |
| 507 | adjustment_set_valuecxx . . $ adjustment_set_value(7d3846fa90c40411). (adjustment, priv->sourcecxx . . $ _GtkAdjustmentPrivate#source. + t * (priv->targetcxx . . $ _GtkAdjustmentPrivate#target. - priv->sourcecxx . . $ _GtkAdjustmentPrivate#source.)); |
| 508 | } |
| 509 | else |
| 510 | { |
| 511 | adjustment_set_valuecxx . . $ adjustment_set_value(7d3846fa90c40411). (adjustment, priv->targetcxx . . $ _GtkAdjustmentPrivate#target.); |
| 512 | gtk_adjustment_end_updatingcxx . . $ gtk_adjustment_end_updating(b291aa00d5bc5a3). (adjustment); |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | static void |
| 517 | gtk_adjustment_set_value_internalcxx . . $ gtk_adjustment_set_value_internal(8866c63ef5fa1750). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 518 | double value, |
| 519 | gbooleancxx . . $ gboolean# animate) |
| 520 | { |
| 521 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 522 | |
| 523 | value = gtk_adjustment_sanitize_valuecxx . . $ gtk_adjustment_sanitize_value(db43f2743ca04220). (adjustment, value); |
| 524 | |
| 525 | if (animate && priv->durationcxx . . $ _GtkAdjustmentPrivate#duration. != 0 && priv->clockcxx . . $ _GtkAdjustmentPrivate#clock. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 526 | { |
| 527 | if (priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id. && priv->targetcxx . . $ _GtkAdjustmentPrivate#target. == value) |
| 528 | return; |
| 529 | |
| 530 | priv->sourcecxx . . $ _GtkAdjustmentPrivate#source. = priv->valuecxx . . $ _GtkAdjustmentPrivate#value.; |
| 531 | priv->targetcxx . . $ _GtkAdjustmentPrivate#target. = value; |
| 532 | priv->start_timecxx . . $ _GtkAdjustmentPrivate#start_time. = gdk_frame_clock_get_frame_timecxx . . $ gdk_frame_clock_get_frame_time(417c30ec8704d8fe). (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock.); |
| 533 | priv->end_timecxx . . $ _GtkAdjustmentPrivate#end_time. = priv->start_timecxx . . $ _GtkAdjustmentPrivate#start_time. + 1000 * priv->durationcxx . . $ _GtkAdjustmentPrivate#duration.; |
| 534 | gtk_adjustment_begin_updatingcxx . . $ gtk_adjustment_begin_updating(b291aa00d5bc5a3). (adjustment); |
| 535 | } |
| 536 | else |
| 537 | { |
| 538 | gtk_adjustment_end_updatingcxx . . $ gtk_adjustment_end_updating(b291aa00d5bc5a3). (adjustment); |
| 539 | adjustment_set_valuecxx . . $ adjustment_set_value(7d3846fa90c40411). (adjustment, value); |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | /** |
| 544 | * gtk_adjustment_set_value: |
| 545 | * @adjustment: an adjustment |
| 546 | * @value: the new value |
| 547 | * |
| 548 | * Sets the `GtkAdjustment` value. |
| 549 | * |
| 550 | * The value is clamped to lie between [[email protected]:lower] |
| 551 | * and [[email protected]:upper]. |
| 552 | * |
| 553 | * Note that for adjustments which are used in a `GtkScrollbar`, |
| 554 | * the effective range of allowed values goes from |
| 555 | * [[email protected]:lower] to |
| 556 | * [[email protected]:upper] - [[email protected]:page-size]. |
| 557 | */ |
| 558 | void |
| 559 | gtk_adjustment_set_valuecxx . . $ gtk_adjustment_set_value(7d3846fa90c40411). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 560 | double value) |
| 561 | { |
| 562 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment)); |
| 563 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (isfinitecxx . . $ `<external>/11263917310783833665/math.h:963:11`! (value)); |
| 564 | |
| 565 | gtk_adjustment_set_value_internalcxx . . $ gtk_adjustment_set_value_internal(8866c63ef5fa1750). (adjustment, value, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 566 | } |
| 567 | |
| 568 | void |
| 569 | gtk_adjustment_animate_to_valuecxx . . $ gtk_adjustment_animate_to_value(7d3846fa90c40411). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 570 | double value) |
| 571 | { |
| 572 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment)); |
| 573 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (isfinitecxx . . $ `<external>/11263917310783833665/math.h:963:11`! (value)); |
| 574 | |
| 575 | gtk_adjustment_set_value_internalcxx . . $ gtk_adjustment_set_value_internal(8866c63ef5fa1750). (adjustment, value, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 576 | } |
| 577 | |
| 578 | /** |
| 579 | * gtk_adjustment_get_lower: |
| 580 | * @adjustment: an adjustment |
| 581 | * |
| 582 | * Retrieves the minimum value of the adjustment. |
| 583 | * |
| 584 | * Returns: the minimum value |
| 585 | **/ |
| 586 | double |
| 587 | gtk_adjustment_get_lowercxx . . $ gtk_adjustment_get_lower(23c94c3b49116bb3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 588 | { |
| 589 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 590 | |
| 591 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment), 0.0); |
| 592 | |
| 593 | return priv->lowercxx . . $ _GtkAdjustmentPrivate#lower.; |
| 594 | } |
| 595 | |
| 596 | /** |
| 597 | * gtk_adjustment_set_lower: |
| 598 | * @adjustment: an adjustment |
| 599 | * @lower: the new minimum value |
| 600 | * |
| 601 | * Sets the minimum value of the adjustment. |
| 602 | * |
| 603 | * When setting multiple adjustment properties via their individual |
| 604 | * setters, multiple [[email protected]::changed] signals will |
| 605 | * be emitted. However, since the emission of the |
| 606 | * [[email protected]::changed] signal is tied to the emission |
| 607 | * of the ::notify signals of the changed properties, it’s possible |
| 608 | * to compress the [[email protected]::changed] signals into one |
| 609 | * by calling g_object_freeze_notify() and g_object_thaw_notify() |
| 610 | * around the calls to the individual setters. |
| 611 | * |
| 612 | * Alternatively, using a single g_object_set() for all the properties |
| 613 | * to change, or using [[email protected]] has the same effect. |
| 614 | */ |
| 615 | void |
| 616 | gtk_adjustment_set_lowercxx . . $ gtk_adjustment_set_lower(7d3846fa90c40411). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 617 | double lower) |
| 618 | { |
| 619 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 620 | |
| 621 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment)); |
| 622 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (isfinitecxx . . $ `<external>/11263917310783833665/math.h:963:11`! (lower)); |
| 623 | |
| 624 | if (lower != priv->lowercxx . . $ _GtkAdjustmentPrivate#lower.) |
| 625 | { |
| 626 | priv->lowercxx . . $ _GtkAdjustmentPrivate#lower. = lower; |
| 627 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (adjustment), adjustment_propscxx . . $ adjustment_props.[PROP_LOWERcxx . . $ PROP_LOWER.]); |
| 628 | } |
| 629 | } |
| 630 | |
| 631 | /** |
| 632 | * gtk_adjustment_get_upper: |
| 633 | * @adjustment: an adjustment |
| 634 | * |
| 635 | * Retrieves the maximum value of the adjustment. |
| 636 | * |
| 637 | * Returns: the maximum value |
| 638 | */ |
| 639 | double |
| 640 | gtk_adjustment_get_uppercxx . . $ gtk_adjustment_get_upper(23c94c3b49116bb3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 641 | { |
| 642 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 643 | |
| 644 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment), 0.0); |
| 645 | |
| 646 | return priv->uppercxx . . $ _GtkAdjustmentPrivate#upper.; |
| 647 | } |
| 648 | |
| 649 | /** |
| 650 | * gtk_adjustment_set_upper: |
| 651 | * @adjustment: an adjustment |
| 652 | * @upper: the new maximum value |
| 653 | * |
| 654 | * Sets the maximum value of the adjustment. |
| 655 | * |
| 656 | * Note that values will be restricted by `upper - page-size` |
| 657 | * if the page-size property is nonzero. |
| 658 | * |
| 659 | * See [[email protected]_lower] about how to compress |
| 660 | * multiple emissions of the [[email protected]::changed] |
| 661 | * signal when setting multiple adjustment properties. |
| 662 | */ |
| 663 | void |
| 664 | gtk_adjustment_set_uppercxx . . $ gtk_adjustment_set_upper(7d3846fa90c40411). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 665 | double upper) |
| 666 | { |
| 667 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 668 | |
| 669 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment)); |
| 670 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (isfinitecxx . . $ `<external>/11263917310783833665/math.h:963:11`! (upper)); |
| 671 | |
| 672 | if (upper != priv->uppercxx . . $ _GtkAdjustmentPrivate#upper.) |
| 673 | { |
| 674 | priv->uppercxx . . $ _GtkAdjustmentPrivate#upper. = upper; |
| 675 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (adjustment), adjustment_propscxx . . $ adjustment_props.[PROP_UPPERcxx . . $ PROP_UPPER.]); |
| 676 | } |
| 677 | } |
| 678 | |
| 679 | /** |
| 680 | * gtk_adjustment_get_step_increment: |
| 681 | * @adjustment: an adjustment |
| 682 | * |
| 683 | * Retrieves the step increment of the adjustment. |
| 684 | * |
| 685 | * Returns: the step increment |
| 686 | */ |
| 687 | double |
| 688 | gtk_adjustment_get_step_incrementcxx . . $ gtk_adjustment_get_step_increment(23c94c3b49116bb3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 689 | { |
| 690 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 691 | |
| 692 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment), 0.0); |
| 693 | |
| 694 | return priv->step_incrementcxx . . $ _GtkAdjustmentPrivate#step_increment.; |
| 695 | } |
| 696 | |
| 697 | /** |
| 698 | * gtk_adjustment_set_step_increment: |
| 699 | * @adjustment: an adjustment |
| 700 | * @step_increment: the new step increment |
| 701 | * |
| 702 | * Sets the step increment of the adjustment. |
| 703 | * |
| 704 | * See [[email protected]_lower] about how to compress |
| 705 | * multiple emissions of the [[email protected]::changed] |
| 706 | * signal when setting multiple adjustment properties. |
| 707 | */ |
| 708 | void |
| 709 | gtk_adjustment_set_step_incrementcxx . . $ gtk_adjustment_set_step_increment(7d3846fa90c40411). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 710 | double step_increment) |
| 711 | { |
| 712 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 713 | |
| 714 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment)); |
| 715 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (isfinitecxx . . $ `<external>/11263917310783833665/math.h:963:11`! (step_increment)); |
| 716 | |
| 717 | if (step_increment != priv->step_incrementcxx . . $ _GtkAdjustmentPrivate#step_increment.) |
| 718 | { |
| 719 | priv->step_incrementcxx . . $ _GtkAdjustmentPrivate#step_increment. = step_increment; |
| 720 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (adjustment), adjustment_propscxx . . $ adjustment_props.[PROP_STEP_INCREMENTcxx . . $ PROP_STEP_INCREMENT.]); |
| 721 | } |
| 722 | } |
| 723 | |
| 724 | /** |
| 725 | * gtk_adjustment_get_page_increment: |
| 726 | * @adjustment: an adjustment |
| 727 | * |
| 728 | * Retrieves the page increment of the adjustment. |
| 729 | * |
| 730 | * Returns: the page increment |
| 731 | **/ |
| 732 | double |
| 733 | gtk_adjustment_get_page_incrementcxx . . $ gtk_adjustment_get_page_increment(23c94c3b49116bb3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 734 | { |
| 735 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 736 | |
| 737 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment), 0.0); |
| 738 | |
| 739 | return priv->page_incrementcxx . . $ _GtkAdjustmentPrivate#page_increment.; |
| 740 | } |
| 741 | |
| 742 | /** |
| 743 | * gtk_adjustment_set_page_increment: |
| 744 | * @adjustment: an adjustment |
| 745 | * @page_increment: the new page increment |
| 746 | * |
| 747 | * Sets the page increment of the adjustment. |
| 748 | * |
| 749 | * See [[email protected]_lower] about how to compress |
| 750 | * multiple emissions of the [[email protected]::changed] |
| 751 | * signal when setting multiple adjustment properties. |
| 752 | */ |
| 753 | void |
| 754 | gtk_adjustment_set_page_incrementcxx . . $ gtk_adjustment_set_page_increment(7d3846fa90c40411). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 755 | double page_increment) |
| 756 | { |
| 757 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 758 | |
| 759 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment)); |
| 760 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (isfinitecxx . . $ `<external>/11263917310783833665/math.h:963:11`! (page_increment)); |
| 761 | |
| 762 | if (page_increment != priv->page_incrementcxx . . $ _GtkAdjustmentPrivate#page_increment.) |
| 763 | { |
| 764 | priv->page_incrementcxx . . $ _GtkAdjustmentPrivate#page_increment. = page_increment; |
| 765 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (adjustment), adjustment_propscxx . . $ adjustment_props.[PROP_PAGE_INCREMENTcxx . . $ PROP_PAGE_INCREMENT.]); |
| 766 | } |
| 767 | } |
| 768 | |
| 769 | /** |
| 770 | * gtk_adjustment_get_page_size: |
| 771 | * @adjustment: an adjustment |
| 772 | * |
| 773 | * Retrieves the page size of the adjustment. |
| 774 | * |
| 775 | * Returns: the page size |
| 776 | **/ |
| 777 | double |
| 778 | gtk_adjustment_get_page_sizecxx . . $ gtk_adjustment_get_page_size(23c94c3b49116bb3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 779 | { |
| 780 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 781 | |
| 782 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment), 0.0); |
| 783 | |
| 784 | return priv->page_sizecxx . . $ _GtkAdjustmentPrivate#page_size.; |
| 785 | } |
| 786 | |
| 787 | /** |
| 788 | * gtk_adjustment_set_page_size: |
| 789 | * @adjustment: an adjustment |
| 790 | * @page_size: the new page size |
| 791 | * |
| 792 | * Sets the page size of the adjustment. |
| 793 | * |
| 794 | * See [[email protected]_lower] about how to compress |
| 795 | * multiple emissions of the [[email protected]::changed] |
| 796 | * signal when setting multiple adjustment properties. |
| 797 | */ |
| 798 | void |
| 799 | gtk_adjustment_set_page_sizecxx . . $ gtk_adjustment_set_page_size(7d3846fa90c40411). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 800 | double page_size) |
| 801 | { |
| 802 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 803 | |
| 804 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment)); |
| 805 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (isfinitecxx . . $ `<external>/11263917310783833665/math.h:963:11`! (page_size)); |
| 806 | |
| 807 | if (page_size != priv->page_sizecxx . . $ _GtkAdjustmentPrivate#page_size.) |
| 808 | { |
| 809 | priv->page_sizecxx . . $ _GtkAdjustmentPrivate#page_size. = page_size; |
| 810 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (adjustment), adjustment_propscxx . . $ adjustment_props.[PROP_PAGE_SIZEcxx . . $ PROP_PAGE_SIZE.]); |
| 811 | } |
| 812 | } |
| 813 | |
| 814 | /** |
| 815 | * gtk_adjustment_configure: |
| 816 | * @adjustment: an adjustment |
| 817 | * @value: the new value |
| 818 | * @lower: the new minimum value |
| 819 | * @upper: the new maximum value |
| 820 | * @step_increment: the new step increment |
| 821 | * @page_increment: the new page increment |
| 822 | * @page_size: the new page size |
| 823 | * |
| 824 | * Sets all properties of the adjustment at once. |
| 825 | * |
| 826 | * Use this function to avoid multiple emissions of the |
| 827 | * [[email protected]::changed] signal. See |
| 828 | * [[email protected]_lower] for an alternative |
| 829 | * way of compressing multiple emissions of |
| 830 | * [[email protected]::changed] into one. |
| 831 | */ |
| 832 | void |
| 833 | gtk_adjustment_configurecxx . . $ gtk_adjustment_configure(f07237a65253d408). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 834 | double value, |
| 835 | double lower, |
| 836 | double upper, |
| 837 | double step_increment, |
| 838 | double page_increment, |
| 839 | double page_size) |
| 840 | { |
| 841 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 842 | gbooleancxx . . $ gboolean# value_changed = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 843 | |
| 844 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment)); |
| 845 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (lower + page_size <= upper); |
| 846 | |
| 847 | g_object_freeze_notifycxx . . $ g_object_freeze_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (adjustment)); |
| 848 | |
| 849 | gtk_adjustment_set_lowercxx . . $ gtk_adjustment_set_lower(7d3846fa90c40411). (adjustment, lower); |
| 850 | gtk_adjustment_set_uppercxx . . $ gtk_adjustment_set_upper(7d3846fa90c40411). (adjustment, upper); |
| 851 | gtk_adjustment_set_step_incrementcxx . . $ gtk_adjustment_set_step_increment(7d3846fa90c40411). (adjustment, step_increment); |
| 852 | gtk_adjustment_set_page_incrementcxx . . $ gtk_adjustment_set_page_increment(7d3846fa90c40411). (adjustment, page_increment); |
| 853 | gtk_adjustment_set_page_sizecxx . . $ gtk_adjustment_set_page_size(7d3846fa90c40411). (adjustment, page_size); |
| 854 | |
| 855 | value = gtk_adjustment_sanitize_valuecxx . . $ gtk_adjustment_sanitize_value(db43f2743ca04220). (adjustment, value); |
| 856 | |
| 857 | if (value != priv->valuecxx . . $ _GtkAdjustmentPrivate#value.) |
| 858 | { |
| 859 | /* set value manually to make sure "changed" is emitted with the |
| 860 | * new value in place and is emitted before "value-changed" |
| 861 | */ |
| 862 | priv->valuecxx . . $ _GtkAdjustmentPrivate#value. = value; |
| 863 | value_changed = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 864 | } |
| 865 | |
| 866 | /* The dispatch_properties_changed implementation will emit ::changed! */ |
| 867 | g_object_thaw_notifycxx . . $ g_object_thaw_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (adjustment)); |
| 868 | |
| 869 | if (value_changed) |
| 870 | emit_value_changedcxx . . $ emit_value_changed(b291aa00d5bc5a3). (adjustment); |
| 871 | } |
| 872 | |
| 873 | /** |
| 874 | * gtk_adjustment_clamp_page: |
| 875 | * @adjustment: an adjustment |
| 876 | * @lower: the lower value |
| 877 | * @upper: the upper value |
| 878 | * |
| 879 | * Updates the value of the adjustment to ensure that the |
| 880 | * given range is contained in the current page. |
| 881 | * |
| 882 | * The current page goes from `value` to `value` + `page-size`. |
| 883 | * If the range is larger than the page size, then only the |
| 884 | * start of it will be in the current page. |
| 885 | * |
| 886 | * A [[email protected]::value-changed] signal will be emitted |
| 887 | * if the value is changed. |
| 888 | */ |
| 889 | void |
| 890 | gtk_adjustment_clamp_pagecxx . . $ gtk_adjustment_clamp_page(87122ead61b5c395). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 891 | double lower, |
| 892 | double upper) |
| 893 | { |
| 894 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 895 | gbooleancxx . . $ gboolean# need_emission; |
| 896 | |
| 897 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment)); |
| 898 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (isfinitecxx . . $ `<external>/11263917310783833665/math.h:963:11`! (lower) && isfinitecxx . . $ `<external>/11263917310783833665/math.h:963:11`! (upper)); |
| 899 | |
| 900 | lower = CLAMPcxx . . $ `<external>/12741050725406041920/gmacros.h:984:9`! (lower, priv->lower, priv->upper); |
| 901 | upper = CLAMPcxx . . $ `<external>/12741050725406041920/gmacros.h:984:9`! (upper, priv->lower, priv->upper); |
| 902 | |
| 903 | need_emission = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 904 | |
| 905 | if (priv->valuecxx . . $ _GtkAdjustmentPrivate#value. + priv->page_sizecxx . . $ _GtkAdjustmentPrivate#page_size. < upper) |
| 906 | { |
| 907 | priv->valuecxx . . $ _GtkAdjustmentPrivate#value. = upper - priv->page_sizecxx . . $ _GtkAdjustmentPrivate#page_size.; |
| 908 | need_emission = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 909 | } |
| 910 | if (priv->valuecxx . . $ _GtkAdjustmentPrivate#value. > lower) |
| 911 | { |
| 912 | priv->valuecxx . . $ _GtkAdjustmentPrivate#value. = lower; |
| 913 | need_emission = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 914 | } |
| 915 | |
| 916 | if (need_emission) |
| 917 | emit_value_changedcxx . . $ emit_value_changed(b291aa00d5bc5a3). (adjustment); |
| 918 | } |
| 919 | |
| 920 | /** |
| 921 | * gtk_adjustment_get_minimum_increment: |
| 922 | * @adjustment: an adjustment |
| 923 | * |
| 924 | * Gets the smaller of step increment and page increment. |
| 925 | * |
| 926 | * Returns: the minimum increment |
| 927 | */ |
| 928 | double |
| 929 | gtk_adjustment_get_minimum_incrementcxx . . $ gtk_adjustment_get_minimum_increment(23c94c3b49116bb3). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 930 | { |
| 931 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 932 | double minimum_increment; |
| 933 | |
| 934 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_ADJUSTMENTcxx . . $ `gtk/gtkadjustment.h:39:9`! (adjustment), 0); |
| 935 | |
| 936 | if (priv->step_incrementcxx . . $ _GtkAdjustmentPrivate#step_increment. != 0 && priv->page_incrementcxx . . $ _GtkAdjustmentPrivate#page_increment. != 0) |
| 937 | { |
| 938 | if (ABScxx . . $ `<external>/12741050725406041920/gmacros.h:981:9`! (priv->step_increment) < ABScxx . . $ `<external>/12741050725406041920/gmacros.h:981:9`! (priv->page_increment)) |
| 939 | minimum_increment = priv->step_incrementcxx . . $ _GtkAdjustmentPrivate#step_increment.; |
| 940 | else |
| 941 | minimum_increment = priv->page_incrementcxx . . $ _GtkAdjustmentPrivate#page_increment.; |
| 942 | } |
| 943 | else if (priv->step_incrementcxx . . $ _GtkAdjustmentPrivate#step_increment. == 0 && priv->page_incrementcxx . . $ _GtkAdjustmentPrivate#page_increment. == 0) |
| 944 | { |
| 945 | minimum_increment = 0; |
| 946 | } |
| 947 | else if (priv->step_incrementcxx . . $ _GtkAdjustmentPrivate#step_increment. == 0) |
| 948 | { |
| 949 | minimum_increment = priv->page_incrementcxx . . $ _GtkAdjustmentPrivate#page_increment.; |
| 950 | } |
| 951 | else |
| 952 | { |
| 953 | minimum_increment = priv->step_incrementcxx . . $ _GtkAdjustmentPrivate#step_increment.; |
| 954 | } |
| 955 | |
| 956 | return minimum_increment; |
| 957 | } |
| 958 | |
| 959 | void |
| 960 | gtk_adjustment_enable_animationcxx . . $ gtk_adjustment_enable_animation(e3cd68ff80549b7e). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment, |
| 961 | GdkFrameClockcxx . . $ GdkFrameClock# *clock, |
| 962 | guintcxx . . $ guint# duration) |
| 963 | { |
| 964 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 965 | |
| 966 | if (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock. != clock) |
| 967 | { |
| 968 | if (priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id.) |
| 969 | { |
| 970 | adjustment_set_valuecxx . . $ adjustment_set_value(7d3846fa90c40411). (adjustment, priv->targetcxx . . $ _GtkAdjustmentPrivate#target.); |
| 971 | |
| 972 | g_signal_handler_disconnectcxx . . $ g_signal_handler_disconnect(5500c4293b1bbef0). (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock., priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id.); |
| 973 | priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id. = 0; |
| 974 | gdk_frame_clock_end_updatingcxx . . $ gdk_frame_clock_end_updating(4f21140f29f248f1). (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock.); |
| 975 | } |
| 976 | |
| 977 | if (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock.) |
| 978 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock.); |
| 979 | |
| 980 | priv->clockcxx . . $ _GtkAdjustmentPrivate#clock. = clock; |
| 981 | |
| 982 | if (priv->clockcxx . . $ _GtkAdjustmentPrivate#clock.) |
| 983 | g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (priv->clock); |
| 984 | } |
| 985 | |
| 986 | priv->durationcxx . . $ _GtkAdjustmentPrivate#duration. = duration; |
| 987 | } |
| 988 | |
| 989 | guintcxx . . $ guint# |
| 990 | gtk_adjustment_get_animation_durationcxx . . $ gtk_adjustment_get_animation_duration(f63709a66cdd2061). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 991 | { |
| 992 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 993 | |
| 994 | return priv->durationcxx . . $ _GtkAdjustmentPrivate#duration.; |
| 995 | } |
| 996 | |
| 997 | gbooleancxx . . $ gboolean# |
| 998 | gtk_adjustment_is_animatingcxx . . $ gtk_adjustment_is_animating(4adc6ca69aa9438c). (GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment) |
| 999 | { |
| 1000 | GtkAdjustmentPrivatecxx . . $ GtkAdjustmentPrivate# *priv = gtk_adjustment_get_instance_privatecxx . . $ gtk_adjustment_get_instance_private(a9e5b059bc086713). (adjustment); |
| 1001 | |
| 1002 | return priv->tick_idcxx . . $ _GtkAdjustmentPrivate#tick_id. != 0; |
| 1003 | } |