| File: | eel/eel-cdk-extensions.c | 
| Warning: | line 108, column 17 Access of the string literal at index 1, while it holds only a single 'char' element  | 
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
| 1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ | |||
| 2 | ||||
| 3 | /* eel-cdk-extensions.c: Graphics routines to augment what's in cdk. | |||
| 4 | ||||
| 5 | Copyright (C) 1999, 2000 Eazel, Inc. | |||
| 6 | ||||
| 7 | The Cafe Library is free software; you can redistribute it and/or | |||
| 8 | modify it under the terms of the GNU Library General Public License as | |||
| 9 | published by the Free Software Foundation; either version 2 of the | |||
| 10 | License, or (at your option) any later version. | |||
| 11 | ||||
| 12 | The Cafe Library is distributed in the hope that it will be useful, | |||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
| 15 | Library General Public License for more details. | |||
| 16 | ||||
| 17 | You should have received a copy of the GNU Library General Public | |||
| 18 | License along with the Cafe Library; see the file COPYING.LIB. If not, | |||
| 19 | write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, | |||
| 20 | Boston, MA 02110-1301, USA. | |||
| 21 | ||||
| 22 | Authors: Darin Adler <darin@eazel.com>, | |||
| 23 | Pavel Cisler <pavel@eazel.com>, | |||
| 24 | Ramiro Estrugo <ramiro@eazel.com> | |||
| 25 | */ | |||
| 26 | ||||
| 27 | #include <config.h> | |||
| 28 | #include "eel-cdk-extensions.h" | |||
| 29 | ||||
| 30 | #include "eel-glib-extensions.h" | |||
| 31 | #include "eel-lib-self-check-functions.h" | |||
| 32 | #include "eel-string.h" | |||
| 33 | #include <gdk-pixbuf/gdk-pixbuf.h> | |||
| 34 | #include <cdk/cdkprivate.h> | |||
| 35 | #include <cdk/cdk.h> | |||
| 36 | #include <cdk/cdkx.h> | |||
| 37 | #include <stdlib.h> | |||
| 38 | #include <pango/pango.h> | |||
| 39 | ||||
| 40 | #define GRADIENT_BAND_SIZE4 4 | |||
| 41 | ||||
| 42 | /** | |||
| 43 | * eel_gradient_new | |||
| 44 | * @start_color: Color for the top or left. | |||
| 45 | * @end_color: Color for the bottom or right. | |||
| 46 | * @is_horizontal: Direction of the gradient. | |||
| 47 | * | |||
| 48 | * Create a string that combines the start and end colors along | |||
| 49 | * with the direction of the gradient in a standard format. | |||
| 50 | */ | |||
| 51 | char * | |||
| 52 | eel_gradient_new (const char *start_color, | |||
| 53 | const char *end_color, | |||
| 54 | gboolean is_horizontal) | |||
| 55 | { | |||
| 56 | /* Handle the special case where the start and end colors are identical. | |||
| 57 | Handle the special case where the end color is an empty string. | |||
| 58 | */ | |||
| 59 | if (eel_strcmp(start_color, end_color) == 0 || end_color == NULL((void*)0) || end_color[0] == '\0') | |||
| 60 | { | |||
| 61 | return g_strdup (start_color)g_strdup_inline (start_color); | |||
| 62 | } | |||
| 63 | ||||
| 64 | /* Handle the special case where the start color is an empty string. */ | |||
| 65 | if (start_color == NULL((void*)0) || start_color[0] == '\0') | |||
| 66 | { | |||
| 67 | return g_strdup (end_color)g_strdup_inline (end_color); | |||
| 68 | } | |||
| 69 | ||||
| 70 | /* Handle the general case. */ | |||
| 71 | return g_strconcat (start_color, "-", end_color, is_horizontal ? ":h" : NULL((void*)0), NULL((void*)0)); | |||
| 72 | } | |||
| 73 | ||||
| 74 | /** | |||
| 75 | * eel_gradient_is_gradient | |||
| 76 | * @gradient_spec: A gradient spec. string. | |||
| 77 | * | |||
| 78 | * Return true if the spec. specifies a gradient instead of a solid color. | |||
| 79 | */ | |||
| 80 | gboolean | |||
| 81 | eel_gradient_is_gradient (const char *gradient_spec) | |||
| 82 | { | |||
| 83 | return eel_strchr (gradient_spec, '-') != NULL((void*)0); | |||
| 84 | } | |||
| 85 | ||||
| 86 | /** | |||
| 87 | * eel_gradient_is_horizontal | |||
| 88 | * @gradient_spec: A gradient spec. string. | |||
| 89 | * | |||
| 90 | * Return true if the spec. specifies a horizontal gradient. | |||
| 91 | */ | |||
| 92 | gboolean | |||
| 93 | eel_gradient_is_horizontal (const char *gradient_spec) | |||
| 94 | { | |||
| 95 | size_t length; | |||
| 96 | ||||
| 97 | length = eel_strlen (gradient_spec); | |||
| 98 | return length >= 2 && gradient_spec[length - 2] == ':' && gradient_spec[length - 1] == 'h'; | |||
| 99 | } | |||
| 100 | ||||
| 101 | static char * | |||
| 102 | eel_gradient_strip_trailing_direction_if_any (const char *gradient_spec) | |||
| 103 | { | |||
| 104 | size_t length; | |||
| 105 | ||||
| 106 | length = eel_strlen (gradient_spec); | |||
| 107 | if (length >= 2 && gradient_spec[length - 2] == ':' | |||
| 108 | && (gradient_spec[length - 1] == 'v' || gradient_spec[length - 1] == 'h')) | |||
  | ||||
| 109 | { | |||
| 110 | length -= 2; | |||
| 111 | } | |||
| 112 | ||||
| 113 | return g_strndup (gradient_spec, length); | |||
| 114 | } | |||
| 115 | ||||
| 116 | /* For parsing n-point gradients. Successive calls should pass the next_spec value | |||
| 117 | * set by the previous call as their first argument - to continue parsing where the | |||
| 118 | * previous call left off. | |||
| 119 | */ | |||
| 120 | char * | |||
| 121 | eel_gradient_parse_one_color_spec (const char *spec, int *percent, const char **next_spec) | |||
| 122 | { | |||
| 123 | char *result; | |||
| 124 | const char *rgb_end_ptr; | |||
| 125 | const char *percent_ptr; | |||
| 126 | const char *separator_ptr; | |||
| 127 | ||||
| 128 | percent_ptr = eel_strchr (spec, '%'); | |||
| 129 | separator_ptr = eel_strchr (spec, '-'); | |||
| 130 | ||||
| 131 | if (percent_ptr != NULL((void*)0) && (separator_ptr == NULL((void*)0) || percent_ptr < separator_ptr)) | |||
| 132 | { | |||
| 133 | if (percent != NULL((void*)0)) | |||
| 134 | { | |||
| 135 | *percent = (int) strtol (percent_ptr + 1, NULL((void*)0), 10); | |||
| 136 | } | |||
| 137 | rgb_end_ptr = percent_ptr; | |||
| 138 | } | |||
| 139 | else | |||
| 140 | { | |||
| 141 |         if (percent
  | |||
| 142 | { | |||
| 143 | *percent = 100; | |||
| 144 | } | |||
| 145 | rgb_end_ptr = separator_ptr; | |||
| 146 | } | |||
| 147 | ||||
| 148 | if (rgb_end_ptr != NULL((void*)0)) | |||
| 149 | { | |||
| 150 | result = g_strndup (spec, rgb_end_ptr - spec); | |||
| 151 | } | |||
| 152 | else | |||
| 153 | { | |||
| 154 | result = eel_gradient_strip_trailing_direction_if_any (spec); | |||
| 155 | } | |||
| 156 | ||||
| 157 | /* It's important not to use spec after setting *next_spec because it's | |||
| 158 | * likely that *next_spec == spec. | |||
| 159 | */ | |||
| 160 | if (next_spec != NULL((void*)0)) | |||
| 161 | { | |||
| 162 | *next_spec = (separator_ptr != NULL((void*)0)) ? separator_ptr + 1 : NULL((void*)0); | |||
| 163 | } | |||
| 164 | ||||
| 165 | return result; | |||
| 166 | } | |||
| 167 | ||||
| 168 | /* FIXME bugzilla.eazel.com 5076: | |||
| 169 | * anyone using eel_gradient_get_start_color_spec or | |||
| 170 | * eel_gradient_get_end_color_spec is assuming the gradient | |||
| 171 | * is 2 colors which is questionable. | |||
| 172 | * | |||
| 173 | * Callers should be rewritten and these fns eliminated. | |||
| 174 | */ | |||
| 175 | ||||
| 176 | /** | |||
| 177 | * eel_gradient_get_start_color_spec | |||
| 178 | * @gradient_spec: A gradient spec. string. | |||
| 179 | * | |||
| 180 | * Return the start color. | |||
| 181 | * This may be the entire gradient_spec if it's a solid color. | |||
| 182 | */ | |||
| 183 | char * | |||
| 184 | eel_gradient_get_start_color_spec (const char *gradient_spec) | |||
| 185 | { | |||
| 186 | return eel_gradient_parse_one_color_spec (gradient_spec, NULL((void*)0), NULL((void*)0)); | |||
| 187 | } | |||
| 188 | ||||
| 189 | /** | |||
| 190 | * eel_gradient_get_end_color_spec | |||
| 191 | * @gradient_spec: A gradient spec. string. | |||
| 192 | * | |||
| 193 | * Return the end color. | |||
| 194 | * This may be the entire gradient_spec if it's a solid color. | |||
| 195 | */ | |||
| 196 | char * | |||
| 197 | eel_gradient_get_end_color_spec (const char *gradient_spec) | |||
| 198 | { | |||
| 199 | char* color = NULL((void*)0); | |||
| 200 | ||||
| 201 | do | |||
| 202 | { | |||
| 203 | g_free (color); | |||
| 204 | color = eel_gradient_parse_one_color_spec (gradient_spec, NULL((void*)0), &gradient_spec); | |||
| 205 | } | |||
| 206 | while (gradient_spec != NULL((void*)0)); | |||
| 207 | ||||
| 208 | return color; | |||
| 209 | } | |||
| 210 | ||||
| 211 | /* Do the work shared by all the set_color_spec functions below. */ | |||
| 212 | static char * | |||
| 213 | eel_gradient_set_edge_color (const char *gradient_spec, | |||
| 214 | const char *edge_color, | |||
| 215 | gboolean is_horizontal, | |||
| 216 | gboolean change_end) | |||
| 217 | { | |||
| 218 | char *opposite_color; | |||
| 219 | char *result; | |||
| 220 | ||||
| 221 |     g_assert (edge_color != NULL)do { if (edge_color != ((void*)0)) ; else g_assertion_message_expr ("Eel", "eel-cdk-extensions.c", 221, ((const char*) (__func__ )), "edge_color != NULL"); } while (0);  | |||
| 222 | ||||
| 223 | /* Get the color from the existing gradient spec. for the opposite | |||
| 224 | edge. This will parse away all the stuff we don't want from the | |||
| 225 | old gradient spec. | |||
| 226 | */ | |||
| 227 | opposite_color = change_end | |||
| 228 | ? eel_gradient_get_start_color_spec (gradient_spec) | |||
| 229 | : eel_gradient_get_end_color_spec (gradient_spec); | |||
| 230 | ||||
| 231 | /* Create a new gradient spec. The eel_gradient_new function handles | |||
| 232 | some special cases, so we don't have to bother with them here. | |||
| 233 | */ | |||
| 234 | result = eel_gradient_new (change_end ? opposite_color : edge_color, | |||
| 235 | change_end ? edge_color : opposite_color, | |||
| 236 | is_horizontal); | |||
| 237 | ||||
| 238 | g_free (opposite_color); | |||
| 239 | ||||
| 240 | return result; | |||
| 241 | } | |||
| 242 | ||||
| 243 | /** | |||
| 244 | * eel_gradient_set_left_color_spec | |||
| 245 | * @gradient_spec: A gradient spec. string. | |||
| 246 | * @left_color: Color spec. to replace left color with. | |||
| 247 | * | |||
| 248 | * Changes the left color to what's passed in. | |||
| 249 | * This creates a horizontal gradient. | |||
| 250 | */ | |||
| 251 | char * | |||
| 252 | eel_gradient_set_left_color_spec (const char *gradient_spec, | |||
| 253 | const char *left_color) | |||
| 254 | { | |||
| 255 |     g_return_val_if_fail (gradient_spec != NULL, NULL)do { if ((gradient_spec != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "gradient_spec != NULL") ; return (((void*)0)); } } while (0);  | |||
| 256 |     g_return_val_if_fail (left_color != NULL, NULL)do { if ((left_color != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "left_color != NULL"); return (((void*)0)); } } while (0);  | |||
| 257 | ||||
| 258 | return eel_gradient_set_edge_color (gradient_spec, left_color, TRUE(!(0)), FALSE(0)); | |||
| 259 | } | |||
| 260 | ||||
| 261 | /** | |||
| 262 | * eel_gradient_set_top_color_spec | |||
| 263 | * @gradient_spec: A gradient spec. string. | |||
| 264 | * @top_color: Color spec. to replace top color with. | |||
| 265 | * | |||
| 266 | * Changes the top color to what's passed in. | |||
| 267 | * This creates a vertical gradient. | |||
| 268 | */ | |||
| 269 | char * | |||
| 270 | eel_gradient_set_top_color_spec (const char *gradient_spec, | |||
| 271 | const char *top_color) | |||
| 272 | { | |||
| 273 |     g_return_val_if_fail (gradient_spec != NULL, NULL)do { if ((gradient_spec != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "gradient_spec != NULL") ; return (((void*)0)); } } while (0);  | |||
| 274 |     g_return_val_if_fail (top_color != NULL, NULL)do { if ((top_color != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "top_color != NULL"); return (((void*)0)); } } while (0);  | |||
| 275 | ||||
| 276 | return eel_gradient_set_edge_color (gradient_spec, top_color, FALSE(0), FALSE(0)); | |||
| 277 | } | |||
| 278 | ||||
| 279 | /** | |||
| 280 | * eel_gradient_set_right_color_spec | |||
| 281 | * @gradient_spec: A gradient spec. string. | |||
| 282 | * @right_color: Color spec. to replace right color with. | |||
| 283 | * | |||
| 284 | * Changes the right color to what's passed in. | |||
| 285 | * This creates a horizontal gradient. | |||
| 286 | */ | |||
| 287 | char * | |||
| 288 | eel_gradient_set_right_color_spec (const char *gradient_spec, | |||
| 289 | const char *right_color) | |||
| 290 | { | |||
| 291 |     g_return_val_if_fail (gradient_spec != NULL, NULL)do { if ((gradient_spec != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "gradient_spec != NULL") ; return (((void*)0)); } } while (0);  | |||
| 292 |     g_return_val_if_fail (right_color != NULL, NULL)do { if ((right_color != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "right_color != NULL"); return (((void*)0)); } } while (0);  | |||
| 293 | ||||
| 294 | return eel_gradient_set_edge_color (gradient_spec, right_color, TRUE(!(0)), TRUE(!(0))); | |||
| 295 | } | |||
| 296 | ||||
| 297 | /** | |||
| 298 | * eel_gradient_set_bottom_color_spec | |||
| 299 | * @gradient_spec: A gradient spec. string. | |||
| 300 | * @bottom_color: Color spec. to replace bottom color with. | |||
| 301 | * | |||
| 302 | * Changes the bottom color to what's passed in. | |||
| 303 | * This creates a vertical gradient. | |||
| 304 | */ | |||
| 305 | char * | |||
| 306 | eel_gradient_set_bottom_color_spec (const char *gradient_spec, | |||
| 307 | const char *bottom_color) | |||
| 308 | { | |||
| 309 |     g_return_val_if_fail (gradient_spec != NULL, NULL)do { if ((gradient_spec != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "gradient_spec != NULL") ; return (((void*)0)); } } while (0);  | |||
| 310 |     g_return_val_if_fail (bottom_color != NULL, NULL)do { if ((bottom_color != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "bottom_color != NULL"); return (((void*)0)); } } while (0);  | |||
| 311 | ||||
| 312 | return eel_gradient_set_edge_color (gradient_spec, bottom_color, FALSE(0), TRUE(!(0))); | |||
| 313 | } | |||
| 314 | ||||
| 315 | /** | |||
| 316 | * eel_cdk_rgba_parse_with_white_default | |||
| 317 | * @color: Pointer to place to put resulting color. | |||
| 318 | * @color_spec: A color spec, or NULL. | |||
| 319 | * | |||
| 320 | * The same as cdk_rgba_parse, except sets the color to white if | |||
| 321 | * the spec. can't be parsed, instead of returning a boolean flag. | |||
| 322 | */ | |||
| 323 | void | |||
| 324 | eel_cdk_rgba_parse_with_white_default (CdkRGBA *color, | |||
| 325 | const char *color_spec) | |||
| 326 | { | |||
| 327 | gboolean got_color; | |||
| 328 | ||||
| 329 |     g_return_if_fail (color != NULL)do { if ((color != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "color != NULL"); return ; } } while (0);  | |||
| 330 | ||||
| 331 | got_color = FALSE(0); | |||
| 332 | if (color_spec != NULL((void*)0)) | |||
| 333 | { | |||
| 334 | if (cdk_rgba_parse (color, color_spec)) | |||
| 335 | { | |||
| 336 | got_color = TRUE(!(0)); | |||
| 337 | } | |||
| 338 | } | |||
| 339 | ||||
| 340 | if (!got_color) | |||
| 341 | { | |||
| 342 | color->red = 1.0; | |||
| 343 | color->green = 1.0; | |||
| 344 | color->blue = 1.0; | |||
| 345 | color->alpha = 1.0; | |||
| 346 | } | |||
| 347 | } | |||
| 348 | ||||
| 349 | guint32 | |||
| 350 | eel_rgb16_to_rgb (gushort r, gushort g, gushort b) | |||
| 351 | { | |||
| 352 | guint32 result; | |||
| 353 | ||||
| 354 | result = (0xff0000 | (r & 0xff00)); | |||
| 355 | result <<= 8; | |||
| 356 | result |= ((g & 0xff00) | (b >> 8)); | |||
| 357 | ||||
| 358 | return result; | |||
| 359 | } | |||
| 360 | ||||
| 361 | /** | |||
| 362 | * eel_cdk_rgba_to_rgb | |||
| 363 | * @color: A CdkRGBA style color. | |||
| 364 | * Returns: An rgb value. | |||
| 365 | * | |||
| 366 | * Converts from a CdkRGBA style color to a cdk_rgb one. | |||
| 367 | * Alpha gets set to fully opaque | |||
| 368 | */ | |||
| 369 | guint32 | |||
| 370 | eel_cdk_rgba_to_rgb (const CdkRGBA *color) | |||
| 371 | { | |||
| 372 | return eel_rgb16_to_rgb ((guint) (color->red * 65535), | |||
| 373 | (guint) (color->green * 65535), | |||
| 374 | (guint) (color->blue * 65535)); | |||
| 375 | } | |||
| 376 | ||||
| 377 | /** | |||
| 378 | * eel_cdk_rgb_to_rgba | |||
| 379 | * @color: a cdk_rgb style value. | |||
| 380 | * | |||
| 381 | * Converts from a cdk_rgb value style to a CdkRGBA one. | |||
| 382 | * The cdk_rgb color alpha channel is ignored. | |||
| 383 | * | |||
| 384 | * Return value: A CdkRGBA structure version of the given RGB color. | |||
| 385 | */ | |||
| 386 | CdkRGBA | |||
| 387 | eel_cdk_rgb_to_rgba (guint32 color) | |||
| 388 | { | |||
| 389 | CdkRGBA result; | |||
| 390 | ||||
| 391 | result.red = ((gdouble) ((color >> 16) & 0xFF)) / 0xFF; | |||
| 392 | result.green = ((gdouble) ((color >> 8) & 0xFF)) / 0xFF; | |||
| 393 | result.blue = ((gdouble) (color & 0xFF)) / 0xFF; | |||
| 394 | result.alpha = 1.0; | |||
| 395 | ||||
| 396 | return result; | |||
| 397 | } | |||
| 398 | ||||
| 399 | ||||
| 400 | /** | |||
| 401 | * eel_cdk_rgb_to_color_spec | |||
| 402 | * @color: a cdk_rgb style value. | |||
| 403 | * | |||
| 404 | * Converts from a cdk_rgb value style to a string color spec. | |||
| 405 | * The cdk_rgb color alpha channel is ignored. | |||
| 406 | * | |||
| 407 | * Return value: a newly allocated color spec. | |||
| 408 | */ | |||
| 409 | char * | |||
| 410 | eel_cdk_rgb_to_color_spec (const guint32 color) | |||
| 411 | { | |||
| 412 | return g_strdup_printf ("#%06X", (guint) (color & 0xFFFFFF)); | |||
| 413 | } | |||
| 414 | ||||
| 415 | ||||
| 416 | /** | |||
| 417 | * eel_cdk_rgba_is_dark: | |||
| 418 | * | |||
| 419 | * Return true if the given color is `dark' | |||
| 420 | */ | |||
| 421 | gboolean | |||
| 422 | eel_cdk_rgba_is_dark (const CdkRGBA *color) | |||
| 423 | { | |||
| 424 | int intensity; | |||
| 425 | ||||
| 426 | intensity = (((guint) (color->red * 0xff) * 77) | |||
| 427 | + ((guint) (color->green * 0xff) * 150) | |||
| 428 | + ((guint) (color->blue * 0xff) * 28)) >> 8; | |||
| 429 | ||||
| 430 | return intensity < 128; | |||
| 431 | } | |||
| 432 | ||||
| 433 | EelCdkGeometryFlags | |||
| 434 | eel_cdk_parse_geometry (const char *string, int *x_return, int *y_return, | |||
| 435 | guint *width_return, guint *height_return) | |||
| 436 | { | |||
| 437 | int x11_flags; | |||
| 438 | EelCdkGeometryFlags cdk_flags; | |||
| 439 | ||||
| 440 |     g_return_val_if_fail (string != NULL, EEL_CDK_NO_VALUE)do { if ((string != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "string != NULL"); return (EEL_CDK_NO_VALUE); } } while (0);  | |||
| 441 |     g_return_val_if_fail (x_return != NULL, EEL_CDK_NO_VALUE)do { if ((x_return != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "x_return != NULL"); return (EEL_CDK_NO_VALUE); } } while (0);  | |||
| 442 |     g_return_val_if_fail (y_return != NULL, EEL_CDK_NO_VALUE)do { if ((y_return != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "y_return != NULL"); return (EEL_CDK_NO_VALUE); } } while (0);  | |||
| 443 |     g_return_val_if_fail (width_return != NULL, EEL_CDK_NO_VALUE)do { if ((width_return != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "width_return != NULL"); return (EEL_CDK_NO_VALUE); } } while (0);  | |||
| 444 |     g_return_val_if_fail (height_return != NULL, EEL_CDK_NO_VALUE)do { if ((height_return != ((void*)0))) { } else { g_return_if_fail_warning ("Eel", ((const char*) (__func__)), "height_return != NULL") ; return (EEL_CDK_NO_VALUE); } } while (0);  | |||
| 445 | ||||
| 446 | x11_flags = XParseGeometry (string, x_return, y_return, | |||
| 447 | width_return, height_return); | |||
| 448 | ||||
| 449 | cdk_flags = EEL_CDK_NO_VALUE; | |||
| 450 | if (x11_flags & XValue0x0001) | |||
| 451 | { | |||
| 452 | cdk_flags |= EEL_CDK_X_VALUE; | |||
| 453 | } | |||
| 454 | if (x11_flags & YValue0x0002) | |||
| 455 | { | |||
| 456 | cdk_flags |= EEL_CDK_Y_VALUE; | |||
| 457 | } | |||
| 458 | if (x11_flags & WidthValue0x0004) | |||
| 459 | { | |||
| 460 | cdk_flags |= EEL_CDK_WIDTH_VALUE; | |||
| 461 | } | |||
| 462 | if (x11_flags & HeightValue0x0008) | |||
| 463 | { | |||
| 464 | cdk_flags |= EEL_CDK_HEIGHT_VALUE; | |||
| 465 | } | |||
| 466 | if (x11_flags & XNegative0x0010) | |||
| 467 | { | |||
| 468 | cdk_flags |= EEL_CDK_X_NEGATIVE; | |||
| 469 | } | |||
| 470 | if (x11_flags & YNegative0x0020) | |||
| 471 | { | |||
| 472 | cdk_flags |= EEL_CDK_Y_NEGATIVE; | |||
| 473 | } | |||
| 474 | ||||
| 475 | return cdk_flags; | |||
| 476 | } | |||
| 477 | ||||
| 478 | #if ! defined (EEL_OMIT_SELF_CHECK) | |||
| 479 | ||||
| 480 | static char * | |||
| 481 | eel_cdk_rgba_as_hex_string (CdkRGBA color) | |||
| 482 | { | |||
| 483 | return g_strdup_printf ("%04X%04X%04X", | |||
| 484 | (guint) (color.red * 65535), | |||
| 485 | (guint) (color.green * 65535), | |||
| 486 | (guint) (color.blue * 65535)); | |||
| 487 | } | |||
| 488 | ||||
| 489 | static char * | |||
| 490 | eel_self_check_parse (const char *color_spec) | |||
| 491 | { | |||
| 492 | CdkRGBA color; | |||
| 493 | ||||
| 494 | eel_cdk_rgba_parse_with_white_default (&color, color_spec); | |||
| 495 | return eel_cdk_rgba_as_hex_string (color); | |||
| 496 | } | |||
| 497 | ||||
| 498 | static char * | |||
| 499 | eel_self_check_cdk_rgb_to_color (guint32 color) | |||
| 500 | { | |||
| 501 | CdkRGBA result; | |||
| 502 | ||||
| 503 | result = eel_cdk_rgb_to_rgba (color); | |||
| 504 | ||||
| 505 | return eel_cdk_rgba_as_hex_string (result); | |||
| 506 | } | |||
| 507 | ||||
| 508 | void | |||
| 509 | eel_self_check_cdk_extensions (void) | |||
| 510 | { | |||
| 511 | /* eel_gradient_new */ | |||
| 512 |     EEL_CHECK_STRING_RESULT (eel_gradient_new ("", "", FALSE), "")do { eel_before_check ("eel_gradient_new (\"\", \"\", (0))", "eel-cdk-extensions.c" , 512); eel_check_string_result (eel_gradient_new ("", "", (0 )), ""); } while (0);  | |||
  | ||||
| 513 |     EEL_CHECK_STRING_RESULT (eel_gradient_new ("a", "b", FALSE), "a-b")do { eel_before_check ("eel_gradient_new (\"a\", \"b\", (0))" , "eel-cdk-extensions.c", 513); eel_check_string_result (eel_gradient_new ("a", "b", (0)), "a-b"); } while (0);  | |||
| 514 |     EEL_CHECK_STRING_RESULT (eel_gradient_new ("a", "b", TRUE), "a-b:h")do { eel_before_check ("eel_gradient_new (\"a\", \"b\", (!(0)))" , "eel-cdk-extensions.c", 514); eel_check_string_result (eel_gradient_new ("a", "b", (!(0))), "a-b:h"); } while (0);  | |||
| 515 |     EEL_CHECK_STRING_RESULT (eel_gradient_new ("a", "a", FALSE), "a")do { eel_before_check ("eel_gradient_new (\"a\", \"a\", (0))" , "eel-cdk-extensions.c", 515); eel_check_string_result (eel_gradient_new ("a", "a", (0)), "a"); } while (0);  | |||
| 516 |     EEL_CHECK_STRING_RESULT (eel_gradient_new ("a", "a", TRUE), "a")do { eel_before_check ("eel_gradient_new (\"a\", \"a\", (!(0)))" , "eel-cdk-extensions.c", 516); eel_check_string_result (eel_gradient_new ("a", "a", (!(0))), "a"); } while (0);  | |||
| 517 | ||||
| 518 | /* eel_gradient_is_gradient */ | |||
| 519 |     EEL_CHECK_BOOLEAN_RESULT (eel_gradient_is_gradient (""), FALSE)do { eel_before_check ("eel_gradient_is_gradient (\"\")", "eel-cdk-extensions.c" , 519); eel_check_boolean_result (eel_gradient_is_gradient ("" ), (0)); } while (0);  | |||
| 520 |     EEL_CHECK_BOOLEAN_RESULT (eel_gradient_is_gradient ("-"), TRUE)do { eel_before_check ("eel_gradient_is_gradient (\"-\")", "eel-cdk-extensions.c" , 520); eel_check_boolean_result (eel_gradient_is_gradient ("-" ), (!(0))); } while (0);  | |||
| 521 |     EEL_CHECK_BOOLEAN_RESULT (eel_gradient_is_gradient ("a"), FALSE)do { eel_before_check ("eel_gradient_is_gradient (\"a\")", "eel-cdk-extensions.c" , 521); eel_check_boolean_result (eel_gradient_is_gradient ("a" ), (0)); } while (0);  | |||
| 522 |     EEL_CHECK_BOOLEAN_RESULT (eel_gradient_is_gradient ("a-b"), TRUE)do { eel_before_check ("eel_gradient_is_gradient (\"a-b\")", "eel-cdk-extensions.c" , 522); eel_check_boolean_result (eel_gradient_is_gradient ("a-b" ), (!(0))); } while (0);  | |||
| 523 |     EEL_CHECK_BOOLEAN_RESULT (eel_gradient_is_gradient ("a-b:h"), TRUE)do { eel_before_check ("eel_gradient_is_gradient (\"a-b:h\")" , "eel-cdk-extensions.c", 523); eel_check_boolean_result (eel_gradient_is_gradient ("a-b:h"), (!(0))); } while (0);  | |||
| 524 | ||||
| 525 | /* eel_gradient_get_start_color_spec */ | |||
| 526 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_start_color_spec (""), "")do { eel_before_check ("eel_gradient_get_start_color_spec (\"\")" , "eel-cdk-extensions.c", 526); eel_check_string_result (eel_gradient_get_start_color_spec (""), ""); } while (0);  | |||
| 527 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_start_color_spec ("-"), "")do { eel_before_check ("eel_gradient_get_start_color_spec (\"-\")" , "eel-cdk-extensions.c", 527); eel_check_string_result (eel_gradient_get_start_color_spec ("-"), ""); } while (0);  | |||
| 528 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_start_color_spec ("a"), "a")do { eel_before_check ("eel_gradient_get_start_color_spec (\"a\")" , "eel-cdk-extensions.c", 528); eel_check_string_result (eel_gradient_get_start_color_spec ("a"), "a"); } while (0);  | |||
| 529 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_start_color_spec ("a-b"), "a")do { eel_before_check ("eel_gradient_get_start_color_spec (\"a-b\")" , "eel-cdk-extensions.c", 529); eel_check_string_result (eel_gradient_get_start_color_spec ("a-b"), "a"); } while (0);  | |||
| 530 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_start_color_spec ("a-"), "a")do { eel_before_check ("eel_gradient_get_start_color_spec (\"a-\")" , "eel-cdk-extensions.c", 530); eel_check_string_result (eel_gradient_get_start_color_spec ("a-"), "a"); } while (0);  | |||
| 531 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_start_color_spec ("-b"), "")do { eel_before_check ("eel_gradient_get_start_color_spec (\"-b\")" , "eel-cdk-extensions.c", 531); eel_check_string_result (eel_gradient_get_start_color_spec ("-b"), ""); } while (0);  | |||
| 532 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_start_color_spec ("a:h"), "a")do { eel_before_check ("eel_gradient_get_start_color_spec (\"a:h\")" , "eel-cdk-extensions.c", 532); eel_check_string_result (eel_gradient_get_start_color_spec ("a:h"), "a"); } while (0);  | |||
| 533 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_start_color_spec ("a:v"), "a")do { eel_before_check ("eel_gradient_get_start_color_spec (\"a:v\")" , "eel-cdk-extensions.c", 533); eel_check_string_result (eel_gradient_get_start_color_spec ("a:v"), "a"); } while (0);  | |||
| 534 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_start_color_spec ("a:c"), "a:c")do { eel_before_check ("eel_gradient_get_start_color_spec (\"a:c\")" , "eel-cdk-extensions.c", 534); eel_check_string_result (eel_gradient_get_start_color_spec ("a:c"), "a:c"); } while (0);  | |||
| 535 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_start_color_spec ("a:-b"), "a:")do { eel_before_check ("eel_gradient_get_start_color_spec (\"a:-b\")" , "eel-cdk-extensions.c", 535); eel_check_string_result (eel_gradient_get_start_color_spec ("a:-b"), "a:"); } while (0);  | |||
| 536 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_start_color_spec ("a:-b:v"), "a:")do { eel_before_check ("eel_gradient_get_start_color_spec (\"a:-b:v\")" , "eel-cdk-extensions.c", 536); eel_check_string_result (eel_gradient_get_start_color_spec ("a:-b:v"), "a:"); } while (0);  | |||
| 537 | ||||
| 538 | /* eel_gradient_get_end_color_spec */ | |||
| 539 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_end_color_spec (""), "")do { eel_before_check ("eel_gradient_get_end_color_spec (\"\")" , "eel-cdk-extensions.c", 539); eel_check_string_result (eel_gradient_get_end_color_spec (""), ""); } while (0);  | |||
| 540 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_end_color_spec ("-"), "")do { eel_before_check ("eel_gradient_get_end_color_spec (\"-\")" , "eel-cdk-extensions.c", 540); eel_check_string_result (eel_gradient_get_end_color_spec ("-"), ""); } while (0);  | |||
| 541 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_end_color_spec ("a"), "a")do { eel_before_check ("eel_gradient_get_end_color_spec (\"a\")" , "eel-cdk-extensions.c", 541); eel_check_string_result (eel_gradient_get_end_color_spec ("a"), "a"); } while (0);  | |||
| 542 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_end_color_spec ("a-b"), "b")do { eel_before_check ("eel_gradient_get_end_color_spec (\"a-b\")" , "eel-cdk-extensions.c", 542); eel_check_string_result (eel_gradient_get_end_color_spec ("a-b"), "b"); } while (0);  | |||
| 543 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_end_color_spec ("a-"), "")do { eel_before_check ("eel_gradient_get_end_color_spec (\"a-\")" , "eel-cdk-extensions.c", 543); eel_check_string_result (eel_gradient_get_end_color_spec ("a-"), ""); } while (0);  | |||
| 544 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_end_color_spec ("-b"), "b")do { eel_before_check ("eel_gradient_get_end_color_spec (\"-b\")" , "eel-cdk-extensions.c", 544); eel_check_string_result (eel_gradient_get_end_color_spec ("-b"), "b"); } while (0);  | |||
| 545 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_end_color_spec ("a:h"), "a")do { eel_before_check ("eel_gradient_get_end_color_spec (\"a:h\")" , "eel-cdk-extensions.c", 545); eel_check_string_result (eel_gradient_get_end_color_spec ("a:h"), "a"); } while (0);  | |||
| 546 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_end_color_spec ("a:v"), "a")do { eel_before_check ("eel_gradient_get_end_color_spec (\"a:v\")" , "eel-cdk-extensions.c", 546); eel_check_string_result (eel_gradient_get_end_color_spec ("a:v"), "a"); } while (0);  | |||
| 547 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_end_color_spec ("a:c"), "a:c")do { eel_before_check ("eel_gradient_get_end_color_spec (\"a:c\")" , "eel-cdk-extensions.c", 547); eel_check_string_result (eel_gradient_get_end_color_spec ("a:c"), "a:c"); } while (0);  | |||
| 548 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_end_color_spec ("a:-b"), "b")do { eel_before_check ("eel_gradient_get_end_color_spec (\"a:-b\")" , "eel-cdk-extensions.c", 548); eel_check_string_result (eel_gradient_get_end_color_spec ("a:-b"), "b"); } while (0);  | |||
| 549 |     EEL_CHECK_STRING_RESULT (eel_gradient_get_end_color_spec ("a:-b:v"), "b")do { eel_before_check ("eel_gradient_get_end_color_spec (\"a:-b:v\")" , "eel-cdk-extensions.c", 549); eel_check_string_result (eel_gradient_get_end_color_spec ("a:-b:v"), "b"); } while (0);  | |||
| 550 | ||||
| 551 | /* eel_gradient_set_left_color_spec */ | |||
| 552 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_left_color_spec ("", ""), "")do { eel_before_check ("eel_gradient_set_left_color_spec (\"\", \"\")" , "eel-cdk-extensions.c", 552); eel_check_string_result (eel_gradient_set_left_color_spec ("", ""), ""); } while (0);  | |||
| 553 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_left_color_spec ("", "a"), "a")do { eel_before_check ("eel_gradient_set_left_color_spec (\"\", \"a\")" , "eel-cdk-extensions.c", 553); eel_check_string_result (eel_gradient_set_left_color_spec ("", "a"), "a"); } while (0);  | |||
| 554 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_left_color_spec ("a", ""), "a")do { eel_before_check ("eel_gradient_set_left_color_spec (\"a\", \"\")" , "eel-cdk-extensions.c", 554); eel_check_string_result (eel_gradient_set_left_color_spec ("a", ""), "a"); } while (0);  | |||
| 555 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_left_color_spec ("a", "a"), "a")do { eel_before_check ("eel_gradient_set_left_color_spec (\"a\", \"a\")" , "eel-cdk-extensions.c", 555); eel_check_string_result (eel_gradient_set_left_color_spec ("a", "a"), "a"); } while (0);  | |||
| 556 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_left_color_spec ("a", "b"), "b-a:h")do { eel_before_check ("eel_gradient_set_left_color_spec (\"a\", \"b\")" , "eel-cdk-extensions.c", 556); eel_check_string_result (eel_gradient_set_left_color_spec ("a", "b"), "b-a:h"); } while (0);  | |||
| 557 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_left_color_spec ("a-c:v", "b"), "b-c:h")do { eel_before_check ("eel_gradient_set_left_color_spec (\"a-c:v\", \"b\")" , "eel-cdk-extensions.c", 557); eel_check_string_result (eel_gradient_set_left_color_spec ("a-c:v", "b"), "b-c:h"); } while (0);  | |||
| 558 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_left_color_spec ("a-c:v", "c"), "c")do { eel_before_check ("eel_gradient_set_left_color_spec (\"a-c:v\", \"c\")" , "eel-cdk-extensions.c", 558); eel_check_string_result (eel_gradient_set_left_color_spec ("a-c:v", "c"), "c"); } while (0);  | |||
| 559 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_left_color_spec ("a:-b:v", "d"), "d-b:h")do { eel_before_check ("eel_gradient_set_left_color_spec (\"a:-b:v\", \"d\")" , "eel-cdk-extensions.c", 559); eel_check_string_result (eel_gradient_set_left_color_spec ("a:-b:v", "d"), "d-b:h"); } while (0);  | |||
| 560 | ||||
| 561 | /* eel_gradient_set_top_color_spec */ | |||
| 562 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_top_color_spec ("", ""), "")do { eel_before_check ("eel_gradient_set_top_color_spec (\"\", \"\")" , "eel-cdk-extensions.c", 562); eel_check_string_result (eel_gradient_set_top_color_spec ("", ""), ""); } while (0);  | |||
| 563 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_top_color_spec ("", "a"), "a")do { eel_before_check ("eel_gradient_set_top_color_spec (\"\", \"a\")" , "eel-cdk-extensions.c", 563); eel_check_string_result (eel_gradient_set_top_color_spec ("", "a"), "a"); } while (0);  | |||
| 564 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_top_color_spec ("a", ""), "a")do { eel_before_check ("eel_gradient_set_top_color_spec (\"a\", \"\")" , "eel-cdk-extensions.c", 564); eel_check_string_result (eel_gradient_set_top_color_spec ("a", ""), "a"); } while (0);  | |||
| 565 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_top_color_spec ("a", "a"), "a")do { eel_before_check ("eel_gradient_set_top_color_spec (\"a\", \"a\")" , "eel-cdk-extensions.c", 565); eel_check_string_result (eel_gradient_set_top_color_spec ("a", "a"), "a"); } while (0);  | |||
| 566 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_top_color_spec ("a", "b"), "b-a")do { eel_before_check ("eel_gradient_set_top_color_spec (\"a\", \"b\")" , "eel-cdk-extensions.c", 566); eel_check_string_result (eel_gradient_set_top_color_spec ("a", "b"), "b-a"); } while (0);  | |||
| 567 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_top_color_spec ("a-c:v", "b"), "b-c")do { eel_before_check ("eel_gradient_set_top_color_spec (\"a-c:v\", \"b\")" , "eel-cdk-extensions.c", 567); eel_check_string_result (eel_gradient_set_top_color_spec ("a-c:v", "b"), "b-c"); } while (0);  | |||
| 568 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_top_color_spec ("a-c:v", "c"), "c")do { eel_before_check ("eel_gradient_set_top_color_spec (\"a-c:v\", \"c\")" , "eel-cdk-extensions.c", 568); eel_check_string_result (eel_gradient_set_top_color_spec ("a-c:v", "c"), "c"); } while (0);  | |||
| 569 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_top_color_spec ("a:-b:h", "d"), "d-b")do { eel_before_check ("eel_gradient_set_top_color_spec (\"a:-b:h\", \"d\")" , "eel-cdk-extensions.c", 569); eel_check_string_result (eel_gradient_set_top_color_spec ("a:-b:h", "d"), "d-b"); } while (0);  | |||
| 570 | ||||
| 571 | /* eel_gradient_set_right_color_spec */ | |||
| 572 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_right_color_spec ("", ""), "")do { eel_before_check ("eel_gradient_set_right_color_spec (\"\", \"\")" , "eel-cdk-extensions.c", 572); eel_check_string_result (eel_gradient_set_right_color_spec ("", ""), ""); } while (0);  | |||
| 573 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_right_color_spec ("", "a"), "a")do { eel_before_check ("eel_gradient_set_right_color_spec (\"\", \"a\")" , "eel-cdk-extensions.c", 573); eel_check_string_result (eel_gradient_set_right_color_spec ("", "a"), "a"); } while (0);  | |||
| 574 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_right_color_spec ("a", ""), "a")do { eel_before_check ("eel_gradient_set_right_color_spec (\"a\", \"\")" , "eel-cdk-extensions.c", 574); eel_check_string_result (eel_gradient_set_right_color_spec ("a", ""), "a"); } while (0);  | |||
| 575 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_right_color_spec ("a", "a"), "a")do { eel_before_check ("eel_gradient_set_right_color_spec (\"a\", \"a\")" , "eel-cdk-extensions.c", 575); eel_check_string_result (eel_gradient_set_right_color_spec ("a", "a"), "a"); } while (0);  | |||
| 576 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_right_color_spec ("a", "b"), "a-b:h")do { eel_before_check ("eel_gradient_set_right_color_spec (\"a\", \"b\")" , "eel-cdk-extensions.c", 576); eel_check_string_result (eel_gradient_set_right_color_spec ("a", "b"), "a-b:h"); } while (0);  | |||
| 577 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_right_color_spec ("a-c:v", "b"), "a-b:h")do { eel_before_check ("eel_gradient_set_right_color_spec (\"a-c:v\", \"b\")" , "eel-cdk-extensions.c", 577); eel_check_string_result (eel_gradient_set_right_color_spec ("a-c:v", "b"), "a-b:h"); } while (0);  | |||
| 578 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_right_color_spec ("a-c:v", "c"), "a-c:h")do { eel_before_check ("eel_gradient_set_right_color_spec (\"a-c:v\", \"c\")" , "eel-cdk-extensions.c", 578); eel_check_string_result (eel_gradient_set_right_color_spec ("a-c:v", "c"), "a-c:h"); } while (0);  | |||
| 579 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_right_color_spec ("a:-b:v", "d"), "a:-d:h")do { eel_before_check ("eel_gradient_set_right_color_spec (\"a:-b:v\", \"d\")" , "eel-cdk-extensions.c", 579); eel_check_string_result (eel_gradient_set_right_color_spec ("a:-b:v", "d"), "a:-d:h"); } while (0);  | |||
| 580 | ||||
| 581 | /* eel_gradient_set_bottom_color_spec */ | |||
| 582 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_bottom_color_spec ("", ""), "")do { eel_before_check ("eel_gradient_set_bottom_color_spec (\"\", \"\")" , "eel-cdk-extensions.c", 582); eel_check_string_result (eel_gradient_set_bottom_color_spec ("", ""), ""); } while (0);  | |||
| 583 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_bottom_color_spec ("", "a"), "a")do { eel_before_check ("eel_gradient_set_bottom_color_spec (\"\", \"a\")" , "eel-cdk-extensions.c", 583); eel_check_string_result (eel_gradient_set_bottom_color_spec ("", "a"), "a"); } while (0);  | |||
| 584 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_bottom_color_spec ("a", ""), "a")do { eel_before_check ("eel_gradient_set_bottom_color_spec (\"a\", \"\")" , "eel-cdk-extensions.c", 584); eel_check_string_result (eel_gradient_set_bottom_color_spec ("a", ""), "a"); } while (0);  | |||
| 585 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_bottom_color_spec ("a", "a"), "a")do { eel_before_check ("eel_gradient_set_bottom_color_spec (\"a\", \"a\")" , "eel-cdk-extensions.c", 585); eel_check_string_result (eel_gradient_set_bottom_color_spec ("a", "a"), "a"); } while (0);  | |||
| 586 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_bottom_color_spec ("a", "b"), "a-b")do { eel_before_check ("eel_gradient_set_bottom_color_spec (\"a\", \"b\")" , "eel-cdk-extensions.c", 586); eel_check_string_result (eel_gradient_set_bottom_color_spec ("a", "b"), "a-b"); } while (0);  | |||
| 587 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_bottom_color_spec ("a-c:v", "b"), "a-b")do { eel_before_check ("eel_gradient_set_bottom_color_spec (\"a-c:v\", \"b\")" , "eel-cdk-extensions.c", 587); eel_check_string_result (eel_gradient_set_bottom_color_spec ("a-c:v", "b"), "a-b"); } while (0);  | |||
| 588 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_bottom_color_spec ("a-c:v", "c"), "a-c")do { eel_before_check ("eel_gradient_set_bottom_color_spec (\"a-c:v\", \"c\")" , "eel-cdk-extensions.c", 588); eel_check_string_result (eel_gradient_set_bottom_color_spec ("a-c:v", "c"), "a-c"); } while (0);  | |||
| 589 |     EEL_CHECK_STRING_RESULT (eel_gradient_set_bottom_color_spec ("a:-b:h", "d"), "a:-d")do { eel_before_check ("eel_gradient_set_bottom_color_spec (\"a:-b:h\", \"d\")" , "eel-cdk-extensions.c", 589); eel_check_string_result (eel_gradient_set_bottom_color_spec ("a:-b:h", "d"), "a:-d"); } while (0);  | |||
| 590 | ||||
| 591 | /* eel_cdk_rgba_parse_with_white_default */ | |||
| 592 |     EEL_CHECK_STRING_RESULT (eel_self_check_parse (""), "FFFFFFFFFFFF")do { eel_before_check ("eel_self_check_parse (\"\")", "eel-cdk-extensions.c" , 592); eel_check_string_result (eel_self_check_parse (""), "FFFFFFFFFFFF" ); } while (0);  | |||
| 593 |     EEL_CHECK_STRING_RESULT (eel_self_check_parse ("a"), "FFFFFFFFFFFF")do { eel_before_check ("eel_self_check_parse (\"a\")", "eel-cdk-extensions.c" , 593); eel_check_string_result (eel_self_check_parse ("a"), "FFFFFFFFFFFF" ); } while (0);  | |||
| 594 |     EEL_CHECK_STRING_RESULT (eel_self_check_parse ("white"), "FFFFFFFFFFFF")do { eel_before_check ("eel_self_check_parse (\"white\")", "eel-cdk-extensions.c" , 594); eel_check_string_result (eel_self_check_parse ("white" ), "FFFFFFFFFFFF"); } while (0);  | |||
| 595 |     EEL_CHECK_STRING_RESULT (eel_self_check_parse ("black"), "000000000000")do { eel_before_check ("eel_self_check_parse (\"black\")", "eel-cdk-extensions.c" , 595); eel_check_string_result (eel_self_check_parse ("black" ), "000000000000"); } while (0);  | |||
| 596 |     EEL_CHECK_STRING_RESULT (eel_self_check_parse ("red"), "FFFF00000000")do { eel_before_check ("eel_self_check_parse (\"red\")", "eel-cdk-extensions.c" , 596); eel_check_string_result (eel_self_check_parse ("red") , "FFFF00000000"); } while (0);  | |||
| 597 |     EEL_CHECK_STRING_RESULT (eel_self_check_parse ("#012345"), "010123234545")do { eel_before_check ("eel_self_check_parse (\"#012345\")", "eel-cdk-extensions.c" , 597); eel_check_string_result (eel_self_check_parse ("#012345" ), "010123234545"); } while (0);  | |||
| 598 | /* EEL_CHECK_STRING_RESULT (eel_self_check_parse ("rgb:0123/4567/89AB"), "#014589"); */ | |||
| 599 | ||||
| 600 | /* eel_cdk_rgb_to_color */ | |||
| 601 |     EEL_CHECK_STRING_RESULT (eel_self_check_cdk_rgb_to_color (EEL_RGB_COLOR_RED), "FFFF00000000")do { eel_before_check ("eel_self_check_cdk_rgb_to_color (0xFF0000)" , "eel-cdk-extensions.c", 601); eel_check_string_result (eel_self_check_cdk_rgb_to_color (0xFF0000), "FFFF00000000"); } while (0);  | |||
| 602 |     EEL_CHECK_STRING_RESULT (eel_self_check_cdk_rgb_to_color (EEL_RGB_COLOR_BLACK), "000000000000")do { eel_before_check ("eel_self_check_cdk_rgb_to_color (0x000000)" , "eel-cdk-extensions.c", 602); eel_check_string_result (eel_self_check_cdk_rgb_to_color (0x000000), "000000000000"); } while (0);  | |||
| 603 |     EEL_CHECK_STRING_RESULT (eel_self_check_cdk_rgb_to_color (EEL_RGB_COLOR_WHITE), "FFFFFFFFFFFF")do { eel_before_check ("eel_self_check_cdk_rgb_to_color (0xFFFFFF)" , "eel-cdk-extensions.c", 603); eel_check_string_result (eel_self_check_cdk_rgb_to_color (0xFFFFFF), "FFFFFFFFFFFF"); } while (0);  | |||
| 604 |     EEL_CHECK_STRING_RESULT (eel_self_check_cdk_rgb_to_color (EEL_RGB_COLOR_PACK (0x01, 0x23, 0x45)), "010123234545")do { eel_before_check ("eel_self_check_cdk_rgb_to_color (( (((guint32)0xFF) << 24) | (((guint32)(0x01)) << 16) | (((guint32)(0x23)) << 8) | (((guint32)(0x45)) << 0) ))" , "eel-cdk-extensions.c", 604); eel_check_string_result (eel_self_check_cdk_rgb_to_color (( (((guint32)0xFF) << 24) | (((guint32)(0x01)) << 16) | (((guint32)(0x23)) << 8) | (((guint32)(0x45)) << 0) )), "010123234545"); } while (0);  | |||
| 605 | ||||
| 606 | /* EEL_RGBA_COLOR_PACK */ | |||
| 607 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_PACK (0xFF, 0x00, 0x00, 00), EEL_RGB_COLOR_RED)do { eel_before_check ("( (((guint32)00) << 24) | (((guint32)0xFF) << 16) | (((guint32)0x00) << 8) | (((guint32)0x00) << 0) )" , "eel-cdk-extensions.c", 607); eel_check_integer_result (( ( ((guint32)00) << 24) | (((guint32)0xFF) << 16) | ( ((guint32)0x00) << 8) | (((guint32)0x00) << 0) ), 0xFF0000); } while (0);  | |||
| 608 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_PACK (0x00, 0xFF, 0x00, 00), EEL_RGB_COLOR_GREEN)do { eel_before_check ("( (((guint32)00) << 24) | (((guint32)0x00) << 16) | (((guint32)0xFF) << 8) | (((guint32)0x00) << 0) )" , "eel-cdk-extensions.c", 608); eel_check_integer_result (( ( ((guint32)00) << 24) | (((guint32)0x00) << 16) | ( ((guint32)0xFF) << 8) | (((guint32)0x00) << 0) ), 0x00FF00); } while (0);  | |||
| 609 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_PACK (0x00, 0x00, 0xFF, 00), EEL_RGB_COLOR_BLUE)do { eel_before_check ("( (((guint32)00) << 24) | (((guint32)0x00) << 16) | (((guint32)0x00) << 8) | (((guint32)0xFF) << 0) )" , "eel-cdk-extensions.c", 609); eel_check_integer_result (( ( ((guint32)00) << 24) | (((guint32)0x00) << 16) | ( ((guint32)0x00) << 8) | (((guint32)0xFF) << 0) ), 0x0000FF); } while (0);  | |||
| 610 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_PACK (0xFF, 0xFF, 0xFF, 00), EEL_RGB_COLOR_WHITE)do { eel_before_check ("( (((guint32)00) << 24) | (((guint32)0xFF) << 16) | (((guint32)0xFF) << 8) | (((guint32)0xFF) << 0) )" , "eel-cdk-extensions.c", 610); eel_check_integer_result (( ( ((guint32)00) << 24) | (((guint32)0xFF) << 16) | ( ((guint32)0xFF) << 8) | (((guint32)0xFF) << 0) ), 0xFFFFFF); } while (0);  | |||
| 611 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_PACK (0x00, 0x00, 0x00, 00), EEL_RGB_COLOR_BLACK)do { eel_before_check ("( (((guint32)00) << 24) | (((guint32)0x00) << 16) | (((guint32)0x00) << 8) | (((guint32)0x00) << 0) )" , "eel-cdk-extensions.c", 611); eel_check_integer_result (( ( ((guint32)00) << 24) | (((guint32)0x00) << 16) | ( ((guint32)0x00) << 8) | (((guint32)0x00) << 0) ), 0x000000); } while (0);  | |||
| 612 | ||||
| 613 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_PACK (0xFF, 0x00, 0x00, 0xFF), EEL_RGBA_COLOR_OPAQUE_RED)do { eel_before_check ("( (((guint32)0xFF) << 24) | (((guint32)0xFF) << 16) | (((guint32)0x00) << 8) | (((guint32)0x00) << 0) )" , "eel-cdk-extensions.c", 613); eel_check_integer_result (( ( ((guint32)0xFF) << 24) | (((guint32)0xFF) << 16) | (((guint32)0x00) << 8) | (((guint32)0x00) << 0) ) , 0xFFFF0000); } while (0);  | |||
| 614 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_PACK (0x00, 0xFF, 0x00, 0xFF), EEL_RGBA_COLOR_OPAQUE_GREEN)do { eel_before_check ("( (((guint32)0xFF) << 24) | (((guint32)0x00) << 16) | (((guint32)0xFF) << 8) | (((guint32)0x00) << 0) )" , "eel-cdk-extensions.c", 614); eel_check_integer_result (( ( ((guint32)0xFF) << 24) | (((guint32)0x00) << 16) | (((guint32)0xFF) << 8) | (((guint32)0x00) << 0) ) , 0xFF00FF00); } while (0);  | |||
| 615 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_PACK (0x00, 0x00, 0xFF, 0xFF), EEL_RGBA_COLOR_OPAQUE_BLUE)do { eel_before_check ("( (((guint32)0xFF) << 24) | (((guint32)0x00) << 16) | (((guint32)0x00) << 8) | (((guint32)0xFF) << 0) )" , "eel-cdk-extensions.c", 615); eel_check_integer_result (( ( ((guint32)0xFF) << 24) | (((guint32)0x00) << 16) | (((guint32)0x00) << 8) | (((guint32)0xFF) << 0) ) , 0xFF0000FF); } while (0);  | |||
| 616 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_PACK (0xFF, 0xFF, 0xFF, 0xFF), EEL_RGBA_COLOR_OPAQUE_WHITE)do { eel_before_check ("( (((guint32)0xFF) << 24) | (((guint32)0xFF) << 16) | (((guint32)0xFF) << 8) | (((guint32)0xFF) << 0) )" , "eel-cdk-extensions.c", 616); eel_check_integer_result (( ( ((guint32)0xFF) << 24) | (((guint32)0xFF) << 16) | (((guint32)0xFF) << 8) | (((guint32)0xFF) << 0) ) , 0xFFFFFFFF); } while (0);  | |||
| 617 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_PACK (0x00, 0x00, 0x00, 0xFF), EEL_RGBA_COLOR_OPAQUE_BLACK)do { eel_before_check ("( (((guint32)0xFF) << 24) | (((guint32)0x00) << 16) | (((guint32)0x00) << 8) | (((guint32)0x00) << 0) )" , "eel-cdk-extensions.c", 617); eel_check_integer_result (( ( ((guint32)0xFF) << 24) | (((guint32)0x00) << 16) | (((guint32)0x00) << 8) | (((guint32)0x00) << 0) ) , 0xFF000000); } while (0);  | |||
| 618 | ||||
| 619 | /* EEL_RGB_COLOR_PACK */ | |||
| 620 |     EEL_CHECK_INTEGER_RESULT (EEL_RGB_COLOR_PACK (0xFF, 0x00, 0x00), EEL_RGBA_COLOR_OPAQUE_RED)do { eel_before_check ("( (((guint32)0xFF) << 24) | (((guint32)(0xFF)) << 16) | (((guint32)(0x00)) << 8) | (((guint32)(0x00)) << 0) )" , "eel-cdk-extensions.c", 620); eel_check_integer_result (( ( ((guint32)0xFF) << 24) | (((guint32)(0xFF)) << 16 ) | (((guint32)(0x00)) << 8) | (((guint32)(0x00)) << 0) ), 0xFFFF0000); } while (0);  | |||
| 621 |     EEL_CHECK_INTEGER_RESULT (EEL_RGB_COLOR_PACK (0x00, 0xFF, 0x00), EEL_RGBA_COLOR_OPAQUE_GREEN)do { eel_before_check ("( (((guint32)0xFF) << 24) | (((guint32)(0x00)) << 16) | (((guint32)(0xFF)) << 8) | (((guint32)(0x00)) << 0) )" , "eel-cdk-extensions.c", 621); eel_check_integer_result (( ( ((guint32)0xFF) << 24) | (((guint32)(0x00)) << 16 ) | (((guint32)(0xFF)) << 8) | (((guint32)(0x00)) << 0) ), 0xFF00FF00); } while (0);  | |||
| 622 |     EEL_CHECK_INTEGER_RESULT (EEL_RGB_COLOR_PACK (0x00, 0x00, 0xFF), EEL_RGBA_COLOR_OPAQUE_BLUE)do { eel_before_check ("( (((guint32)0xFF) << 24) | (((guint32)(0x00)) << 16) | (((guint32)(0x00)) << 8) | (((guint32)(0xFF)) << 0) )" , "eel-cdk-extensions.c", 622); eel_check_integer_result (( ( ((guint32)0xFF) << 24) | (((guint32)(0x00)) << 16 ) | (((guint32)(0x00)) << 8) | (((guint32)(0xFF)) << 0) ), 0xFF0000FF); } while (0);  | |||
| 623 |     EEL_CHECK_INTEGER_RESULT (EEL_RGB_COLOR_PACK (0xFF, 0xFF, 0xFF), EEL_RGBA_COLOR_OPAQUE_WHITE)do { eel_before_check ("( (((guint32)0xFF) << 24) | (((guint32)(0xFF)) << 16) | (((guint32)(0xFF)) << 8) | (((guint32)(0xFF)) << 0) )" , "eel-cdk-extensions.c", 623); eel_check_integer_result (( ( ((guint32)0xFF) << 24) | (((guint32)(0xFF)) << 16 ) | (((guint32)(0xFF)) << 8) | (((guint32)(0xFF)) << 0) ), 0xFFFFFFFF); } while (0);  | |||
| 624 |     EEL_CHECK_INTEGER_RESULT (EEL_RGB_COLOR_PACK (0x00, 0x00, 0x00), EEL_RGBA_COLOR_OPAQUE_BLACK)do { eel_before_check ("( (((guint32)0xFF) << 24) | (((guint32)(0x00)) << 16) | (((guint32)(0x00)) << 8) | (((guint32)(0x00)) << 0) )" , "eel-cdk-extensions.c", 624); eel_check_integer_result (( ( ((guint32)0xFF) << 24) | (((guint32)(0x00)) << 16 ) | (((guint32)(0x00)) << 8) | (((guint32)(0x00)) << 0) ), 0xFF000000); } while (0);  | |||
| 625 | ||||
| 626 | /* EEL_RGBA_COLOR_GET_R */ | |||
| 627 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_R (EEL_RGBA_COLOR_OPAQUE_RED), 0xFF)do { eel_before_check ("(((0xFFFF0000) >> 16) & 0xff)" , "eel-cdk-extensions.c", 627); eel_check_integer_result (((( 0xFFFF0000) >> 16) & 0xff), 0xFF); } while (0);  | |||
| 628 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_R (EEL_RGBA_COLOR_OPAQUE_GREEN), 0x00)do { eel_before_check ("(((0xFF00FF00) >> 16) & 0xff)" , "eel-cdk-extensions.c", 628); eel_check_integer_result (((( 0xFF00FF00) >> 16) & 0xff), 0x00); } while (0);  | |||
| 629 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_R (EEL_RGBA_COLOR_OPAQUE_BLUE), 0x00)do { eel_before_check ("(((0xFF0000FF) >> 16) & 0xff)" , "eel-cdk-extensions.c", 629); eel_check_integer_result (((( 0xFF0000FF) >> 16) & 0xff), 0x00); } while (0);  | |||
| 630 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_R (EEL_RGBA_COLOR_OPAQUE_WHITE), 0xFF)do { eel_before_check ("(((0xFFFFFFFF) >> 16) & 0xff)" , "eel-cdk-extensions.c", 630); eel_check_integer_result (((( 0xFFFFFFFF) >> 16) & 0xff), 0xFF); } while (0);  | |||
| 631 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_R (EEL_RGBA_COLOR_OPAQUE_BLACK), 0x00)do { eel_before_check ("(((0xFF000000) >> 16) & 0xff)" , "eel-cdk-extensions.c", 631); eel_check_integer_result (((( 0xFF000000) >> 16) & 0xff), 0x00); } while (0);  | |||
| 632 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_R (EEL_RGB_COLOR_RED), 0xFF)do { eel_before_check ("(((0xFF0000) >> 16) & 0xff)" , "eel-cdk-extensions.c", 632); eel_check_integer_result (((( 0xFF0000) >> 16) & 0xff), 0xFF); } while (0);  | |||
| 633 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_R (EEL_RGB_COLOR_GREEN), 0x00)do { eel_before_check ("(((0x00FF00) >> 16) & 0xff)" , "eel-cdk-extensions.c", 633); eel_check_integer_result (((( 0x00FF00) >> 16) & 0xff), 0x00); } while (0);  | |||
| 634 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_R (EEL_RGB_COLOR_BLUE), 0x00)do { eel_before_check ("(((0x0000FF) >> 16) & 0xff)" , "eel-cdk-extensions.c", 634); eel_check_integer_result (((( 0x0000FF) >> 16) & 0xff), 0x00); } while (0);  | |||
| 635 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_R (EEL_RGB_COLOR_WHITE), 0xFF)do { eel_before_check ("(((0xFFFFFF) >> 16) & 0xff)" , "eel-cdk-extensions.c", 635); eel_check_integer_result (((( 0xFFFFFF) >> 16) & 0xff), 0xFF); } while (0);  | |||
| 636 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_R (EEL_RGB_COLOR_BLACK), 0x00)do { eel_before_check ("(((0x000000) >> 16) & 0xff)" , "eel-cdk-extensions.c", 636); eel_check_integer_result (((( 0x000000) >> 16) & 0xff), 0x00); } while (0);  | |||
| 637 | ||||
| 638 | /* EEL_RGBA_COLOR_GET_G */ | |||
| 639 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_G (EEL_RGBA_COLOR_OPAQUE_RED), 0x00)do { eel_before_check ("(((0xFFFF0000) >> 8) & 0xff)" , "eel-cdk-extensions.c", 639); eel_check_integer_result (((( 0xFFFF0000) >> 8) & 0xff), 0x00); } while (0);  | |||
| 640 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_G (EEL_RGBA_COLOR_OPAQUE_GREEN), 0xFF)do { eel_before_check ("(((0xFF00FF00) >> 8) & 0xff)" , "eel-cdk-extensions.c", 640); eel_check_integer_result (((( 0xFF00FF00) >> 8) & 0xff), 0xFF); } while (0);  | |||
| 641 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_G (EEL_RGBA_COLOR_OPAQUE_BLUE), 0x00)do { eel_before_check ("(((0xFF0000FF) >> 8) & 0xff)" , "eel-cdk-extensions.c", 641); eel_check_integer_result (((( 0xFF0000FF) >> 8) & 0xff), 0x00); } while (0);  | |||
| 642 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_G (EEL_RGBA_COLOR_OPAQUE_WHITE), 0xFF)do { eel_before_check ("(((0xFFFFFFFF) >> 8) & 0xff)" , "eel-cdk-extensions.c", 642); eel_check_integer_result (((( 0xFFFFFFFF) >> 8) & 0xff), 0xFF); } while (0);  | |||
| 643 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_G (EEL_RGBA_COLOR_OPAQUE_BLACK), 0x00)do { eel_before_check ("(((0xFF000000) >> 8) & 0xff)" , "eel-cdk-extensions.c", 643); eel_check_integer_result (((( 0xFF000000) >> 8) & 0xff), 0x00); } while (0);  | |||
| 644 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_G (EEL_RGB_COLOR_RED), 0x00)do { eel_before_check ("(((0xFF0000) >> 8) & 0xff)" , "eel-cdk-extensions.c", 644); eel_check_integer_result (((( 0xFF0000) >> 8) & 0xff), 0x00); } while (0);  | |||
| 645 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_G (EEL_RGB_COLOR_GREEN), 0xFF)do { eel_before_check ("(((0x00FF00) >> 8) & 0xff)" , "eel-cdk-extensions.c", 645); eel_check_integer_result (((( 0x00FF00) >> 8) & 0xff), 0xFF); } while (0);  | |||
| 646 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_G (EEL_RGB_COLOR_BLUE), 0x00)do { eel_before_check ("(((0x0000FF) >> 8) & 0xff)" , "eel-cdk-extensions.c", 646); eel_check_integer_result (((( 0x0000FF) >> 8) & 0xff), 0x00); } while (0);  | |||
| 647 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_G (EEL_RGB_COLOR_WHITE), 0xFF)do { eel_before_check ("(((0xFFFFFF) >> 8) & 0xff)" , "eel-cdk-extensions.c", 647); eel_check_integer_result (((( 0xFFFFFF) >> 8) & 0xff), 0xFF); } while (0);  | |||
| 648 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_G (EEL_RGB_COLOR_BLACK), 0x00)do { eel_before_check ("(((0x000000) >> 8) & 0xff)" , "eel-cdk-extensions.c", 648); eel_check_integer_result (((( 0x000000) >> 8) & 0xff), 0x00); } while (0);  | |||
| 649 | ||||
| 650 | /* EEL_RGBA_COLOR_GET_B */ | |||
| 651 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_B (EEL_RGBA_COLOR_OPAQUE_RED), 0x00)do { eel_before_check ("(((0xFFFF0000) >> 0) & 0xff)" , "eel-cdk-extensions.c", 651); eel_check_integer_result (((( 0xFFFF0000) >> 0) & 0xff), 0x00); } while (0);  | |||
| 652 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_B (EEL_RGBA_COLOR_OPAQUE_GREEN), 0x00)do { eel_before_check ("(((0xFF00FF00) >> 0) & 0xff)" , "eel-cdk-extensions.c", 652); eel_check_integer_result (((( 0xFF00FF00) >> 0) & 0xff), 0x00); } while (0);  | |||
| 653 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_B (EEL_RGBA_COLOR_OPAQUE_BLUE), 0xFF)do { eel_before_check ("(((0xFF0000FF) >> 0) & 0xff)" , "eel-cdk-extensions.c", 653); eel_check_integer_result (((( 0xFF0000FF) >> 0) & 0xff), 0xFF); } while (0);  | |||
| 654 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_B (EEL_RGBA_COLOR_OPAQUE_WHITE), 0xFF)do { eel_before_check ("(((0xFFFFFFFF) >> 0) & 0xff)" , "eel-cdk-extensions.c", 654); eel_check_integer_result (((( 0xFFFFFFFF) >> 0) & 0xff), 0xFF); } while (0);  | |||
| 655 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_B (EEL_RGBA_COLOR_OPAQUE_BLACK), 0x00)do { eel_before_check ("(((0xFF000000) >> 0) & 0xff)" , "eel-cdk-extensions.c", 655); eel_check_integer_result (((( 0xFF000000) >> 0) & 0xff), 0x00); } while (0);  | |||
| 656 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_B (EEL_RGB_COLOR_RED), 0x00)do { eel_before_check ("(((0xFF0000) >> 0) & 0xff)" , "eel-cdk-extensions.c", 656); eel_check_integer_result (((( 0xFF0000) >> 0) & 0xff), 0x00); } while (0);  | |||
| 657 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_B (EEL_RGB_COLOR_GREEN), 0x00)do { eel_before_check ("(((0x00FF00) >> 0) & 0xff)" , "eel-cdk-extensions.c", 657); eel_check_integer_result (((( 0x00FF00) >> 0) & 0xff), 0x00); } while (0);  | |||
| 658 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_B (EEL_RGB_COLOR_BLUE), 0xFF)do { eel_before_check ("(((0x0000FF) >> 0) & 0xff)" , "eel-cdk-extensions.c", 658); eel_check_integer_result (((( 0x0000FF) >> 0) & 0xff), 0xFF); } while (0);  | |||
| 659 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_B (EEL_RGB_COLOR_WHITE), 0xFF)do { eel_before_check ("(((0xFFFFFF) >> 0) & 0xff)" , "eel-cdk-extensions.c", 659); eel_check_integer_result (((( 0xFFFFFF) >> 0) & 0xff), 0xFF); } while (0);  | |||
| 660 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_B (EEL_RGB_COLOR_BLACK), 0x00)do { eel_before_check ("(((0x000000) >> 0) & 0xff)" , "eel-cdk-extensions.c", 660); eel_check_integer_result (((( 0x000000) >> 0) & 0xff), 0x00); } while (0);  | |||
| 661 | ||||
| 662 | /* EEL_RGBA_COLOR_GET_A */ | |||
| 663 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_A (EEL_RGBA_COLOR_OPAQUE_RED), 0xFF)do { eel_before_check ("(((0xFFFF0000) >> 24) & 0xff)" , "eel-cdk-extensions.c", 663); eel_check_integer_result (((( 0xFFFF0000) >> 24) & 0xff), 0xFF); } while (0);  | |||
| 664 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_A (EEL_RGBA_COLOR_OPAQUE_GREEN), 0xFF)do { eel_before_check ("(((0xFF00FF00) >> 24) & 0xff)" , "eel-cdk-extensions.c", 664); eel_check_integer_result (((( 0xFF00FF00) >> 24) & 0xff), 0xFF); } while (0);  | |||
| 665 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_A (EEL_RGBA_COLOR_OPAQUE_BLUE), 0xFF)do { eel_before_check ("(((0xFF0000FF) >> 24) & 0xff)" , "eel-cdk-extensions.c", 665); eel_check_integer_result (((( 0xFF0000FF) >> 24) & 0xff), 0xFF); } while (0);  | |||
| 666 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_A (EEL_RGBA_COLOR_OPAQUE_WHITE), 0xFF)do { eel_before_check ("(((0xFFFFFFFF) >> 24) & 0xff)" , "eel-cdk-extensions.c", 666); eel_check_integer_result (((( 0xFFFFFFFF) >> 24) & 0xff), 0xFF); } while (0);  | |||
| 667 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_A (EEL_RGBA_COLOR_OPAQUE_BLACK), 0xFF)do { eel_before_check ("(((0xFF000000) >> 24) & 0xff)" , "eel-cdk-extensions.c", 667); eel_check_integer_result (((( 0xFF000000) >> 24) & 0xff), 0xFF); } while (0);  | |||
| 668 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_A (EEL_RGB_COLOR_RED), 0x00)do { eel_before_check ("(((0xFF0000) >> 24) & 0xff)" , "eel-cdk-extensions.c", 668); eel_check_integer_result (((( 0xFF0000) >> 24) & 0xff), 0x00); } while (0);  | |||
| 669 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_A (EEL_RGB_COLOR_GREEN), 0x00)do { eel_before_check ("(((0x00FF00) >> 24) & 0xff)" , "eel-cdk-extensions.c", 669); eel_check_integer_result (((( 0x00FF00) >> 24) & 0xff), 0x00); } while (0);  | |||
| 670 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_A (EEL_RGB_COLOR_BLUE), 0x00)do { eel_before_check ("(((0x0000FF) >> 24) & 0xff)" , "eel-cdk-extensions.c", 670); eel_check_integer_result (((( 0x0000FF) >> 24) & 0xff), 0x00); } while (0);  | |||
| 671 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_A (EEL_RGB_COLOR_WHITE), 0x00)do { eel_before_check ("(((0xFFFFFF) >> 24) & 0xff)" , "eel-cdk-extensions.c", 671); eel_check_integer_result (((( 0xFFFFFF) >> 24) & 0xff), 0x00); } while (0);  | |||
| 672 |     EEL_CHECK_INTEGER_RESULT (EEL_RGBA_COLOR_GET_A (EEL_RGB_COLOR_BLACK), 0x00)do { eel_before_check ("(((0x000000) >> 24) & 0xff)" , "eel-cdk-extensions.c", 672); eel_check_integer_result (((( 0x000000) >> 24) & 0xff), 0x00); } while (0);  | |||
| 673 | ||||
| 674 | } | |||
| 675 | ||||
| 676 | #endif /* ! EEL_OMIT_SELF_CHECK */ |