Property manager. More...
Namespaces | |
kanzi | |
Functions | |
KANZI_API kzsError | kzuPropertyManagerSetPointer (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType, void *value) |
Set a property of propertyType associated with an object. More... | |
KANZI_API kzBool | kzuPropertyManagerGetPointer (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType, void **out_value) |
Get the value of a property of propertyType associated with an object. More... | |
KANZI_API void * | kzuPropertyManagerGetPointerDefault (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... | |
KANZI_API kzsError | kzuObjectNodeSetPointerProperty (const kanzi::Node *objectNode, const struct KzuPropertyType *propertyType, void *value) |
Set a property on an object node. More... | |
KANZI_API kzBool | kzuObjectNodeGetPointerProperty (const kanzi::Node *objectNode, const struct KzuPropertyType *propertyType, void **out_value) |
Get the value of a property of propertyType associated with an object node. More... | |
KANZI_API void * | kzuObjectNodeGetPointerPropertyDefault (const kanzi::Node *objectNode, const struct KzuPropertyType *propertyType) |
Get the value of a property associated with an object node. More... | |
Property manager.
Copyright 2008-2020 by Rightware. All rights reserved.
KANZI_API kzsError kzuPropertyManagerSetPointer | ( | const struct KzuPropertyManager * | propertyManager, |
const void * | object, | ||
const struct KzuPropertyType * | propertyType, | ||
void * | value | ||
) |
Set a property of propertyType associated with an object.
KANZI_API kzBool kzuPropertyManagerGetPointer | ( | const struct KzuPropertyManager * | propertyManager, |
const void * | object, | ||
const struct KzuPropertyType * | propertyType, | ||
void ** | 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:
KANZI_API void* kzuPropertyManagerGetPointerDefault | ( | 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 kzuPropertyManagerGetPointer then that value is returned. If the property can not be deduced, the default value from the property type is returned.
KANZI_API kzsError kzuObjectNodeSetPointerProperty | ( | const kanzi::Node * | objectNode, |
const struct KzuPropertyType * | propertyType, | ||
void * | value | ||
) |
Set a property on an object node.
KANZI_API kzBool kzuObjectNodeGetPointerProperty | ( | const kanzi::Node * | objectNode, |
const struct KzuPropertyType * | propertyType, | ||
void ** | 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:
KANZI_API void* kzuObjectNodeGetPointerPropertyDefault | ( | const kanzi::Node * | objectNode, |
const struct KzuPropertyType * | propertyType | ||
) |
Get the value of a property associated with an object node.
Behaves like kzuObjectNodeGetPointerProperty, but if the property value can not be deduced, the default value from the property type is returned.