Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_idprop.h
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | struct { | ||||
| int matvec_size; | int matvec_size; | ||||
| const float *example; | const float *example; | ||||
| } matrix_or_vector; | } matrix_or_vector; | ||||
| } IDPropertyTemplate; | } IDPropertyTemplate; | ||||
| /* ----------- Property Array Type ---------- */ | /* ----------- Property Array Type ---------- */ | ||||
| IDProperty *IDP_NewIDPArray(const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | IDProperty *IDP_NewIDPArray(const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| IDProperty *IDP_CopyIDPArray(const IDProperty *array) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | IDProperty *IDP_CopyIDPArray(const IDProperty *array, const int flag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| /* shallow copies item */ | /* shallow copies item */ | ||||
| void IDP_SetIndexArray(struct IDProperty *prop, int index, struct IDProperty *item) ATTR_NONNULL(); | void IDP_SetIndexArray(struct IDProperty *prop, int index, struct IDProperty *item) ATTR_NONNULL(); | ||||
| struct IDProperty *IDP_GetIndexArray(struct IDProperty *prop, int index) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | struct IDProperty *IDP_GetIndexArray(struct IDProperty *prop, int index) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| void IDP_AppendArray(struct IDProperty *prop, struct IDProperty *item); | void IDP_AppendArray(struct IDProperty *prop, struct IDProperty *item); | ||||
| void IDP_ResizeIDPArray(struct IDProperty *prop, int len); | void IDP_ResizeIDPArray(struct IDProperty *prop, int len); | ||||
| /* ----------- Numeric Array Type ----------- */ | /* ----------- Numeric Array Type ----------- */ | ||||
| Show All 28 Lines | |||||
| void IDP_FreeFromGroup(struct IDProperty *group, struct IDProperty *prop) ATTR_NONNULL(); | void IDP_FreeFromGroup(struct IDProperty *group, struct IDProperty *prop) ATTR_NONNULL(); | ||||
| IDProperty *IDP_GetPropertyFromGroup(struct IDProperty *prop, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | IDProperty *IDP_GetPropertyFromGroup(struct IDProperty *prop, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| IDProperty *IDP_GetPropertyTypeFromGroup(struct IDProperty *prop, const char *name, const char type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | IDProperty *IDP_GetPropertyTypeFromGroup(struct IDProperty *prop, const char *name, const char type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| /*-------- Main Functions --------*/ | /*-------- Main Functions --------*/ | ||||
| struct IDProperty *IDP_GetProperties(struct ID *id, const bool create_if_needed) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | struct IDProperty *IDP_GetProperties(struct ID *id, const bool create_if_needed) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| struct IDProperty *IDP_CopyProperty(const struct IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | struct IDProperty *IDP_CopyProperty(const struct IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| struct IDProperty *IDP_CopyProperty_ex(const struct IDProperty *prop, const int flag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | |||||
| bool IDP_EqualsProperties_ex(IDProperty *prop1, IDProperty *prop2, const bool is_strict) ATTR_WARN_UNUSED_RESULT; | bool IDP_EqualsProperties_ex(IDProperty *prop1, IDProperty *prop2, const bool is_strict) ATTR_WARN_UNUSED_RESULT; | ||||
| bool IDP_EqualsProperties(struct IDProperty *prop1, struct IDProperty *prop2) ATTR_WARN_UNUSED_RESULT; | bool IDP_EqualsProperties(struct IDProperty *prop1, struct IDProperty *prop2) ATTR_WARN_UNUSED_RESULT; | ||||
| struct IDProperty *IDP_New(const char type, const IDPropertyTemplate *val, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | struct IDProperty *IDP_New(const char type, const IDPropertyTemplate *val, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| void IDP_FreeProperty_ex(struct IDProperty *prop, const bool do_id_user); | void IDP_FreeProperty_ex(struct IDProperty *prop, const bool do_id_user); | ||||
| Show All 39 Lines | |||||