| 1 | /* |
| 2 | * Copyright © 2011 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: Benjamin Otte <[email protected]> |
| 18 | */ |
| 19 | |
| 20 | #include "config.h"cxx . . $ `<file>/build/config.h`/ |
| 21 | |
| 22 | #include "gtkcssstylepropertyprivate.h"cxx . . $ `<file>/gtk/gtkcssstylepropertyprivate.h`/ |
| 23 | |
| 24 | #include "gtkcssenumvalueprivate.h"cxx . . $ `<file>/gtk/gtkcssenumvalueprivate.h`/ |
| 25 | #include "gtkcssinheritvalueprivate.h"cxx . . $ `<file>/gtk/gtkcssinheritvalueprivate.h`/ |
| 26 | #include "gtkcssinitialvalueprivate.h"cxx . . $ `<file>/gtk/gtkcssinitialvalueprivate.h`/ |
| 27 | #include "gtkcsstypesprivate.h"cxx . . $ `<file>/gtk/gtkcsstypesprivate.h`/ |
| 28 | #include "gtkcssunsetvalueprivate.h"cxx . . $ `<file>/gtk/gtkcssunsetvalueprivate.h`/ |
| 29 | #include "gtkprivatetypebuiltins.h"cxx . . $ `<file>/build/gtk/gtkprivatetypebuiltins.h`/ |
| 30 | #include "gtkprivate.h"cxx . . $ `<file>/gtk/gtkprivate.h`/ |
| 31 | |
| 32 | enumcxx . . $ $anonymous_type_2b8fa02e8857f706_0# { |
| 33 | PROP_0cxx . . $ PROP_0., |
| 34 | PROP_ANIMATEDcxx . . $ PROP_ANIMATED., |
| 35 | PROP_AFFECTScxx . . $ PROP_AFFECTS., |
| 36 | PROP_IDcxx . . $ PROP_ID., |
| 37 | PROP_INHERITcxx . . $ PROP_INHERIT., |
| 38 | PROP_INITIALcxx . . $ PROP_INITIAL. |
| 39 | }; |
| 40 | |
| 41 | G_DEFINE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:1834:9`! (GtkCssStyleProperty, _gtk_css_style_property, GTK_TYPE_STYLE_PROPERTYcxx . . $ `gtk/gtkstylepropertyprivate.h:27:9`!) |
| 42 | |
| 43 | static GtkCssStylePropertyClasscxx . . $ GtkCssStylePropertyClass# *gtk_css_style_property_classcxx . . $ gtk_css_style_property_class. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 44 | |
| 45 | static void |
| 46 | gtk_css_style_property_constructedcxx . . $ gtk_css_style_property_constructed(6087475fa43034d3). (GObjectcxx . . $ GObject# *object) |
| 47 | { |
| 48 | GtkCssStylePropertycxx . . $ GtkCssStyleProperty# *property = GTK_CSS_STYLE_PROPERTYcxx . . $ `gtk/gtkcssstylepropertyprivate.h:27:9`! (object); |
| 49 | GtkCssStylePropertyClasscxx . . $ GtkCssStylePropertyClass# *klass = GTK_CSS_STYLE_PROPERTY_GET_CLASScxx . . $ `gtk/gtkcssstylepropertyprivate.h:31:9`! (property); |
| 50 | |
| 51 | property->idcxx . . $ _GtkCssStyleProperty#id. = klass->style_propertiescxx . . $ _GtkCssStylePropertyClass#style_properties.->lencxx . . $ _GPtrArray#len.; |
| 52 | g_ptr_array_addcxx . . $ g_ptr_array_add(3cd73f70a4ada9). (klass->style_propertiescxx . . $ _GtkCssStylePropertyClass#style_properties., property); |
| 53 | |
| 54 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (_gtk_css_style_property_parent_class)->constructedcxx . . $ _GObjectClass#constructed. (object); |
| 55 | } |
| 56 | |
| 57 | static void |
| 58 | gtk_css_style_property_set_propertycxx . . $ gtk_css_style_property_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object, |
| 59 | guintcxx . . $ guint# prop_id, |
| 60 | const GValuecxx . . $ GValue# *value, |
| 61 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 62 | { |
| 63 | GtkCssStylePropertycxx . . $ GtkCssStyleProperty# *property = GTK_CSS_STYLE_PROPERTYcxx . . $ `gtk/gtkcssstylepropertyprivate.h:27:9`! (object); |
| 64 | |
| 65 | switch (prop_id) |
| 66 | { |
| 67 | case PROP_ANIMATEDcxx . . $ PROP_ANIMATED.: |
| 68 | property->animatedcxx . . $ _GtkCssStyleProperty#animated. = g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value); |
| 69 | break; |
| 70 | case PROP_AFFECTScxx . . $ PROP_AFFECTS.: |
| 71 | property->affectscxx . . $ _GtkCssStyleProperty#affects. = g_value_get_flagscxx . . $ g_value_get_flags(1e175b1568bd83e1). (value); |
| 72 | break; |
| 73 | case PROP_INHERITcxx . . $ PROP_INHERIT.: |
| 74 | property->inheritcxx . . $ _GtkCssStyleProperty#inherit. = g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value); |
| 75 | break; |
| 76 | case PROP_INITIALcxx . . $ PROP_INITIAL.: |
| 77 | property->initial_valuecxx . . $ _GtkCssStyleProperty#initial_value. = g_value_dup_boxedcxx . . $ g_value_dup_boxed(e12dff36056c2cce). (value); |
| 78 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (property->initial_value != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 79 | break; |
| 80 | default: |
| 81 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec); |
| 82 | break; |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | static void |
| 87 | gtk_css_style_property_get_propertycxx . . $ gtk_css_style_property_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object, |
| 88 | guintcxx . . $ guint# prop_id, |
| 89 | GValuecxx . . $ GValue# *value, |
| 90 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 91 | { |
| 92 | GtkCssStylePropertycxx . . $ GtkCssStyleProperty# *property = GTK_CSS_STYLE_PROPERTYcxx . . $ `gtk/gtkcssstylepropertyprivate.h:27:9`! (object); |
| 93 | |
| 94 | switch (prop_id) |
| 95 | { |
| 96 | case PROP_ANIMATEDcxx . . $ PROP_ANIMATED.: |
| 97 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, property->animatedcxx . . $ _GtkCssStyleProperty#animated.); |
| 98 | break; |
| 99 | case PROP_AFFECTScxx . . $ PROP_AFFECTS.: |
| 100 | g_value_set_flagscxx . . $ g_value_set_flags(f81c5c84daf56975). (value, property->affectscxx . . $ _GtkCssStyleProperty#affects.); |
| 101 | break; |
| 102 | case PROP_IDcxx . . $ PROP_ID.: |
| 103 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, property->idcxx . . $ _GtkCssStyleProperty#id.); |
| 104 | break; |
| 105 | case PROP_INHERITcxx . . $ PROP_INHERIT.: |
| 106 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, property->inheritcxx . . $ _GtkCssStyleProperty#inherit.); |
| 107 | break; |
| 108 | case PROP_INITIALcxx . . $ PROP_INITIAL.: |
| 109 | g_value_set_boxedcxx . . $ g_value_set_boxed(806599f585dac18b). (value, property->initial_valuecxx . . $ _GtkCssStyleProperty#initial_value.); |
| 110 | break; |
| 111 | default: |
| 112 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec); |
| 113 | break; |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | static GtkCssValuecxx . . $ GtkCssValue# * |
| 118 | gtk_css_style_property_parse_valuecxx . . $ gtk_css_style_property_parse_value(a2b8e3adf1e26f01). (GtkStylePropertycxx . . $ GtkStyleProperty# *property, |
| 119 | GtkCssParsercxx . . $ GtkCssParser# *parser) |
| 120 | { |
| 121 | GtkCssStylePropertycxx . . $ GtkCssStyleProperty# *style_property = GTK_CSS_STYLE_PROPERTYcxx . . $ `gtk/gtkcssstylepropertyprivate.h:27:9`! (property); |
| 122 | |
| 123 | if (gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "initial")) |
| 124 | { |
| 125 | /* the initial value can be explicitly specified with the |
| 126 | * ‘initial’ keyword which all properties accept. |
| 127 | */ |
| 128 | return _gtk_css_initial_value_newcxx . . $ _gtk_css_initial_value_new(a758d2da92904427). (); |
| 129 | } |
| 130 | else if (gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "inherit")) |
| 131 | { |
| 132 | /* All properties accept the ‘inherit’ value which |
| 133 | * explicitly specifies that the value will be determined |
| 134 | * by inheritance. The ‘inherit’ value can be used to |
| 135 | * strengthen inherited values in the cascade, and it can |
| 136 | * also be used on properties that are not normally inherited. |
| 137 | */ |
| 138 | return _gtk_css_inherit_value_newcxx . . $ _gtk_css_inherit_value_new(a758d2da92904427). (); |
| 139 | } |
| 140 | else if (gtk_css_parser_try_identcxx . . $ gtk_css_parser_try_ident(b5471d620daa5380). (parser, "unset")) |
| 141 | { |
| 142 | /* If the cascaded value of a property is the unset keyword, |
| 143 | * then if it is an inherited property, this is treated as |
| 144 | * inherit, and if it is not, this is treated as initial. |
| 145 | */ |
| 146 | return _gtk_css_unset_value_newcxx . . $ _gtk_css_unset_value_new(a758d2da92904427). (); |
| 147 | } |
| 148 | |
| 149 | return (* style_property->parse_valuecxx . . $ _GtkCssStyleProperty#parse_value.) (style_property, parser); |
| 150 | } |
| 151 | |
| 152 | static void |
| 153 | _gtk_css_style_property_class_initcxx . . $ _gtk_css_style_property_class_init(570c5f2b9d2698ea). (GtkCssStylePropertyClasscxx . . $ GtkCssStylePropertyClass# *klass) |
| 154 | { |
| 155 | GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass); |
| 156 | GtkStylePropertyClasscxx . . $ GtkStylePropertyClass# *property_class = GTK_STYLE_PROPERTY_CLASScxx . . $ `gtk/gtkstylepropertyprivate.h:29:9`! (klass); |
| 157 | |
| 158 | object_class->constructedcxx . . $ _GObjectClass#constructed. = gtk_css_style_property_constructedcxx . . $ gtk_css_style_property_constructed(6087475fa43034d3).; |
| 159 | object_class->set_propertycxx . . $ _GObjectClass#set_property. = gtk_css_style_property_set_propertycxx . . $ gtk_css_style_property_set_property(d7c4bb29f36c0dc4).; |
| 160 | object_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_css_style_property_get_propertycxx . . $ gtk_css_style_property_get_property(cee2c52f22407c66).; |
| 161 | |
| 162 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 163 | PROP_ANIMATEDcxx . . $ PROP_ANIMATED., |
| 164 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("animated", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 165 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 166 | G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_CONSTRUCT_ONLYcxx . . $ G_PARAM_CONSTRUCT_ONLY. | G_PARAM_STATIC_STRINGScxx . . $ `<external>/7453068347527694854/gparam.h:187:9`!)); |
| 167 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 168 | PROP_AFFECTScxx . . $ PROP_AFFECTS., |
| 169 | g_param_spec_flagscxx . . $ g_param_spec_flags(8782cb85a73af5de). ("affects", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 170 | GTK_TYPE_CSS_AFFECTScxx . . $ `build/gtk/gtkprivatetypebuiltins.h:18:9`!, |
| 171 | 0, |
| 172 | G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_CONSTRUCT_ONLYcxx . . $ G_PARAM_CONSTRUCT_ONLY. | G_PARAM_STATIC_STRINGScxx . . $ `<external>/7453068347527694854/gparam.h:187:9`!)); |
| 173 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 174 | PROP_IDcxx . . $ PROP_ID., |
| 175 | g_param_spec_uintcxx . . $ g_param_spec_uint(503a1013c8de17d5). ("id", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 176 | 0, G_MAXUINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:40:9`!, 0, |
| 177 | G_PARAM_READABLEcxx . . $ G_PARAM_READABLE. | G_PARAM_STATIC_STRINGScxx . . $ `<external>/7453068347527694854/gparam.h:187:9`!)); |
| 178 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 179 | PROP_INHERITcxx . . $ PROP_INHERIT., |
| 180 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("inherit", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 181 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 182 | G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_CONSTRUCT_ONLYcxx . . $ G_PARAM_CONSTRUCT_ONLY. | G_PARAM_STATIC_STRINGScxx . . $ `<external>/7453068347527694854/gparam.h:187:9`!)); |
| 183 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26). (object_class, |
| 184 | PROP_INITIALcxx . . $ PROP_INITIAL., |
| 185 | g_param_spec_boxedcxx . . $ g_param_spec_boxed(faf99966f027a127). ("initial-value", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 186 | GTK_TYPE_CSS_VALUEcxx . . $ `gtk/gtkcssvalueprivate.h:30:9`!, |
| 187 | G_PARAM_READWRITEcxx . . $ G_PARAM_READWRITE. | G_PARAM_CONSTRUCT_ONLYcxx . . $ G_PARAM_CONSTRUCT_ONLY. | G_PARAM_STATIC_STRINGScxx . . $ `<external>/7453068347527694854/gparam.h:187:9`!)); |
| 188 | |
| 189 | property_class->parse_valuecxx . . $ _GtkStylePropertyClass#parse_value. = gtk_css_style_property_parse_valuecxx . . $ gtk_css_style_property_parse_value(a2b8e3adf1e26f01).; |
| 190 | |
| 191 | klass->style_propertiescxx . . $ _GtkCssStylePropertyClass#style_properties. = g_ptr_array_newcxx . . $ g_ptr_array_new(61b5db61367ab387). (); |
| 192 | |
| 193 | gtk_css_style_property_classcxx . . $ gtk_css_style_property_class. = klass; |
| 194 | } |
| 195 | |
| 196 | static GtkCssValuecxx . . $ GtkCssValue# * |
| 197 | gtk_css_style_property_real_parse_valuecxx . . $ gtk_css_style_property_real_parse_value(c21ba008722dffba). (GtkCssStylePropertycxx . . $ GtkCssStyleProperty# *property, |
| 198 | GtkCssParsercxx . . $ GtkCssParser# *parser) |
| 199 | { |
| 200 | g_assert_not_reachedcxx . . $ `<external>/15287032793271088244/gtestutils.h:274:9`! (); |
| 201 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 202 | } |
| 203 | |
| 204 | static void |
| 205 | _gtk_css_style_property_initcxx . . $ _gtk_css_style_property_init(c48b6715cd3d53da). (GtkCssStylePropertycxx . . $ GtkCssStyleProperty# *property) |
| 206 | { |
| 207 | property->parse_valuecxx . . $ _GtkCssStyleProperty#parse_value. = gtk_css_style_property_real_parse_valuecxx . . $ gtk_css_style_property_real_parse_value(c21ba008722dffba).; |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * _gtk_css_style_property_get_n_properties: |
| 212 | * |
| 213 | * Gets the number of style properties. This number can increase when new |
| 214 | * theme engines are loaded. Shorthand properties are not included here. |
| 215 | * |
| 216 | * Returns: The number of style properties. |
| 217 | **/ |
| 218 | guintcxx . . $ guint# |
| 219 | _gtk_css_style_property_get_n_propertiescxx . . $ _gtk_css_style_property_get_n_properties(db52760e79bf9054). (void) |
| 220 | { |
| 221 | if (G_UNLIKELYcxx . . $ `<external>/12741050725406041920/gmacros.h:1285:9`! (gtk_css_style_property_class == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) |
| 222 | { |
| 223 | _gtk_style_property_init_propertiescxx . . $ _gtk_style_property_init_properties(49f6e7a06ebc5aa8). (); |
| 224 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (gtk_css_style_property_class); |
| 225 | } |
| 226 | |
| 227 | return gtk_css_style_property_classcxx . . $ gtk_css_style_property_class.->style_propertiescxx . . $ _GtkCssStylePropertyClass#style_properties.->lencxx . . $ _GPtrArray#len.; |
| 228 | } |
| 229 | |
| 230 | /** |
| 231 | * _gtk_css_style_property_lookup_by_id: |
| 232 | * @id: the id of the property |
| 233 | * |
| 234 | * Gets the style property with the given id. All style properties (but not |
| 235 | * shorthand properties) are indexable by id so that it’s easy to use arrays |
| 236 | * when doing style lookups. |
| 237 | * |
| 238 | * Returns: (transfer none): The style property with the given id |
| 239 | **/ |
| 240 | GtkCssStylePropertycxx . . $ GtkCssStyleProperty# * |
| 241 | _gtk_css_style_property_lookup_by_idcxx . . $ _gtk_css_style_property_lookup_by_id(3a8a0151d1e9c56). (guintcxx . . $ guint# id) |
| 242 | { |
| 243 | |
| 244 | if (G_UNLIKELYcxx . . $ `<external>/12741050725406041920/gmacros.h:1285:9`! (gtk_css_style_property_class == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) |
| 245 | { |
| 246 | _gtk_style_property_init_propertiescxx . . $ _gtk_style_property_init_properties(49f6e7a06ebc5aa8). (); |
| 247 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (gtk_css_style_property_class); |
| 248 | } |
| 249 | |
| 250 | gtk_internal_return_val_if_failcxx . . $ `gtk/gtkprivate.h:51:9`! (id < gtk_css_style_property_class->style_properties->len, NULL); |
| 251 | |
| 252 | return g_ptr_array_indexcxx . . $ `<external>/13165152102340786875/garray.h:149:12`! (gtk_css_style_property_class->style_properties, id); |
| 253 | } |
| 254 | |
| 255 | /** |
| 256 | * _gtk_css_style_property_is_inherit: |
| 257 | * @property: the property |
| 258 | * |
| 259 | * Queries if the given @property is inherited. See the |
| 260 | * [CSS Documentation](http://www.w3.org/TR/css3-cascade/#inheritance) |
| 261 | * for an explanation of this concept. |
| 262 | * |
| 263 | * Returns: %TRUE if the property is inherited by default. |
| 264 | **/ |
| 265 | gbooleancxx . . $ gboolean# |
| 266 | _gtk_css_style_property_is_inheritcxx . . $ _gtk_css_style_property_is_inherit(abb2e88748064a78). (GtkCssStylePropertycxx . . $ GtkCssStyleProperty# *property) |
| 267 | { |
| 268 | gtk_internal_return_val_if_failcxx . . $ `gtk/gtkprivate.h:51:9`! (GTK_IS_CSS_STYLE_PROPERTY (property), FALSE); |
| 269 | |
| 270 | return property->inheritcxx . . $ _GtkCssStyleProperty#inherit.; |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * _gtk_css_style_property_is_animated: |
| 275 | * @property: the property |
| 276 | * |
| 277 | * Queries if the given @property can be is animated. See the |
| 278 | * [CSS Documentation](http://www.w3.org/TR/css3-transitions/#animatable-css) |
| 279 | * for animatable properties. |
| 280 | * |
| 281 | * Returns: %TRUE if the property can be animated. |
| 282 | **/ |
| 283 | gbooleancxx . . $ gboolean# |
| 284 | _gtk_css_style_property_is_animatedcxx . . $ _gtk_css_style_property_is_animated(abb2e88748064a78). (GtkCssStylePropertycxx . . $ GtkCssStyleProperty# *property) |
| 285 | { |
| 286 | gtk_internal_return_val_if_failcxx . . $ `gtk/gtkprivate.h:51:9`! (GTK_IS_CSS_STYLE_PROPERTY (property), FALSE); |
| 287 | |
| 288 | return property->animatedcxx . . $ _GtkCssStyleProperty#animated.; |
| 289 | } |
| 290 | |
| 291 | /** |
| 292 | * _gtk_css_style_property_get_affects: |
| 293 | * @property: the property |
| 294 | * |
| 295 | * Returns all the things this property affects. See @GtkCssAffects for what |
| 296 | * the flags mean. |
| 297 | * |
| 298 | * Returns: The things this property affects. |
| 299 | **/ |
| 300 | GtkCssAffectscxx . . $ GtkCssAffects# |
| 301 | _gtk_css_style_property_get_affectscxx . . $ _gtk_css_style_property_get_affects(975a81d36f529370). (GtkCssStylePropertycxx . . $ GtkCssStyleProperty# *property) |
| 302 | { |
| 303 | gtk_internal_return_val_if_failcxx . . $ `gtk/gtkprivate.h:51:9`! (GTK_IS_CSS_STYLE_PROPERTY (property), 0); |
| 304 | |
| 305 | return property->affectscxx . . $ _GtkCssStyleProperty#affects.; |
| 306 | } |
| 307 | |
| 308 | /** |
| 309 | * _gtk_css_style_property_get_id: |
| 310 | * @property: the property |
| 311 | * |
| 312 | * Gets the id for the given property. IDs are used to allow using arrays |
| 313 | * for style lookups. |
| 314 | * |
| 315 | * Returns: The id of the property |
| 316 | **/ |
| 317 | guintcxx . . $ guint# |
| 318 | _gtk_css_style_property_get_idcxx . . $ _gtk_css_style_property_get_id(5e035efe1abc7d31). (GtkCssStylePropertycxx . . $ GtkCssStyleProperty# *property) |
| 319 | { |
| 320 | gtk_internal_return_val_if_failcxx . . $ `gtk/gtkprivate.h:51:9`! (GTK_IS_CSS_STYLE_PROPERTY (property), 0); |
| 321 | |
| 322 | return property->idcxx . . $ _GtkCssStyleProperty#id.; |
| 323 | } |
| 324 | |
| 325 | /** |
| 326 | * _gtk_css_style_property_get_initial_value: |
| 327 | * @property: the property |
| 328 | * |
| 329 | * Queries the initial value of the given @property. See the |
| 330 | * [CSS Documentation](http://www.w3.org/TR/css3-cascade/#initial) |
| 331 | * for an explanation of this concept. |
| 332 | * |
| 333 | * Returns: (transfer none): the initial value. The value will never change. |
| 334 | **/ |
| 335 | GtkCssValuecxx . . $ GtkCssValue# * |
| 336 | _gtk_css_style_property_get_initial_valuecxx . . $ _gtk_css_style_property_get_initial_value(caa1ffdc0e79392e). (GtkCssStylePropertycxx . . $ GtkCssStyleProperty# *property) |
| 337 | { |
| 338 | gtk_internal_return_val_if_failcxx . . $ `gtk/gtkprivate.h:51:9`! (GTK_IS_CSS_STYLE_PROPERTY (property), NULL); |
| 339 | |
| 340 | return property->initial_valuecxx . . $ _GtkCssStyleProperty#initial_value.; |
| 341 | } |