|
Kanzi Graphics Engine
|
Property manager. More...
#include <core/util/color/kzc_color.h>#include <system/kzs_types.h>#include <system/debug/kzs_error.h>#include <system/kzs_header.h>Functions | |
| kzsError | kzuPropertyColorValueSourceCreate (const struct KzuPropertyManager *propertyManager, struct KzcColorRGBA value, struct KzuPropertyColorValueSource **out_valueSource) |
| Create a Color value source. More... | |
| kzsError | kzuPropertyColorValueSourceDelete (struct KzuPropertyColorValueSource *valueSource) |
| Delete a Color value source. More... | |
| kzsError | kzuPropertyColorValueSourceClone (const struct KzuPropertyManager *propertyManager, const struct KzuPropertyColorValueSource *valueSource, struct KzuPropertyColorValueSource **out_newValueSource) |
| Copy a color value source. More... | |
| kzsError | kzuPropertyColorValueSourceCopy (struct KzuPropertyColorValueSource *target, const struct KzuPropertyColorValueSource *source) |
| Copy a color value source. More... | |
| kzsError | kzuPropertyColorValueSourceSetValue (struct KzuPropertyColorValueSource *valueSource, struct KzcColorRGBA value) |
| Set a color value source. More... | |
| struct KzcColorRGBA | kzuPropertyColorValueSourceGetValue (const struct KzuPropertyColorValueSource *valueSource) |
| Gets a color value source value. More... | |
| kzsError | kzuPropertyManagerSetColor (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType, struct KzcColorRGBA value) |
| Set a property of propertyType associated with an object. More... | |
| kzBool | kzuPropertyManagerGetColor (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType, struct KzcColorRGBA *out_value) |
| Get the value of a property of propertyType associated with an object. More... | |
| kzBool | kzuPropertyManagerGetBaseColor (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType, struct KzcColorRGBA *out_value) |
| Get the base value of a property of propertyType associated with an object. More... | |
| struct KzcColorRGBA | kzuPropertyManagerGetColorDefault (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType) |
| Get a property of propertyType associated with an object and return the default value from the property type if not found. More... | |
| kzsError | kzuObjectNodeSetColorProperty (const struct KzuObjectNode *objectNode, const struct KzuPropertyType *propertyType, struct KzcColorRGBA value) |
| Set a property on an object node. More... | |
| kzBool | kzuObjectNodeGetColorProperty (const struct KzuObjectNode *objectNode, const struct KzuPropertyType *propertyType, struct KzcColorRGBA *out_value) |
| Get the value of a property of propertyType associated with an object node. More... | |
| kzBool | kzuObjectNodeGetBaseColorProperty (const struct KzuObjectNode *objectNode, const struct KzuPropertyType *propertyType, struct KzcColorRGBA *out_value) |
| Get the base value of a property of propertyType associated with an object node. More... | |
| struct KzcColorRGBA | kzuObjectNodeGetColorPropertyDefault (const struct KzuObjectNode *objectNode, const struct KzuPropertyType *propertyType) |
| Get the value of a property associated with an object node. More... | |
Property manager.
Copyright 2008-2019 by Rightware. All rights reserved.
| kzsError kzuPropertyColorValueSourceCreate | ( | const struct KzuPropertyManager * | propertyManager, |
| struct KzcColorRGBA | value, | ||
| struct KzuPropertyColorValueSource ** | out_valueSource | ||
| ) |
Create a Color value source.
| kzsError kzuPropertyColorValueSourceDelete | ( | struct KzuPropertyColorValueSource * | valueSource) |
Delete a Color value source.
| kzsError kzuPropertyColorValueSourceClone | ( | const struct KzuPropertyManager * | propertyManager, |
| const struct KzuPropertyColorValueSource * | valueSource, | ||
| struct KzuPropertyColorValueSource ** | out_newValueSource | ||
| ) |
Copy a color value source.
| kzsError kzuPropertyColorValueSourceCopy | ( | struct KzuPropertyColorValueSource * | target, |
| const struct KzuPropertyColorValueSource * | source | ||
| ) |
Copy a color value source.
| kzsError kzuPropertyColorValueSourceSetValue | ( | struct KzuPropertyColorValueSource * | valueSource, |
| struct KzcColorRGBA | value | ||
| ) |
Set a color value source.
| struct KzcColorRGBA kzuPropertyColorValueSourceGetValue | ( | const struct KzuPropertyColorValueSource * | valueSource) |
Gets a color value source value.
| kzsError kzuPropertyManagerSetColor | ( | const struct KzuPropertyManager * | propertyManager, |
| const void * | object, | ||
| const struct KzuPropertyType * | propertyType, | ||
| struct KzcColorRGBA | value | ||
| ) |
Set a property of propertyType associated with an object.
| kzBool kzuPropertyManagerGetColor | ( | const struct KzuPropertyManager * | propertyManager, |
| const void * | object, | ||
| const struct KzuPropertyType * | propertyType, | ||
| struct KzcColorRGBA * | out_value | ||
| ) |
Get the value of a property of propertyType associated with an object.
Returns KZ_TRUE if the property is found and KZ_FALSE otherwise. The return value is calculated based on the following steps:
| kzBool kzuPropertyManagerGetBaseColor | ( | const struct KzuPropertyManager * | propertyManager, |
| const void * | object, | ||
| const struct KzuPropertyType * | propertyType, | ||
| struct KzcColorRGBA * | out_value | ||
| ) |
Get the base value of a property of propertyType associated with an object.
Returns KZ_TRUE if the property is found and KZ_FALSE otherwise.
| struct KzcColorRGBA kzuPropertyManagerGetColorDefault | ( | const struct KzuPropertyManager * | propertyManager, |
| const void * | object, | ||
| const struct KzuPropertyType * | propertyType | ||
| ) |
Get a property of propertyType associated with an object and return the default value from the property type if not found.
If the property value can be deduced with kzuPropertyManagerGetColor then that value is returned. If the property can not be deduced, the default value from the property type is returned.
| kzsError kzuObjectNodeSetColorProperty | ( | const struct KzuObjectNode * | objectNode, |
| const struct KzuPropertyType * | propertyType, | ||
| struct KzcColorRGBA | value | ||
| ) |
Set a property on an object node.
| kzBool kzuObjectNodeGetColorProperty | ( | const struct KzuObjectNode * | objectNode, |
| const struct KzuPropertyType * | propertyType, | ||
| struct KzcColorRGBA * | out_value | ||
| ) |
Get the value of a property of propertyType associated with an object node.
Returns KZ_TRUE if the property is found and KZ_FALSE otherwise. The return value is calculated based on the following steps:
| kzBool kzuObjectNodeGetBaseColorProperty | ( | const struct KzuObjectNode * | objectNode, |
| const struct KzuPropertyType * | propertyType, | ||
| struct KzcColorRGBA * | out_value | ||
| ) |
Get the base value of a property of propertyType associated with an object node.
Behaves like kzuObjectNodeGetColorProperty but does not take animation into account.
| struct KzcColorRGBA kzuObjectNodeGetColorPropertyDefault | ( | const struct KzuObjectNode * | objectNode, |
| const struct KzuPropertyType * | propertyType | ||
| ) |
Get the value of a property associated with an object node.
Behaves like kzuObjectNodeGetColorProperty, but if the property value can not be deduced, the default value from the property type is returned.