Top | ![]() |
![]() |
![]() |
![]() |
void | ccss_style_destroy () |
bool | ccss_style_get_double () |
bool | ccss_style_get_property () |
void | ccss_style_set_property () |
bool | ccss_style_get_string () |
uint32_t | ccss_style_hash () |
void | (*ccss_style_iterator_f) () |
void | ccss_style_foreach () |
void | ccss_style_dump () |
void
ccss_style_destroy (ccss_style_t *self
);
Frees the style an all associated resources.
bool ccss_style_get_double (ccss_style_t const *self
,char const *property_name
,double *value
);
Query a numeric property.
self |
a ccss_style_t. |
|
property_name |
name of the property. |
|
value |
location to store the converted property. |
bool ccss_style_get_property (ccss_style_t const *self
,char const *property_name
,ccss_property_t const **value
);
Query a custom property.
self |
a ccss_style_t. |
|
property_name |
name of the property. |
|
value |
location to store the raw property pointer. |
void ccss_style_set_property (ccss_style_t *self
,char const *property_name
,ccss_property_t const *value
);
Insert custom property. This is for custom property implementations only.
self |
a ccss_style_t. |
|
property_name |
name of the property. |
|
value |
the property to insert into the style. |
bool ccss_style_get_string (ccss_style_t const *self
,char const *property_name
,char **value
);
Query a string property.
self |
a ccss_style_t. |
|
property_name |
name of the property. |
|
value |
location to store the converted property. |
uint32_t
ccss_style_hash (ccss_style_t const *self
);
Calculates a hash value that uniquely identifies a style. If two styles have the same hash value they are equal.
A hash value of 0 is returned for NULL
or empty styles.
void (*ccss_style_iterator_f) (ccss_style_t const *self
,char const *property_name
,void *user_data
);
Specifies the type of the function passed to ccss_style_foreach()
.
self |
a ccss_style_t. |
|
property_name |
property name , e.g. `background-color'. |
|
user_data |
user data passed to ccss_style_foreach. |
void ccss_style_foreach (ccss_style_t const *self
,ccss_style_iterator_f func
,void *user_data
);
The iterator function func
is called for each type in the style.
void
ccss_style_dump (ccss_style_t const *self
);
Print informations about the internal state of this object.