AG_Prop * AG_SetProp (AG_Object *obj, const char *name, enum ag_prop_type type, ...)
AG_Prop * AG_SetBool (AG_Object *obj, const char *key, int value)
AG_Prop * AG_SetUint (AG_Object *obj, const char *key, Uint value)
AG_Prop * AG_SetInt (AG_Object *obj, const char *key, int value)
AG_Prop * AG_SetUint8 (AG_Object *obj, const char *key, Uint8 value)
AG_Prop * AG_SetSint8 (AG_Object *obj, const char *key, Sint8 value)
AG_Prop * AG_SetUint16 (AG_Object *obj, const char *key, Uint16 value)
AG_Prop * AG_SetSint16 (AG_Object *obj, const char *key, Sint16 value)
AG_Prop * AG_SetUint32 (AG_Object *obj, const char *key, Uint32 value)
AG_Prop * AG_SetSint32 (AG_Object *obj, const char *key, Sint32 value)
AG_Prop * AG_SetFloat (AG_Object *obj, const char *key, float value)
AG_Prop * AG_SetDouble (AG_Object *obj, const char *key, double value)
AG_Prop * AG_SetString (AG_Object *obj, const char *key, const char *s)
AG_Prop * AG_SetStringNODUP (AG_Object *obj, const char *key, const char *s)
AG_Prop * AG_SetStringFixed (AG_Object *obj, const char *key, char *buf, size_t bufSize)
AG_Prop * AG_PrtString (AG_Object *obj, const char *key, const char *fmt, ...)
AG_Prop * AG_SetPointer (AG_Object *obj, const char *key, void *ptr)
|
The
AG_SetProp() function searches for a property of type
type named
key and sets its value to data read from the next arguments, which should be
data of the specific data type associated with the property.
If the
key does not match an existing property, a new one is created.
The
AG_Set(Type)() functions all look for a property named
key and set its value to
value, returning a pointer to the modified property.
If the
key does not match any existing property, a new one is created.
|