| 1 | /* |
| 2 | * Copyright © 2015 Red Hat Inc. |
| 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.1 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 | * Authors: Matthias Clasen <[email protected]> |
| 18 | */ |
| 19 | |
| 20 | #include "config.h"cxx . . $ `<file>/build/config.h`/ |
| 21 | |
| 22 | #include "gtkcssimageradialprivate.h"cxx . . $ `<file>/gtk/gtkcssimageradialprivate.h`/ |
| 23 | |
| 24 | #include <math.h> |
| 25 | |
| 26 | #include "gtkcsscolorvalueprivate.h"cxx . . $ `<file>/gtk/gtkcsscolorvalueprivate.h`/ |
| 27 | #include "gtkcssnumbervalueprivate.h"cxx . . $ `<file>/gtk/gtkcssnumbervalueprivate.h`/ |
| 28 | #include "gtkcsspositionvalueprivate.h"cxx . . $ `<file>/gtk/gtkcsspositionvalueprivate.h`/ |
| 29 | #include "gtkcsscolorvalueprivate.h"cxx . . $ `<file>/gtk/gtkcsscolorvalueprivate.h`/ |
| 30 | #include "gtkcssprovider.h"cxx . . $ `<file>/gtk/gtkcssprovider.h`/ |
| 31 | #include "gtksnapshotprivate.h"cxx . . $ `<file>/gtk/gtksnapshotprivate.h`/ |
| 32 | |
| 33 | G_DEFINE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:1834:9`! (GtkCssImageRadial, _gtk_css_image_radial, GTK_TYPE_CSS_IMAGEcxx . . $ `gtk/gtkcssimageprivate.h:36:9`!) |
| 34 | |
| 35 | static void |
| 36 | gtk_css_image_radial_get_start_endcxx . . $ gtk_css_image_radial_get_start_end(b36167dca64fd514). (GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial, |
| 37 | double radius, |
| 38 | double *start, |
| 39 | double *end) |
| 40 | { |
| 41 | const GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *stop; |
| 42 | double pos; |
| 43 | guintcxx . . $ guint# i; |
| 44 | |
| 45 | if (radial->repeatingcxx . . $ _GtkCssImageRadial#repeating.) |
| 46 | { |
| 47 | stop = &radial->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[0]; |
| 48 | if (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 49 | *start = 0; |
| 50 | else |
| 51 | *start = gtk_css_number_value_getcxx . . $ gtk_css_number_value_get(aaf4d8e9bc9f0cb0). (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset., radius) / radius; |
| 52 | |
| 53 | *end = *start; |
| 54 | |
| 55 | for (i = 0; i < radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i++) |
| 56 | { |
| 57 | stop = &radial->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 58 | |
| 59 | if (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 60 | continue; |
| 61 | |
| 62 | pos = gtk_css_number_value_getcxx . . $ gtk_css_number_value_get(aaf4d8e9bc9f0cb0). (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset., radius) / radius; |
| 63 | |
| 64 | *end = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (pos, *end); |
| 65 | } |
| 66 | |
| 67 | if (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 68 | *end = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*end, 1.0); |
| 69 | } |
| 70 | else |
| 71 | { |
| 72 | *start = 0; |
| 73 | *end = 1; |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | static void |
| 78 | gtk_css_image_radial_snapshotcxx . . $ gtk_css_image_radial_snapshot(ec291471418dd080). (GtkCssImagecxx . . $ GtkCssImage# *image, |
| 79 | GtkSnapshotcxx . . $ GtkSnapshot# *snapshot, |
| 80 | double width, |
| 81 | double height) |
| 82 | { |
| 83 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial = GTK_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:28:9`! (image); |
| 84 | GskGradientStopcxx . . $ GskGradientStop# *stops; |
| 85 | double x, y; |
| 86 | double hradius, vradius; |
| 87 | double start, end; |
| 88 | double r1, r2, r3, r4, r; |
| 89 | double offset, hint; |
| 90 | int i, last; |
| 91 | GskGradientcxx . . $ GskGradient# *gradient; |
| 92 | |
| 93 | x = _gtk_css_position_value_get_xcxx . . $ _gtk_css_position_value_get_x(aaf4d8e9bc9f0cb0). (radial->positioncxx . . $ _GtkCssImageRadial#position., width); |
| 94 | y = _gtk_css_position_value_get_ycxx . . $ _gtk_css_position_value_get_y(aaf4d8e9bc9f0cb0). (radial->positioncxx . . $ _GtkCssImageRadial#position., height); |
| 95 | |
| 96 | if (radial->circlecxx . . $ _GtkCssImageRadial#circle.) |
| 97 | { |
| 98 | switch (radial->sizecxx . . $ _GtkCssImageRadial#size.) |
| 99 | { |
| 100 | case GTK_CSS_EXPLICIT_SIZEcxx . . $ GTK_CSS_EXPLICIT_SIZE.: |
| 101 | hradius = gtk_css_number_value_getcxx . . $ gtk_css_number_value_get(aaf4d8e9bc9f0cb0). (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0], width); |
| 102 | break; |
| 103 | case GTK_CSS_CLOSEST_SIDEcxx . . $ GTK_CSS_CLOSEST_SIDE.: |
| 104 | hradius = MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (x, width - x), MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (y, height - y)); |
| 105 | break; |
| 106 | case GTK_CSS_FARTHEST_SIDEcxx . . $ GTK_CSS_FARTHEST_SIDE.: |
| 107 | hradius = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (x, width - x), MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (y, height - y)); |
| 108 | break; |
| 109 | case GTK_CSS_CLOSEST_CORNERcxx . . $ GTK_CSS_CLOSEST_CORNER.: |
| 110 | case GTK_CSS_FARTHEST_CORNERcxx . . $ GTK_CSS_FARTHEST_CORNER.: |
| 111 | r1 = x*x + y*y; |
| 112 | r2 = x*x + (height - y)*(height - y); |
| 113 | r3 = (width - x)*(width - x) + y*y; |
| 114 | r4 = (width - x)*(width - x) + (height - y)*(height - y); |
| 115 | if (radial->sizecxx . . $ _GtkCssImageRadial#size. == GTK_CSS_CLOSEST_CORNERcxx . . $ GTK_CSS_CLOSEST_CORNER.) |
| 116 | r = MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! ( MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (r1, r2), MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (r3, r4)); |
| 117 | else |
| 118 | r = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! ( MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (r1, r2), MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (r3, r4)); |
| 119 | hradius = sqrt (r); |
| 120 | break; |
| 121 | default: |
| 122 | g_assert_not_reachedcxx . . $ `<external>/15287032793271088244/gtestutils.h:274:9`! (); |
| 123 | } |
| 124 | |
| 125 | hradius = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (1.0, hradius); |
| 126 | vradius = hradius; |
| 127 | } |
| 128 | else |
| 129 | { |
| 130 | switch (radial->sizecxx . . $ _GtkCssImageRadial#size.) |
| 131 | { |
| 132 | case GTK_CSS_EXPLICIT_SIZEcxx . . $ GTK_CSS_EXPLICIT_SIZE.: |
| 133 | hradius = gtk_css_number_value_getcxx . . $ gtk_css_number_value_get(aaf4d8e9bc9f0cb0). (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0], width); |
| 134 | vradius = gtk_css_number_value_getcxx . . $ gtk_css_number_value_get(aaf4d8e9bc9f0cb0). (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1], height); |
| 135 | break; |
| 136 | case GTK_CSS_CLOSEST_SIDEcxx . . $ GTK_CSS_CLOSEST_SIDE.: |
| 137 | hradius = MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (x, width - x); |
| 138 | vradius = MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (y, height - y); |
| 139 | break; |
| 140 | case GTK_CSS_FARTHEST_SIDEcxx . . $ GTK_CSS_FARTHEST_SIDE.: |
| 141 | hradius = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (x, width - x); |
| 142 | vradius = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (y, height - y); |
| 143 | break; |
| 144 | case GTK_CSS_CLOSEST_CORNERcxx . . $ GTK_CSS_CLOSEST_CORNER.: |
| 145 | hradius = M_SQRT2cxx . . $ `<external>/11263917310783833665/math.h:1127:10`! * MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (x, width - x); |
| 146 | vradius = M_SQRT2cxx . . $ `<external>/11263917310783833665/math.h:1127:10`! * MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (y, height - y); |
| 147 | break; |
| 148 | case GTK_CSS_FARTHEST_CORNERcxx . . $ GTK_CSS_FARTHEST_CORNER.: |
| 149 | hradius = M_SQRT2cxx . . $ `<external>/11263917310783833665/math.h:1127:10`! * MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (x, width - x); |
| 150 | vradius = M_SQRT2cxx . . $ `<external>/11263917310783833665/math.h:1127:10`! * MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (y, height - y); |
| 151 | break; |
| 152 | default: |
| 153 | g_assert_not_reachedcxx . . $ `<external>/15287032793271088244/gtestutils.h:274:9`! (); |
| 154 | } |
| 155 | |
| 156 | hradius = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (1.0, hradius); |
| 157 | vradius = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (1.0, vradius); |
| 158 | } |
| 159 | |
| 160 | gtk_css_image_radial_get_start_endcxx . . $ gtk_css_image_radial_get_start_end(b36167dca64fd514). (radial, hradius, &start, &end); |
| 161 | |
| 162 | offset = start; |
| 163 | last = -1; |
| 164 | stops = g_newacxx . . $ `<external>/2019178843399655176/galloca.h:131:9`! (GskGradientStop, radial->n_stops); |
| 165 | hint = start; |
| 166 | |
| 167 | for (i = 0; i < radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i++) |
| 168 | { |
| 169 | const GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *stop = &radial->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 170 | double pos, step; |
| 171 | |
| 172 | if (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 173 | { |
| 174 | if (stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint.) |
| 175 | { |
| 176 | hint = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (hint, gtk_css_number_value_get (stop->transition_hint, hradius) / hradius); |
| 177 | hint = CLAMPcxx . . $ `<external>/12741050725406041920/gmacros.h:984:9`! (hint, 0.0, 1.0); |
| 178 | } |
| 179 | |
| 180 | if (i == 0) |
| 181 | pos = 0.0; |
| 182 | else if (i + 1 == radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.) |
| 183 | pos = 1.0; |
| 184 | else |
| 185 | continue; |
| 186 | } |
| 187 | else |
| 188 | pos = MINcxx . . $ `<external>/12741050725406041920/gmacros.h:978:9`! (1.0, gtk_css_number_value_get (stop->offset, hradius) / hradius); |
| 189 | |
| 190 | pos = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (pos, hint); |
| 191 | pos = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (pos, offset); |
| 192 | step = (pos - offset) / (i - last); |
| 193 | for (last = last + 1; last <= i; last++) |
| 194 | { |
| 195 | stop = &radial->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[last]; |
| 196 | |
| 197 | offset += step; |
| 198 | |
| 199 | stops[last].offsetcxx . . $ _GskGradientStop#offset. = (offset - start) / (end - start); |
| 200 | gtk_css_color_to_colorcxx . . $ gtk_css_color_to_color(33bcceec5ffe5ec9). (gtk_css_color_value_get_colorcxx . . $ gtk_css_color_value_get_color(4554eb5fdfa0052b). (stop->colorcxx . . $ _GtkCssImageRadialColorStop#color.), &stops[last].colorcxx . . $ _GskGradientStop#color.); |
| 201 | |
| 202 | if (last > 0 && stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint.) |
| 203 | { |
| 204 | hint = gtk_css_number_value_getcxx . . $ gtk_css_number_value_get(aaf4d8e9bc9f0cb0). (stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint., hradius) / hradius; |
| 205 | hint = CLAMPcxx . . $ `<external>/12741050725406041920/gmacros.h:984:9`! (hint, 0.0, 1.0); |
| 206 | stops[last].transition_hintcxx . . $ _GskGradientStop#transition_hint. = (hint - stops[last - 1].offsetcxx . . $ _GskGradientStop#offset.) / (stops[last].offsetcxx . . $ _GskGradientStop#offset. - stops[last - 1].offsetcxx . . $ _GskGradientStop#offset.); |
| 207 | } |
| 208 | else |
| 209 | { |
| 210 | stops[last].transition_hintcxx . . $ _GskGradientStop#transition_hint. = 0.5; |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | offset = pos; |
| 215 | last = i; |
| 216 | } |
| 217 | |
| 218 | gradient = gsk_gradient_newcxx . . $ gsk_gradient_new(36b1ee5f3b8631bd). (); |
| 219 | for (i = 0; i < radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i++) |
| 220 | gsk_gradient_add_stopcxx . . $ gsk_gradient_add_stop(2abc51ea529cbd06). (gradient, stops[i].offsetcxx . . $ _GskGradientStop#offset., stops[i].transition_hintcxx . . $ _GskGradientStop#transition_hint., &stops[i].colorcxx . . $ _GskGradientStop#color.); |
| 221 | |
| 222 | if (radial->color_spacecxx . . $ _GtkCssImageRadial#color_space. != GTK_CSS_COLOR_SPACE_SRGBcxx . . $ GTK_CSS_COLOR_SPACE_SRGB.) |
| 223 | g_warning_oncecxx . . $ `<external>/5169755362661750954/gmessages.h:500:9`! ("Gradient interpolation color spaces are not supported yet"); |
| 224 | |
| 225 | gsk_gradient_set_interpolationcxx . . $ gsk_gradient_set_interpolation(4609350689e161f6). (gradient, gtk_css_color_space_get_color_statecxx . . $ gtk_css_color_space_get_color_state(7f3f28e6e03cb216). (radial->color_spacecxx . . $ _GtkCssImageRadial#color_space.)); |
| 226 | gsk_gradient_set_hue_interpolationcxx . . $ gsk_gradient_set_hue_interpolation(de934557794f4cc1). (gradient, gtk_css_hue_interpolation_to_hue_interpolationcxx . . $ gtk_css_hue_interpolation_to_hue_interpolation(37884f2338c6458f). (radial->hue_interpcxx . . $ _GtkCssImageRadial#hue_interp.)); |
| 227 | gsk_gradient_set_repeatcxx . . $ gsk_gradient_set_repeat(936c98251849d4b4). (gradient, radial->repeatingcxx . . $ _GtkCssImageRadial#repeating. ? GSK_REPEAT_REPEATcxx . . $ GSK_REPEAT_REPEAT. : GSK_REPEAT_PADcxx . . $ GSK_REPEAT_PAD.); |
| 228 | |
| 229 | gtk_snapshot_add_radial_gradientcxx . . $ gtk_snapshot_add_radial_gradient(1ed5dbb510fa21de). (snapshot, |
| 230 | &GRAPHENE_RECT_INITcxx . . $ `<external>/7539008420172022992/graphene-rect.h:50:9`! (0, 0, width, height), |
| 231 | &GRAPHENE_POINT_INITcxx . . $ `<external>/9324137249738369859/graphene-point.h:50:9`! (x, y), hradius * start, |
| 232 | &GRAPHENE_POINT_INITcxx . . $ `<external>/9324137249738369859/graphene-point.h:50:9`! (x, y), hradius * end, |
| 233 | hradius / vradius, |
| 234 | gradient); |
| 235 | |
| 236 | for (i = 0; i < radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i++) |
| 237 | gdk_color_finishcxx . . $ `gdk/gdkcolorimpl.h:52:9`! (&stops[i].color); |
| 238 | |
| 239 | gsk_gradient_freecxx . . $ gsk_gradient_free(d3f3e006b0af44d5). (gradient); |
| 240 | } |
| 241 | |
| 242 | static guintcxx . . $ guint# |
| 243 | gtk_css_image_radial_parse_color_stopcxx . . $ gtk_css_image_radial_parse_color_stop(a05f5a2e07151644). (GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial, |
| 244 | GtkCssParsercxx . . $ GtkCssParser# *parser, |
| 245 | GArraycxx . . $ GArray# *stop_array) |
| 246 | { |
| 247 | GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# stop; |
| 248 | |
| 249 | if (gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser)) |
| 250 | { |
| 251 | stop.transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser, |
| 252 | GTK_CSS_PARSE_PERCENTcxx . . $ GTK_CSS_PARSE_PERCENT. |
| 253 | | GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH.); |
| 254 | if (stop.transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 255 | return 0; |
| 256 | |
| 257 | if (!gtk_css_parser_has_tokencxx . . $ gtk_css_parser_has_token(72b4dcd93b1a40ac). (parser, GTK_CSS_TOKEN_COMMAcxx . . $ GTK_CSS_TOKEN_COMMA.)) |
| 258 | return 0; |
| 259 | |
| 260 | gtk_css_parser_consume_tokencxx . . $ gtk_css_parser_consume_token(5032fae7227a25aa). (parser); |
| 261 | } |
| 262 | else |
| 263 | { |
| 264 | stop.transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 265 | } |
| 266 | |
| 267 | stop.colorcxx . . $ _GtkCssImageRadialColorStop#color. = gtk_css_color_value_parsecxx . . $ gtk_css_color_value_parse(66d8ac11734e4f87). (parser); |
| 268 | if (stop.colorcxx . . $ _GtkCssImageRadialColorStop#color. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 269 | { |
| 270 | if (stop.transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint.) |
| 271 | gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (stop.transition_hint); |
| 272 | gtk_css_parser_error_syntaxcxx . . $ gtk_css_parser_error_syntax(41ac99f7292d7f5f). (parser, "Expected color stop to contain a color"); |
| 273 | return 0; |
| 274 | } |
| 275 | |
| 276 | if (gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser)) |
| 277 | { |
| 278 | stop.offsetcxx . . $ _GtkCssImageRadialColorStop#offset. = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser, |
| 279 | GTK_CSS_PARSE_PERCENTcxx . . $ GTK_CSS_PARSE_PERCENT. |
| 280 | | GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH.); |
| 281 | if (stop.offsetcxx . . $ _GtkCssImageRadialColorStop#offset. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 282 | { |
| 283 | if (stop.transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint.) |
| 284 | gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (stop.transition_hint); |
| 285 | gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (stop.color); |
| 286 | return 0; |
| 287 | } |
| 288 | |
| 289 | g_array_append_valcxx . . $ `<external>/13165152102340786875/garray.h:66:9`! (stop_array, stop); |
| 290 | |
| 291 | if (gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser)) |
| 292 | { |
| 293 | stop.transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 294 | stop.colorcxx . . $ _GtkCssImageRadialColorStop#color. = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (stop.color); |
| 295 | |
| 296 | stop.offsetcxx . . $ _GtkCssImageRadialColorStop#offset. = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser, |
| 297 | GTK_CSS_PARSE_PERCENTcxx . . $ GTK_CSS_PARSE_PERCENT. |
| 298 | | GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH.); |
| 299 | if (stop.offsetcxx . . $ _GtkCssImageRadialColorStop#offset. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 300 | { |
| 301 | gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (stop.color); |
| 302 | return 0; |
| 303 | } |
| 304 | |
| 305 | g_array_append_valcxx . . $ `<external>/13165152102340786875/garray.h:66:9`! (stop_array, stop); |
| 306 | } |
| 307 | } |
| 308 | else |
| 309 | { |
| 310 | stop.offsetcxx . . $ _GtkCssImageRadialColorStop#offset. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 311 | g_array_append_valcxx . . $ `<external>/13165152102340786875/garray.h:66:9`! (stop_array, stop); |
| 312 | } |
| 313 | |
| 314 | return 1; |
| 315 | } |
| 316 | |
| 317 | static guintcxx . . $ guint# |
| 318 | gtk_css_image_radial_parse_first_argcxx . . $ gtk_css_image_radial_parse_first_arg(a05f5a2e07151644). (GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial, |
| 319 | GtkCssParsercxx . . $ GtkCssParser# *parser, |
| 320 | GArraycxx . . $ GArray# *stop_array) |
| 321 | { |
| 322 | gbooleancxx . . $ gboolean# has_shape = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 323 | gbooleancxx . . $ gboolean# has_size = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 324 | gbooleancxx . . $ gboolean# has_colorspace = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 325 | gbooleancxx . . $ gboolean# found_one = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 326 | guintcxx . . $ guint# i; |
| 327 | static structcxx . . $ gtk_css_image_radial_parse_first_arg(a05f5a2e07151644).$anonymous_type_0# { |
| 328 | const char *namecxx . . $ gtk_css_image_radial_parse_first_arg(a05f5a2e07151644).$anonymous_type_0#name.; |
| 329 | guintcxx . . $ guint# valuecxx . . $ gtk_css_image_radial_parse_first_arg(a05f5a2e07151644).$anonymous_type_0#value.; |
| 330 | } names[] = { |
| 331 | { "closest-side", GTK_CSS_CLOSEST_SIDEcxx . . $ GTK_CSS_CLOSEST_SIDE. }, |
| 332 | { "farthest-side", GTK_CSS_FARTHEST_SIDEcxx . . $ GTK_CSS_FARTHEST_SIDE. }, |
| 333 | { "closest-corner", GTK_CSS_CLOSEST_CORNERcxx . . $ GTK_CSS_CLOSEST_CORNER. }, |
| 334 | { "farthest-corner", GTK_CSS_FARTHEST_CORNERcxx . . $ GTK_CSS_FARTHEST_CORNER. } |
| 335 | }; |
| 336 | |
| 337 | found_one = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 338 | |
| 339 | do { |
| 340 | if (!has_colorspace && gtk_css_color_interpolation_method_can_parsecxx . . $ gtk_css_color_interpolation_method_can_parse(1218f77d161081c9). (parser)) |
| 341 | { |
| 342 | if (!gtk_css_color_interpolation_method_parsecxx . . $ gtk_css_color_interpolation_method_parse(d72556d93c3e3633). (parser, &radial->color_spacecxx . . $ _GtkCssImageRadial#color_space., &radial->hue_interpcxx . . $ _GtkCssImageRadial#hue_interp.)) |
| 343 | return 0; |
| 344 | has_colorspace = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 345 | } |
| 346 | else if (!has_shape && gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "circle")) |
| 347 | { |
| 348 | radial->circlecxx . . $ _GtkCssImageRadial#circle. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 349 | found_one = has_shape = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 350 | } |
| 351 | else if (!has_shape && gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "ellipse")) |
| 352 | { |
| 353 | radial->circlecxx . . $ _GtkCssImageRadial#circle. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 354 | found_one = has_shape = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 355 | } |
| 356 | else if (!has_size) |
| 357 | { |
| 358 | for (i = 0; i < G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (names); i++) |
| 359 | { |
| 360 | if (gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, names[i].namecxx . . $ gtk_css_image_radial_parse_first_arg(a05f5a2e07151644).$anonymous_type_0#name.)) |
| 361 | { |
| 362 | found_one = has_size = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 363 | radial->sizecxx . . $ _GtkCssImageRadial#size. = names[i].valuecxx . . $ gtk_css_image_radial_parse_first_arg(a05f5a2e07151644).$anonymous_type_0#value.; |
| 364 | break; |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | if (!has_size && gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser)) |
| 369 | { |
| 370 | radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0] = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser, GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH. | GTK_CSS_PARSE_PERCENTcxx . . $ GTK_CSS_PARSE_PERCENT.); |
| 371 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 372 | return 0; |
| 373 | if (gtk_css_number_value_can_parsecxx . . $ gtk_css_number_value_can_parse(1218f77d161081c9). (parser)) |
| 374 | { |
| 375 | radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1] = gtk_css_number_value_parsecxx . . $ gtk_css_number_value_parse(f3430beb2a3a84d9). (parser, GTK_CSS_PARSE_LENGTHcxx . . $ GTK_CSS_PARSE_LENGTH. | GTK_CSS_PARSE_PERCENTcxx . . $ GTK_CSS_PARSE_PERCENT.); |
| 376 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 377 | return 0; |
| 378 | } |
| 379 | found_one = has_size = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 380 | } |
| 381 | if (!has_size) |
| 382 | break; |
| 383 | } |
| 384 | else |
| 385 | { |
| 386 | break; |
| 387 | } |
| 388 | } while (!(has_shape && has_size)); |
| 389 | |
| 390 | if (gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "at")) |
| 391 | { |
| 392 | radial->positioncxx . . $ _GtkCssImageRadial#position. = _gtk_css_position_value_parsecxx . . $ _gtk_css_position_value_parse(66d8ac11734e4f87). (parser); |
| 393 | if (!radial->positioncxx . . $ _GtkCssImageRadial#position.) |
| 394 | return 0; |
| 395 | found_one = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 396 | } |
| 397 | else |
| 398 | { |
| 399 | radial->positioncxx . . $ _GtkCssImageRadial#position. = _gtk_css_position_value_newcxx . . $ _gtk_css_position_value_new(dadd23ece33079fb). (gtk_css_number_value_newcxx . . $ gtk_css_number_value_new(bee9a27a92b863c4). (50, GTK_CSS_PERCENTcxx . . $ GTK_CSS_PERCENT.), |
| 400 | gtk_css_number_value_newcxx . . $ gtk_css_number_value_new(bee9a27a92b863c4). (50, GTK_CSS_PERCENTcxx . . $ GTK_CSS_PERCENT.)); |
| 401 | } |
| 402 | |
| 403 | if (!has_size) |
| 404 | { |
| 405 | radial->sizecxx . . $ _GtkCssImageRadial#size. = GTK_CSS_FARTHEST_CORNERcxx . . $ GTK_CSS_FARTHEST_CORNER.; |
| 406 | } |
| 407 | |
| 408 | if (!has_shape) |
| 409 | { |
| 410 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0] && !radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1]) |
| 411 | radial->circlecxx . . $ _GtkCssImageRadial#circle. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 412 | else |
| 413 | radial->circlecxx . . $ _GtkCssImageRadial#circle. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 414 | } |
| 415 | |
| 416 | if (has_shape && radial->circlecxx . . $ _GtkCssImageRadial#circle.) |
| 417 | { |
| 418 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0] && radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1]) |
| 419 | { |
| 420 | gtk_css_parser_error_syntaxcxx . . $ gtk_css_parser_error_syntax(41ac99f7292d7f5f). (parser, "Circular gradient can only have one size"); |
| 421 | return 0; |
| 422 | } |
| 423 | |
| 424 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0] && gtk_css_number_value_has_percentcxx . . $ gtk_css_number_value_has_percent(8222c132d23033c0). (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0])) |
| 425 | { |
| 426 | gtk_css_parser_error_syntaxcxx . . $ gtk_css_parser_error_syntax(41ac99f7292d7f5f). (parser, "Circular gradient cannot have percentage as size"); |
| 427 | return 0; |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | if (has_size && !radial->circlecxx . . $ _GtkCssImageRadial#circle.) |
| 432 | { |
| 433 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0] && !radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1]) |
| 434 | radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (radial->sizes[0]); |
| 435 | } |
| 436 | |
| 437 | if (found_one) |
| 438 | return 1; |
| 439 | |
| 440 | if (!gtk_css_image_radial_parse_color_stopcxx . . $ gtk_css_image_radial_parse_color_stop(a05f5a2e07151644). (radial, parser, stop_array)) |
| 441 | return 0; |
| 442 | |
| 443 | return 2; |
| 444 | } |
| 445 | |
| 446 | typedef structcxx . . $ $anonymous_type_e45799855807c979_1# |
| 447 | { |
| 448 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *selfcxx . . $ $anonymous_type_e45799855807c979_1#self.; |
| 449 | GArraycxx . . $ GArray# *stop_arraycxx . . $ $anonymous_type_e45799855807c979_1#stop_array.; |
| 450 | } ParseDatacxx . . $ ParseData#; |
| 451 | |
| 452 | static guintcxx . . $ guint# |
| 453 | gtk_css_image_radial_parse_argcxx . . $ gtk_css_image_radial_parse_arg(85cb31622730dea6). (GtkCssParsercxx . . $ GtkCssParser# *parser, |
| 454 | guintcxx . . $ guint# arg, |
| 455 | gpointercxx . . $ gpointer# user_data) |
| 456 | { |
| 457 | ParseDatacxx . . $ ParseData# *parse_data = user_data; |
| 458 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *self = parse_data->selfcxx . . $ $anonymous_type_e45799855807c979_1#self.; |
| 459 | |
| 460 | if (arg == 0) |
| 461 | return gtk_css_image_radial_parse_first_argcxx . . $ gtk_css_image_radial_parse_first_arg(a05f5a2e07151644). (self, parser, parse_data->stop_arraycxx . . $ $anonymous_type_e45799855807c979_1#stop_array.); |
| 462 | else |
| 463 | return gtk_css_image_radial_parse_color_stopcxx . . $ gtk_css_image_radial_parse_color_stop(a05f5a2e07151644). (self, parser, parse_data->stop_arraycxx . . $ $anonymous_type_e45799855807c979_1#stop_array.); |
| 464 | |
| 465 | } |
| 466 | |
| 467 | static gbooleancxx . . $ gboolean# |
| 468 | gtk_css_image_radial_parsecxx . . $ gtk_css_image_radial_parse(a148de37152c4e89). (GtkCssImagecxx . . $ GtkCssImage# *image, |
| 469 | GtkCssParsercxx . . $ GtkCssParser# *parser) |
| 470 | { |
| 471 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *self = GTK_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:28:9`! (image); |
| 472 | ParseDatacxx . . $ ParseData# parse_data; |
| 473 | gbooleancxx . . $ gboolean# success; |
| 474 | |
| 475 | if (gtk_css_parser_has_functioncxx . . $ gtk_css_parser_has_function(b5471d620daa5380). (parser, "repeating-radial-gradient")) |
| 476 | self->repeatingcxx . . $ _GtkCssImageRadial#repeating. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 477 | else if (gtk_css_parser_has_functioncxx . . $ gtk_css_parser_has_function(b5471d620daa5380). (parser, "radial-gradient")) |
| 478 | self->repeatingcxx . . $ _GtkCssImageRadial#repeating. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 479 | else |
| 480 | { |
| 481 | gtk_css_parser_error_syntaxcxx . . $ gtk_css_parser_error_syntax(41ac99f7292d7f5f). (parser, "Not a radial gradient"); |
| 482 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 483 | } |
| 484 | |
| 485 | parse_data.selfcxx . . $ $anonymous_type_e45799855807c979_1#self. = self; |
| 486 | parse_data.stop_arraycxx . . $ $anonymous_type_e45799855807c979_1#stop_array. = g_array_newcxx . . $ g_array_new(fe898421933afc00). (TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, sizeof (GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop#)); |
| 487 | |
| 488 | success = gtk_css_parser_consume_functioncxx . . $ gtk_css_parser_consume_function(949a2555ad96460b). (parser, 3, G_MAXUINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:40:9`!, gtk_css_image_radial_parse_argcxx . . $ gtk_css_image_radial_parse_arg(85cb31622730dea6)., &parse_data); |
| 489 | |
| 490 | if (!success) |
| 491 | { |
| 492 | g_array_freecxx . . $ g_array_free(59928813d5e6bdfc). (parse_data.stop_arraycxx . . $ $anonymous_type_e45799855807c979_1#stop_array., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 493 | } |
| 494 | else |
| 495 | { |
| 496 | self->n_stopscxx . . $ _GtkCssImageRadial#n_stops. = parse_data.stop_arraycxx . . $ $anonymous_type_e45799855807c979_1#stop_array.->lencxx . . $ _GArray#len.; |
| 497 | self->color_stopscxx . . $ _GtkCssImageRadial#color_stops. = (GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *)g_array_freecxx . . $ g_array_free(59928813d5e6bdfc). (parse_data.stop_arraycxx . . $ $anonymous_type_e45799855807c979_1#stop_array., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 498 | } |
| 499 | |
| 500 | return success; |
| 501 | } |
| 502 | |
| 503 | static void |
| 504 | gtk_css_image_radial_printcxx . . $ gtk_css_image_radial_print(ef6a3e06210134ed). (GtkCssImagecxx . . $ GtkCssImage# *image, |
| 505 | GStringcxx . . $ GString# *string) |
| 506 | { |
| 507 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial = GTK_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:28:9`! (image); |
| 508 | guintcxx . . $ guint# i; |
| 509 | const char *names[] = { |
| 510 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 511 | "closest-side", |
| 512 | "farthest-side", |
| 513 | "closest-corner", |
| 514 | "farthest-corner" |
| 515 | }; |
| 516 | |
| 517 | if (radial->repeatingcxx . . $ _GtkCssImageRadial#repeating.) |
| 518 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, "repeating-radial-gradient("); |
| 519 | else |
| 520 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, "radial-gradient("); |
| 521 | |
| 522 | if (radial->circlecxx . . $ _GtkCssImageRadial#circle.) |
| 523 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, "circle "); |
| 524 | else |
| 525 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, "ellipse "); |
| 526 | |
| 527 | if (radial->sizecxx . . $ _GtkCssImageRadial#size. != 0) |
| 528 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, names[radial->size]); |
| 529 | else |
| 530 | { |
| 531 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0]) |
| 532 | gtk_css_value_printcxx . . $ gtk_css_value_print(36b72f8115f1fefa). (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0], string); |
| 533 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1]) |
| 534 | { |
| 535 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, " "); |
| 536 | gtk_css_value_printcxx . . $ gtk_css_value_print(36b72f8115f1fefa). (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1], string); |
| 537 | } |
| 538 | } |
| 539 | |
| 540 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, " at "); |
| 541 | gtk_css_value_printcxx . . $ gtk_css_value_print(36b72f8115f1fefa). (radial->positioncxx . . $ _GtkCssImageRadial#position., string); |
| 542 | |
| 543 | if (radial->color_spacecxx . . $ _GtkCssImageRadial#color_space. != GTK_CSS_COLOR_SPACE_SRGBcxx . . $ GTK_CSS_COLOR_SPACE_SRGB.) |
| 544 | { |
| 545 | g_string_append_ccxx . . $ `<external>/2906017559248664336/gstring.h:215:9`! (string, ' '); |
| 546 | gtk_css_color_interpolation_method_printcxx . . $ gtk_css_color_interpolation_method_print(f00b50c8f42cdcd9). (radial->color_spacecxx . . $ _GtkCssImageRadial#color_space., |
| 547 | radial->hue_interpcxx . . $ _GtkCssImageRadial#hue_interp., |
| 548 | string); |
| 549 | } |
| 550 | |
| 551 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, ", "); |
| 552 | |
| 553 | for (i = 0; i < radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i++) |
| 554 | { |
| 555 | const GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *stop = &radial->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 556 | |
| 557 | if (i > 0) |
| 558 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, ", "); |
| 559 | |
| 560 | if (stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint.) |
| 561 | { |
| 562 | gtk_css_value_printcxx . . $ gtk_css_value_print(36b72f8115f1fefa). (stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint., string); |
| 563 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, ", "); |
| 564 | } |
| 565 | |
| 566 | gtk_css_value_printcxx . . $ gtk_css_value_print(36b72f8115f1fefa). (stop->colorcxx . . $ _GtkCssImageRadialColorStop#color., string); |
| 567 | |
| 568 | if (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset.) |
| 569 | { |
| 570 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, " "); |
| 571 | gtk_css_value_printcxx . . $ gtk_css_value_print(36b72f8115f1fefa). (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset., string); |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | g_string_appendcxx . . $ `<external>/2906017559248664336/gstring.h:270:9`! (string, ")"); |
| 576 | } |
| 577 | |
| 578 | static GtkCssImagecxx . . $ GtkCssImage# * |
| 579 | gtk_css_image_radial_computecxx . . $ gtk_css_image_radial_compute(da0c367beab8105e). (GtkCssImagecxx . . $ GtkCssImage# *image, |
| 580 | guintcxx . . $ guint# property_id, |
| 581 | GtkCssComputeContextcxx . . $ GtkCssComputeContext# *context) |
| 582 | { |
| 583 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial = GTK_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:28:9`! (image); |
| 584 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *copy; |
| 585 | guintcxx . . $ guint# i; |
| 586 | |
| 587 | copy = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:27:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 588 | copy->repeatingcxx . . $ _GtkCssImageRadial#repeating. = radial->repeatingcxx . . $ _GtkCssImageRadial#repeating.; |
| 589 | copy->circlecxx . . $ _GtkCssImageRadial#circle. = radial->circlecxx . . $ _GtkCssImageRadial#circle.; |
| 590 | copy->sizecxx . . $ _GtkCssImageRadial#size. = radial->sizecxx . . $ _GtkCssImageRadial#size.; |
| 591 | copy->color_spacecxx . . $ _GtkCssImageRadial#color_space. = radial->color_spacecxx . . $ _GtkCssImageRadial#color_space.; |
| 592 | copy->hue_interpcxx . . $ _GtkCssImageRadial#hue_interp. = radial->hue_interpcxx . . $ _GtkCssImageRadial#hue_interp.; |
| 593 | |
| 594 | copy->positioncxx . . $ _GtkCssImageRadial#position. = gtk_css_value_computecxx . . $ gtk_css_value_compute(cbde7e31d878f1be). (radial->positioncxx . . $ _GtkCssImageRadial#position., property_id, context); |
| 595 | |
| 596 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0]) |
| 597 | copy->sizescxx . . $ _GtkCssImageRadial#sizes.[0] = gtk_css_value_computecxx . . $ gtk_css_value_compute(cbde7e31d878f1be). (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0], property_id, context); |
| 598 | |
| 599 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1]) |
| 600 | copy->sizescxx . . $ _GtkCssImageRadial#sizes.[1] = gtk_css_value_computecxx . . $ gtk_css_value_compute(cbde7e31d878f1be). (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1], property_id, context); |
| 601 | |
| 602 | copy->n_stopscxx . . $ _GtkCssImageRadial#n_stops. = radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; |
| 603 | copy->color_stopscxx . . $ _GtkCssImageRadial#color_stops. = g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64). (sizeof (GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop#) * copy->n_stopscxx . . $ _GtkCssImageRadial#n_stops.); |
| 604 | for (i = 0; i < radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i++) |
| 605 | { |
| 606 | const GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *stop = &radial->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 607 | GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *scopy = ©->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 608 | |
| 609 | scopy->colorcxx . . $ _GtkCssImageRadialColorStop#color. = gtk_css_value_computecxx . . $ gtk_css_value_compute(cbde7e31d878f1be). (stop->colorcxx . . $ _GtkCssImageRadialColorStop#color., property_id, context); |
| 610 | |
| 611 | if (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset.) |
| 612 | scopy->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. = gtk_css_value_computecxx . . $ gtk_css_value_compute(cbde7e31d878f1be). (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset., property_id, context); |
| 613 | else |
| 614 | scopy->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 615 | |
| 616 | if (stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint.) |
| 617 | scopy->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. = gtk_css_value_computecxx . . $ gtk_css_value_compute(cbde7e31d878f1be). (stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint., property_id, context); |
| 618 | else |
| 619 | scopy->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 620 | } |
| 621 | |
| 622 | return GTK_CSS_IMAGEcxx . . $ `gtk/gtkcssimageprivate.h:37:9`! (copy); |
| 623 | } |
| 624 | |
| 625 | static GtkCssImagecxx . . $ GtkCssImage# * |
| 626 | gtk_css_image_radial_transitioncxx . . $ gtk_css_image_radial_transition(a5b07688361b9b58). (GtkCssImagecxx . . $ GtkCssImage# *start_image, |
| 627 | GtkCssImagecxx . . $ GtkCssImage# *end_image, |
| 628 | guintcxx . . $ guint# property_id, |
| 629 | double progress) |
| 630 | { |
| 631 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *start, *end, *result; |
| 632 | guintcxx . . $ guint# i; |
| 633 | |
| 634 | start = GTK_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:28:9`! (start_image); |
| 635 | |
| 636 | if (end_image == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 637 | return GTK_CSS_IMAGE_CLASScxx . . $ `gtk/gtkcssimageprivate.h:38:9`! (_gtk_css_image_radial_parent_class)->transitioncxx . . $ _GtkCssImageClass#transition. (start_image, end_image, property_id, progress); |
| 638 | |
| 639 | if (!GTK_IS_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:30:9`! (end_image)) |
| 640 | return GTK_CSS_IMAGE_CLASScxx . . $ `gtk/gtkcssimageprivate.h:38:9`! (_gtk_css_image_radial_parent_class)->transitioncxx . . $ _GtkCssImageClass#transition. (start_image, end_image, property_id, progress); |
| 641 | |
| 642 | end = GTK_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:28:9`! (end_image); |
| 643 | |
| 644 | if (start->repeatingcxx . . $ _GtkCssImageRadial#repeating. != end->repeatingcxx . . $ _GtkCssImageRadial#repeating. || |
| 645 | start->n_stopscxx . . $ _GtkCssImageRadial#n_stops. != end->n_stopscxx . . $ _GtkCssImageRadial#n_stops. || |
| 646 | start->sizecxx . . $ _GtkCssImageRadial#size. != end->sizecxx . . $ _GtkCssImageRadial#size. || |
| 647 | start->circlecxx . . $ _GtkCssImageRadial#circle. != end->circlecxx . . $ _GtkCssImageRadial#circle. || |
| 648 | start->color_spacecxx . . $ _GtkCssImageRadial#color_space. != end->color_spacecxx . . $ _GtkCssImageRadial#color_space. || |
| 649 | start->hue_interpcxx . . $ _GtkCssImageRadial#hue_interp. != end->hue_interpcxx . . $ _GtkCssImageRadial#hue_interp.) |
| 650 | return GTK_CSS_IMAGE_CLASScxx . . $ `gtk/gtkcssimageprivate.h:38:9`! (_gtk_css_image_radial_parent_class)->transitioncxx . . $ _GtkCssImageClass#transition. (start_image, end_image, property_id, progress); |
| 651 | |
| 652 | result = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:27:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 653 | result->repeatingcxx . . $ _GtkCssImageRadial#repeating. = start->repeatingcxx . . $ _GtkCssImageRadial#repeating.; |
| 654 | result->circlecxx . . $ _GtkCssImageRadial#circle. = start->circlecxx . . $ _GtkCssImageRadial#circle.; |
| 655 | result->sizecxx . . $ _GtkCssImageRadial#size. = start->sizecxx . . $ _GtkCssImageRadial#size.; |
| 656 | |
| 657 | result->positioncxx . . $ _GtkCssImageRadial#position. = gtk_css_value_transitioncxx . . $ gtk_css_value_transition(f8a3466892fba181). (start->positioncxx . . $ _GtkCssImageRadial#position., end->positioncxx . . $ _GtkCssImageRadial#position., property_id, progress); |
| 658 | if (result->positioncxx . . $ _GtkCssImageRadial#position. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 659 | goto fail; |
| 660 | |
| 661 | if (start->sizescxx . . $ _GtkCssImageRadial#sizes.[0] && end->sizescxx . . $ _GtkCssImageRadial#sizes.[0]) |
| 662 | { |
| 663 | result->sizescxx . . $ _GtkCssImageRadial#sizes.[0] = gtk_css_value_transitioncxx . . $ gtk_css_value_transition(f8a3466892fba181). (start->sizescxx . . $ _GtkCssImageRadial#sizes.[0], end->sizescxx . . $ _GtkCssImageRadial#sizes.[0], property_id, progress); |
| 664 | if (result->sizescxx . . $ _GtkCssImageRadial#sizes.[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 665 | goto fail; |
| 666 | } |
| 667 | else |
| 668 | result->sizescxx . . $ _GtkCssImageRadial#sizes.[0] = 0; |
| 669 | |
| 670 | if (start->sizescxx . . $ _GtkCssImageRadial#sizes.[1] && end->sizescxx . . $ _GtkCssImageRadial#sizes.[1]) |
| 671 | { |
| 672 | result->sizescxx . . $ _GtkCssImageRadial#sizes.[1] = gtk_css_value_transitioncxx . . $ gtk_css_value_transition(f8a3466892fba181). (start->sizescxx . . $ _GtkCssImageRadial#sizes.[1], end->sizescxx . . $ _GtkCssImageRadial#sizes.[1], property_id, progress); |
| 673 | if (result->sizescxx . . $ _GtkCssImageRadial#sizes.[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 674 | goto fail; |
| 675 | } |
| 676 | else |
| 677 | result->sizescxx . . $ _GtkCssImageRadial#sizes.[1] = 0; |
| 678 | |
| 679 | result->color_stopscxx . . $ _GtkCssImageRadial#color_stops. = g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64). (sizeof (GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop#) * start->n_stopscxx . . $ _GtkCssImageRadial#n_stops.); |
| 680 | result->n_stopscxx . . $ _GtkCssImageRadial#n_stops. = 0; |
| 681 | for (i = 0; i < start->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i++) |
| 682 | { |
| 683 | const GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *start_stop = &start->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 684 | const GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *end_stop = &end->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 685 | GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *stop = &result->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 686 | |
| 687 | if ((start_stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) != (end_stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) |
| 688 | goto fail; |
| 689 | |
| 690 | if (start_stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 691 | { |
| 692 | stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 693 | } |
| 694 | else |
| 695 | { |
| 696 | stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. = gtk_css_value_transitioncxx . . $ gtk_css_value_transition(f8a3466892fba181). (start_stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint., |
| 697 | end_stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint., |
| 698 | property_id, |
| 699 | progress); |
| 700 | if (stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 701 | goto fail; |
| 702 | } |
| 703 | |
| 704 | if (start_stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 705 | { |
| 706 | stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 707 | } |
| 708 | else |
| 709 | { |
| 710 | stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. = gtk_css_value_transitioncxx . . $ gtk_css_value_transition(f8a3466892fba181). (start_stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset., |
| 711 | end_stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset., |
| 712 | property_id, |
| 713 | progress); |
| 714 | if (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 715 | goto fail; |
| 716 | } |
| 717 | |
| 718 | stop->colorcxx . . $ _GtkCssImageRadialColorStop#color. = gtk_css_value_transitioncxx . . $ gtk_css_value_transition(f8a3466892fba181). (start_stop->colorcxx . . $ _GtkCssImageRadialColorStop#color., |
| 719 | end_stop->colorcxx . . $ _GtkCssImageRadialColorStop#color., |
| 720 | property_id, |
| 721 | progress); |
| 722 | if (stop->colorcxx . . $ _GtkCssImageRadialColorStop#color. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 723 | { |
| 724 | if (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset.) |
| 725 | gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (stop->offset); |
| 726 | goto fail; |
| 727 | } |
| 728 | |
| 729 | result->n_stopscxx . . $ _GtkCssImageRadial#n_stops.++; |
| 730 | } |
| 731 | |
| 732 | return GTK_CSS_IMAGEcxx . . $ `gtk/gtkcssimageprivate.h:37:9`! (result); |
| 733 | |
| 734 | fail: |
| 735 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (result); |
| 736 | return GTK_CSS_IMAGE_CLASScxx . . $ `gtk/gtkcssimageprivate.h:38:9`! (_gtk_css_image_radial_parent_class)->transitioncxx . . $ _GtkCssImageClass#transition. (start_image, end_image, property_id, progress); |
| 737 | } |
| 738 | |
| 739 | static gbooleancxx . . $ gboolean# |
| 740 | gtk_css_image_radial_equalcxx . . $ gtk_css_image_radial_equal(b1151e149821831). (GtkCssImagecxx . . $ GtkCssImage# *image1, |
| 741 | GtkCssImagecxx . . $ GtkCssImage# *image2) |
| 742 | { |
| 743 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial1 = (GtkCssImageRadialcxx . . $ GtkCssImageRadial# *) image1; |
| 744 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial2 = (GtkCssImageRadialcxx . . $ GtkCssImageRadial# *) image2; |
| 745 | guintcxx . . $ guint# i; |
| 746 | |
| 747 | if (radial1->repeatingcxx . . $ _GtkCssImageRadial#repeating. != radial2->repeatingcxx . . $ _GtkCssImageRadial#repeating. || |
| 748 | radial1->sizecxx . . $ _GtkCssImageRadial#size. != radial2->sizecxx . . $ _GtkCssImageRadial#size. || |
| 749 | !gtk_css_value_equalcxx . . $ gtk_css_value_equal(9e96a8b1dd095d1c). (radial1->positioncxx . . $ _GtkCssImageRadial#position., radial2->positioncxx . . $ _GtkCssImageRadial#position.) || |
| 750 | ((radial1->sizescxx . . $ _GtkCssImageRadial#sizes.[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) != (radial2->sizescxx . . $ _GtkCssImageRadial#sizes.[0] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) || |
| 751 | (radial1->sizescxx . . $ _GtkCssImageRadial#sizes.[0] && radial2->sizescxx . . $ _GtkCssImageRadial#sizes.[0] && !gtk_css_value_equalcxx . . $ gtk_css_value_equal(9e96a8b1dd095d1c). (radial1->sizescxx . . $ _GtkCssImageRadial#sizes.[0], radial2->sizescxx . . $ _GtkCssImageRadial#sizes.[0])) || |
| 752 | ((radial1->sizescxx . . $ _GtkCssImageRadial#sizes.[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) != (radial2->sizescxx . . $ _GtkCssImageRadial#sizes.[1] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) || |
| 753 | (radial1->sizescxx . . $ _GtkCssImageRadial#sizes.[1] && radial2->sizescxx . . $ _GtkCssImageRadial#sizes.[1] && !gtk_css_value_equalcxx . . $ gtk_css_value_equal(9e96a8b1dd095d1c). (radial1->sizescxx . . $ _GtkCssImageRadial#sizes.[1], radial2->sizescxx . . $ _GtkCssImageRadial#sizes.[1])) || |
| 754 | radial1->n_stopscxx . . $ _GtkCssImageRadial#n_stops. != radial2->n_stopscxx . . $ _GtkCssImageRadial#n_stops. || |
| 755 | radial1->color_spacecxx . . $ _GtkCssImageRadial#color_space. != radial2->color_spacecxx . . $ _GtkCssImageRadial#color_space. || |
| 756 | radial1->hue_interpcxx . . $ _GtkCssImageRadial#hue_interp. != radial2->hue_interpcxx . . $ _GtkCssImageRadial#hue_interp.) |
| 757 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 758 | |
| 759 | for (i = 0; i < radial1->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i++) |
| 760 | { |
| 761 | const GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *stop1 = &radial1->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 762 | const GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *stop2 = &radial2->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 763 | |
| 764 | if (!gtk_css_value_equal0cxx . . $ gtk_css_value_equal0(9e96a8b1dd095d1c). (stop1->offsetcxx . . $ _GtkCssImageRadialColorStop#offset., stop2->offsetcxx . . $ _GtkCssImageRadialColorStop#offset.) || |
| 765 | !gtk_css_value_equal0cxx . . $ gtk_css_value_equal0(9e96a8b1dd095d1c). (stop1->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint., stop2->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint.) || |
| 766 | !gtk_css_value_equalcxx . . $ gtk_css_value_equal(9e96a8b1dd095d1c). (stop1->colorcxx . . $ _GtkCssImageRadialColorStop#color., stop2->colorcxx . . $ _GtkCssImageRadialColorStop#color.)) |
| 767 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 768 | } |
| 769 | |
| 770 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 771 | } |
| 772 | |
| 773 | static void |
| 774 | gtk_css_image_radial_disposecxx . . $ gtk_css_image_radial_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object) |
| 775 | { |
| 776 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial = GTK_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:28:9`! (object); |
| 777 | guintcxx . . $ guint# i; |
| 778 | |
| 779 | for (i = 0; i < radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i ++) |
| 780 | { |
| 781 | GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *stop = &radial->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 782 | |
| 783 | if (stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint.) |
| 784 | gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (stop->transition_hint); |
| 785 | gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (stop->color); |
| 786 | if (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset.) |
| 787 | gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (stop->offset); |
| 788 | } |
| 789 | g_freecxx . . $ g_free(5d22bdacc48458e8). (radial->color_stopscxx . . $ _GtkCssImageRadial#color_stops.); |
| 790 | |
| 791 | if (radial->positioncxx . . $ _GtkCssImageRadial#position.) |
| 792 | { |
| 793 | gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (radial->position); |
| 794 | radial->positioncxx . . $ _GtkCssImageRadial#position. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 795 | } |
| 796 | |
| 797 | for (i = 0; i < 2; i++) |
| 798 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[i]) |
| 799 | { |
| 800 | gtk_css_value_unrefcxx . . $ `gtk/gtkcssvalueprivate.h:134:9`! (radial->sizes[i]); |
| 801 | radial->sizescxx . . $ _GtkCssImageRadial#sizes.[i] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 802 | } |
| 803 | |
| 804 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (_gtk_css_image_radial_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object); |
| 805 | } |
| 806 | |
| 807 | static gbooleancxx . . $ gboolean# |
| 808 | gtk_css_image_radial_is_computedcxx . . $ gtk_css_image_radial_is_computed(f495c6a6d88c72e8). (GtkCssImagecxx . . $ GtkCssImage# *image) |
| 809 | { |
| 810 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial = GTK_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:28:9`! (image); |
| 811 | guintcxx . . $ guint# i; |
| 812 | gbooleancxx . . $ gboolean# computed = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 813 | |
| 814 | computed = computed && (!radial->positioncxx . . $ _GtkCssImageRadial#position. || gtk_css_value_is_computedcxx . . $ gtk_css_value_is_computed(8222c132d23033c0). (radial->positioncxx . . $ _GtkCssImageRadial#position.)); |
| 815 | computed = computed && (!radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0] || gtk_css_value_is_computedcxx . . $ gtk_css_value_is_computed(8222c132d23033c0). (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0])); |
| 816 | computed = computed && (!radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1] || gtk_css_value_is_computedcxx . . $ gtk_css_value_is_computed(8222c132d23033c0). (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1])); |
| 817 | |
| 818 | if (computed) |
| 819 | for (i = 0; i < radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i ++) |
| 820 | { |
| 821 | const GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *stop = &radial->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 822 | |
| 823 | if (stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. && !gtk_css_value_is_computedcxx . . $ gtk_css_value_is_computed(8222c132d23033c0). (stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint.)) |
| 824 | { |
| 825 | computed = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 826 | break; |
| 827 | } |
| 828 | |
| 829 | if (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. && !gtk_css_value_is_computedcxx . . $ gtk_css_value_is_computed(8222c132d23033c0). (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset.)) |
| 830 | { |
| 831 | computed = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 832 | break; |
| 833 | } |
| 834 | |
| 835 | if (!gtk_css_value_is_computedcxx . . $ gtk_css_value_is_computed(8222c132d23033c0). (stop->colorcxx . . $ _GtkCssImageRadialColorStop#color.)) |
| 836 | { |
| 837 | computed = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 838 | break; |
| 839 | } |
| 840 | } |
| 841 | |
| 842 | return computed; |
| 843 | } |
| 844 | |
| 845 | static gbooleancxx . . $ gboolean# |
| 846 | gtk_css_image_radial_contains_current_colorcxx . . $ gtk_css_image_radial_contains_current_color(f495c6a6d88c72e8). (GtkCssImagecxx . . $ GtkCssImage# *image) |
| 847 | { |
| 848 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial = GTK_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:28:9`! (image); |
| 849 | |
| 850 | for (guintcxx . . $ guint# i = 0; i < radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i ++) |
| 851 | { |
| 852 | const GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *stop = &radial->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 853 | |
| 854 | if (gtk_css_value_contains_current_colorcxx . . $ gtk_css_value_contains_current_color(8222c132d23033c0). (stop->colorcxx . . $ _GtkCssImageRadialColorStop#color.)) |
| 855 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 856 | } |
| 857 | |
| 858 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 859 | } |
| 860 | |
| 861 | static GtkCssImagecxx . . $ GtkCssImage# * |
| 862 | gtk_css_image_radial_resolvecxx . . $ gtk_css_image_radial_resolve(974e22791d5e939a). (GtkCssImagecxx . . $ GtkCssImage# *image, |
| 863 | GtkCssComputeContextcxx . . $ GtkCssComputeContext# *context, |
| 864 | GtkCssValuecxx . . $ GtkCssValue# *current_color) |
| 865 | { |
| 866 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial = GTK_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:28:9`! (image); |
| 867 | GtkCssImageRadialcxx . . $ GtkCssImageRadial# *copy; |
| 868 | |
| 869 | if (!gtk_css_image_radial_contains_current_colorcxx . . $ gtk_css_image_radial_contains_current_color(f495c6a6d88c72e8). (image)) |
| 870 | return g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (image); |
| 871 | |
| 872 | copy = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_CSS_IMAGE_RADIALcxx . . $ `gtk/gtkcssimageradialprivate.h:27:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 873 | copy->repeatingcxx . . $ _GtkCssImageRadial#repeating. = radial->repeatingcxx . . $ _GtkCssImageRadial#repeating.; |
| 874 | copy->circlecxx . . $ _GtkCssImageRadial#circle. = radial->circlecxx . . $ _GtkCssImageRadial#circle.; |
| 875 | copy->sizecxx . . $ _GtkCssImageRadial#size. = radial->sizecxx . . $ _GtkCssImageRadial#size.; |
| 876 | |
| 877 | copy->positioncxx . . $ _GtkCssImageRadial#position. = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (radial->position); |
| 878 | |
| 879 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[0]) |
| 880 | copy->sizescxx . . $ _GtkCssImageRadial#sizes.[0] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (radial->sizes[0]); |
| 881 | |
| 882 | if (radial->sizescxx . . $ _GtkCssImageRadial#sizes.[1]) |
| 883 | copy->sizescxx . . $ _GtkCssImageRadial#sizes.[1] = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (radial->sizes[1]); |
| 884 | |
| 885 | copy->n_stopscxx . . $ _GtkCssImageRadial#n_stops. = radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; |
| 886 | copy->color_stopscxx . . $ _GtkCssImageRadial#color_stops. = g_newcxx . . $ `<external>/1123956534522462559/gmem.h:318:9`! (GtkCssImageRadialColorStop, copy->n_stops); |
| 887 | |
| 888 | for (guintcxx . . $ guint# i = 0; i < radial->n_stopscxx . . $ _GtkCssImageRadial#n_stops.; i++) |
| 889 | { |
| 890 | const GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *stop = &radial->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 891 | GtkCssImageRadialColorStopcxx . . $ GtkCssImageRadialColorStop# *scopy = ©->color_stopscxx . . $ _GtkCssImageRadial#color_stops.[i]; |
| 892 | |
| 893 | scopy->colorcxx . . $ _GtkCssImageRadialColorStop#color. = gtk_css_value_resolvecxx . . $ gtk_css_value_resolve(74848e860210f201). (stop->colorcxx . . $ _GtkCssImageRadialColorStop#color., context, current_color); |
| 894 | |
| 895 | if (stop->offsetcxx . . $ _GtkCssImageRadialColorStop#offset.) |
| 896 | scopy->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (stop->offset); |
| 897 | else |
| 898 | scopy->offsetcxx . . $ _GtkCssImageRadialColorStop#offset. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 899 | |
| 900 | if (stop->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint.) |
| 901 | scopy->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. = gtk_css_value_refcxx . . $ `gtk/gtkcssvalueprivate.h:133:9`! (stop->transition_hint); |
| 902 | else |
| 903 | scopy->transition_hintcxx . . $ _GtkCssImageRadialColorStop#transition_hint. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 904 | } |
| 905 | |
| 906 | return GTK_CSS_IMAGEcxx . . $ `gtk/gtkcssimageprivate.h:37:9`! (copy); |
| 907 | } |
| 908 | |
| 909 | static void |
| 910 | _gtk_css_image_radial_class_initcxx . . $ _gtk_css_image_radial_class_init(14a7ab7ce182cb1f). (GtkCssImageRadialClasscxx . . $ GtkCssImageRadialClass# *klass) |
| 911 | { |
| 912 | GtkCssImageClasscxx . . $ GtkCssImageClass# *image_class = GTK_CSS_IMAGE_CLASScxx . . $ `gtk/gtkcssimageprivate.h:38:9`! (klass); |
| 913 | GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass); |
| 914 | |
| 915 | image_class->snapshotcxx . . $ _GtkCssImageClass#snapshot. = gtk_css_image_radial_snapshotcxx . . $ gtk_css_image_radial_snapshot(ec291471418dd080).; |
| 916 | image_class->parsecxx . . $ _GtkCssImageClass#parse. = gtk_css_image_radial_parsecxx . . $ gtk_css_image_radial_parse(a148de37152c4e89).; |
| 917 | image_class->printcxx . . $ _GtkCssImageClass#print. = gtk_css_image_radial_printcxx . . $ gtk_css_image_radial_print(ef6a3e06210134ed).; |
| 918 | image_class->computecxx . . $ _GtkCssImageClass#compute. = gtk_css_image_radial_computecxx . . $ gtk_css_image_radial_compute(da0c367beab8105e).; |
| 919 | image_class->transitioncxx . . $ _GtkCssImageClass#transition. = gtk_css_image_radial_transitioncxx . . $ gtk_css_image_radial_transition(a5b07688361b9b58).; |
| 920 | image_class->equalcxx . . $ _GtkCssImageClass#equal. = gtk_css_image_radial_equalcxx . . $ gtk_css_image_radial_equal(b1151e149821831).; |
| 921 | image_class->is_computedcxx . . $ _GtkCssImageClass#is_computed. = gtk_css_image_radial_is_computedcxx . . $ gtk_css_image_radial_is_computed(f495c6a6d88c72e8).; |
| 922 | image_class->contains_current_colorcxx . . $ _GtkCssImageClass#contains_current_color. = gtk_css_image_radial_contains_current_colorcxx . . $ gtk_css_image_radial_contains_current_color(f495c6a6d88c72e8).; |
| 923 | image_class->resolvecxx . . $ _GtkCssImageClass#resolve. = gtk_css_image_radial_resolvecxx . . $ gtk_css_image_radial_resolve(974e22791d5e939a).; |
| 924 | |
| 925 | object_class->disposecxx . . $ _GObjectClass#dispose. = gtk_css_image_radial_disposecxx . . $ gtk_css_image_radial_dispose(6087475fa43034d3).; |
| 926 | } |
| 927 | |
| 928 | static void |
| 929 | _gtk_css_image_radial_initcxx . . $ _gtk_css_image_radial_init(f1089c75d102bf7a). (GtkCssImageRadialcxx . . $ GtkCssImageRadial# *radial) |
| 930 | { |
| 931 | } |