4 #ifndef __RNA_ACCESS_H__
5 #define __RNA_ACCESS_H__
142 const char *identifier,
372 const char *edit_text,
374 void *visit_user_data);
454 const char *propname,
461 const char *propname,
515 const char *enumname);
525 PointerRNA *
ptr,
const char *name,
char *fixedbuf,
int fixedlen,
int *r_len);
543 #define RNA_BEGIN(sptr, itemptr, propname) \
545 CollectionPropertyIterator rna_macro_iter; \
546 for (RNA_collection_begin(sptr, propname, &rna_macro_iter); rna_macro_iter.valid; \
547 RNA_property_collection_next(&rna_macro_iter)) { \
548 PointerRNA itemptr = rna_macro_iter.ptr;
552 RNA_property_collection_end(&rna_macro_iter); \
556 #define RNA_PROP_BEGIN(sptr, itemptr, prop) \
558 CollectionPropertyIterator rna_macro_iter; \
559 for (RNA_property_collection_begin(sptr, prop, &rna_macro_iter); rna_macro_iter.valid; \
560 RNA_property_collection_next(&rna_macro_iter)) { \
561 PointerRNA itemptr = rna_macro_iter.ptr;
563 #define RNA_PROP_END \
565 RNA_property_collection_end(&rna_macro_iter); \
569 #define RNA_STRUCT_BEGIN(sptr, prop) \
571 CollectionPropertyIterator rna_macro_iter; \
572 for (RNA_property_collection_begin( \
573 sptr, RNA_struct_iterator_property((sptr)->type), &rna_macro_iter); \
574 rna_macro_iter.valid; \
575 RNA_property_collection_next(&rna_macro_iter)) { \
576 PropertyRNA *prop = (PropertyRNA *)rna_macro_iter.ptr.data;
578 #define RNA_STRUCT_BEGIN_SKIP_RNA_TYPE(sptr, prop) \
580 CollectionPropertyIterator rna_macro_iter; \
581 RNA_property_collection_begin( \
582 sptr, RNA_struct_iterator_property((sptr)->type), &rna_macro_iter); \
583 if (rna_macro_iter.valid) { \
584 RNA_property_collection_next(&rna_macro_iter); \
586 for (; rna_macro_iter.valid; RNA_property_collection_next(&rna_macro_iter)) { \
587 PropertyRNA *prop = (PropertyRNA *)rna_macro_iter.ptr.data;
589 #define RNA_STRUCT_END \
591 RNA_property_collection_end(&rna_macro_iter); \
650 int max_prop_length);
665 const char *identifier);
705 const char *identifier,
717 const
char *identifier,
729 const
char *identifier,
734 const
char *text_ctxt,
744 #define RNA_POINTER_INVALIDATE(ptr) \
747 (ptr)->type = NULL; \
748 (ptr)->owner_id = NULL; \
754 # define RNA_warning(format, args...) _RNA_warning("%s: " format "\n", __func__, ##args)
756 # define RNA_warning(format, ...) _RNA_warning("%s: " format "\n", __FUNCTION__, __VA_ARGS__)
839 const char *root_path,
840 size_t root_path_len,
878 struct ID **r_owner_id);
#define ATTR_NONNULL(...)
size_t ATTR_PRINTF_FORMAT(3, 4)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
bool RNA_property_enum_item_from_value(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, int value, EnumPropertyItem *r_item)
StructUnregisterFunc RNA_struct_unregister(StructRNA *type)
float RNA_property_float_get(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_collection_lookup_int_has_fn(PropertyRNA *prop)
void RNA_boolean_set_array(PointerRNA *ptr, const char *name, const bool *values)
StructRegisterFunc RNA_struct_register(StructRNA *type)
bool RNA_property_enum_identifier(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, int value, const char **identifier)
void RNA_property_enum_items_gettexted(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
const char * RNA_struct_identifier(const StructRNA *type)
void RNA_property_float_get_default_array(PointerRNA *ptr, PropertyRNA *prop, float *values)
bool RNA_property_editable(PointerRNA *ptr, PropertyRNA *prop)
void RNA_struct_override_apply(struct Main *bmain, struct PointerRNA *ptr_dst, struct PointerRNA *ptr_src, struct PointerRNA *ptr_storage, struct IDOverrideLibrary *override, eRNAOverrideApplyFlag flag)
void RNA_parameter_list_end(ParameterIterator *iter)
void RNA_int_set_array(PointerRNA *ptr, const char *name, const int *values)
const char * RNA_function_identifier(FunctionRNA *func)
void RNA_property_boolean_set_index(PointerRNA *ptr, PropertyRNA *prop, int index, bool value)
void RNA_property_int_set(PointerRNA *ptr, PropertyRNA *prop, int value)
ParameterList * RNA_parameter_list_create(ParameterList *parms, PointerRNA *ptr, FunctionRNA *func)
FunctionRNA * RNA_struct_find_function(StructRNA *srna, const char *identifier)
const struct ListBase * RNA_function_defined_parameters(FunctionRNA *func)
void RNA_property_int_ui_range(PointerRNA *ptr, PropertyRNA *prop, int *softmin, int *softmax, int *step)
const char * RNA_property_description(PropertyRNA *prop)
PointerRNA void RNA_property_pointer_set(PointerRNA *ptr, PropertyRNA *prop, PointerRNA ptr_value, struct ReportList *reports) ATTR_NONNULL(1
bool RNA_property_array_check(PropertyRNA *prop)
bool RNA_struct_is_a(const StructRNA *type, const StructRNA *srna)
int RNA_property_collection_lookup_string_index(PointerRNA *ptr, PropertyRNA *prop, const char *key, PointerRNA *r_ptr, int *r_index)
bool RNA_property_is_unlink(PropertyRNA *prop)
const struct ListBase * RNA_struct_type_properties(StructRNA *srna)
char * RNA_pointer_as_string_keywords_ex(struct bContext *C, PointerRNA *ptr, bool as_function, bool all_args, bool nested_args, int max_prop_length, PropertyRNA *iterprop)
void RNA_property_float_get_array(PointerRNA *ptr, PropertyRNA *prop, float *values)
bool RNA_property_assign_default(PointerRNA *ptr, PropertyRNA *prop)
PropertyScaleType RNA_property_ui_scale(PropertyRNA *prop)
void RNA_struct_state_owner_set(const char *name)
int RNA_function_call_direct_va_lookup(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, const char *identifier, const char *format, va_list args)
bool RNA_property_int_set_default(PropertyRNA *prop, int value)
void RNA_property_string_get_default(PropertyRNA *prop, char *value, int max_len)
void RNA_struct_py_type_set(StructRNA *srna, void *py_type)
void RNA_int_get_array(PointerRNA *ptr, const char *name, int *values)
bool RNA_property_path_from_ID_check(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_boolean_get_default_index(PointerRNA *ptr, PropertyRNA *prop, int index)
bool RNA_property_float_set_default(PropertyRNA *prop, float value)
bool RNA_property_enum_value(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const char *identifier, int *r_value)
eRNAOverrideStatus RNA_property_override_library_status(struct Main *bmainm, PointerRNA *ptr, PropertyRNA *prop, int index)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
PointerRNA RNA_pointer_get(PointerRNA *ptr, const char *name)
int RNA_collection_length(PointerRNA *ptr, const char *name)
int RNA_enum_from_name(const EnumPropertyItem *item, const char *name)
int RNA_property_int_clamp(PointerRNA *ptr, PropertyRNA *prop, int *value)
int RNA_property_float_clamp(PointerRNA *ptr, PropertyRNA *prop, float *value)
void RNA_parameter_get_lookup(ParameterList *parms, const char *identifier, void **value)
int RNA_property_int_get_default(PointerRNA *ptr, PropertyRNA *prop)
void RNA_pointer_set(PointerRNA *ptr, const char *name, PointerRNA ptr_value)
void RNA_boolean_get_array(PointerRNA *ptr, const char *name, bool *values)
bool RNA_property_enum_name(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, int value, const char **name)
void ** RNA_struct_instance(PointerRNA *ptr)
bool RNA_struct_is_ID(const StructRNA *type)
int RNA_property_int_get_index(PointerRNA *ptr, PropertyRNA *prop, int index)
const char * RNA_property_identifier(const PropertyRNA *prop)
const char * RNA_property_ui_description_raw(const PropertyRNA *prop)
void RNA_property_float_ui_range(PointerRNA *ptr, PropertyRNA *prop, float *softmin, float *softmax, float *step, float *precision)
void RNA_property_float_set_index(PointerRNA *ptr, PropertyRNA *prop, int index, float value)
bool RNA_enum_value_from_id(const EnumPropertyItem *item, const char *identifier, int *r_value)
void RNA_property_string_search(const struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const char *edit_text, StringPropertySearchVisitFunc visit_fn, void *visit_user_data)
bool RNA_property_equals(struct Main *bmain, struct PointerRNA *ptr_a, struct PointerRNA *ptr_b, struct PropertyRNA *prop, eRNACompareMode mode)
int RNA_function_call_lookup(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, const char *identifier, ParameterList *parms)
eStringPropertySearchFlag RNA_property_string_search_flag(PropertyRNA *prop)
bool RNA_property_collection_is_empty(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_animateable(const PointerRNA *ptr, PropertyRNA *prop)
PropertyUnit RNA_property_unit(PropertyRNA *prop)
void RNA_property_enum_items_gettexted_all(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type)
int RNA_function_defined(FunctionRNA *func)
int RNA_property_ui_icon(const PropertyRNA *prop)
@ RNA_OVERRIDE_STATUS_OVERRIDABLE
@ RNA_OVERRIDE_STATUS_MANDATORY
@ RNA_OVERRIDE_STATUS_OVERRIDDEN
@ RNA_OVERRIDE_STATUS_LOCKED
void RNA_parameter_dynamic_length_set_data(ParameterList *parms, PropertyRNA *parm, void *data, int length)
int RNA_property_collection_lookup_index(PointerRNA *ptr, PropertyRNA *prop, const PointerRNA *t_ptr)
void RNA_collection_clear(PointerRNA *ptr, const char *name)
bool RNA_property_reset(PointerRNA *ptr, PropertyRNA *prop, int index)
void RNA_parameter_dynamic_length_set(ParameterList *parms, PropertyRNA *parm, int length)
int int RNA_function_call_direct_lookup(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, const char *identifier, const char *format,...) ATTR_PRINTF_FORMAT(5
bool RNA_property_enum_name_gettexted(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, int value, const char **name)
char * RNA_pointer_as_string_id(struct bContext *C, PointerRNA *ptr)
const char * RNA_struct_ui_description(const StructRNA *type)
void RNA_blender_rna_pointer_create(PointerRNA *r_ptr)
char * RNA_struct_name_get_alloc(PointerRNA *ptr, char *fixedbuf, int fixedlen, int *r_len)
bool RNA_collection_is_empty(PointerRNA *ptr, const char *name)
float RNA_property_float_get_index(PointerRNA *ptr, PropertyRNA *prop, int index)
bool RNA_path_resolved_create(PointerRNA *ptr, struct PropertyRNA *prop, int prop_index, PathResolvedRNA *r_anim_rna)
int RNA_property_collection_raw_get(struct ReportList *reports, PointerRNA *ptr, PropertyRNA *prop, const char *propname, void *array, RawPropertyType type, int len)
short RNA_type_to_ID_code(const StructRNA *type)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
void RNA_property_collection_skip(CollectionPropertyIterator *iter, int num)
int RNA_property_string_default_length(PointerRNA *ptr, PropertyRNA *prop)
float RNA_property_float_get_default_index(PointerRNA *ptr, PropertyRNA *prop, int index)
void RNA_pointer_add(PointerRNA *ptr, const char *name)
int RNA_enum_from_identifier(const EnumPropertyItem *item, const char *identifier)
int RNA_property_multi_array_length(PointerRNA *ptr, PropertyRNA *prop, int dimension)
bool RNA_property_is_set_ex(PointerRNA *ptr, PropertyRNA *prop, bool use_ghost)
int RNA_property_enum_get_default(PointerRNA *ptr, PropertyRNA *prop)
struct IDOverrideLibraryPropertyOperation * RNA_property_override_property_operation_find(struct Main *bmain, PointerRNA *ptr, PropertyRNA *prop, int index, bool strict, bool *r_strict)
struct IDOverrideLibraryProperty * RNA_property_override_property_find(struct Main *bmain, PointerRNA *ptr, PropertyRNA *prop, struct ID **r_owner_id)
void RNA_parameter_set(ParameterList *parms, PropertyRNA *parm, const void *value)
bool RNA_struct_property_is_set_ex(PointerRNA *ptr, const char *identifier, bool use_ghost)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_struct_bl_idname_ok_or_report(struct ReportList *reports, const char *identifier, const char *sep)
const char * RNA_struct_ui_name(const StructRNA *type)
@ RNA_OVERRIDE_APPLY_FLAG_IGNORE_ID_POINTERS
@ RNA_OVERRIDE_APPLY_FLAG_NOP
bool RNA_enum_icon_from_value(const EnumPropertyItem *item, int value, int *r_icon)
void RNA_property_float_range(PointerRNA *ptr, PropertyRNA *prop, float *hardmin, float *hardmax)
PropertyRNA * RNA_struct_type_find_property_no_base(StructRNA *srna, const char *identifier)
void RNA_property_boolean_get_array(PointerRNA *ptr, PropertyRNA *prop, bool *values)
PropertyType RNA_property_type(PropertyRNA *prop)
const PointerRNA PointerRNA_NULL
const char * RNA_function_ui_description_raw(FunctionRNA *func)
void RNA_id_pointer_create(struct ID *id, PointerRNA *r_ptr)
void RNA_property_pointer_add(PointerRNA *ptr, PropertyRNA *prop)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
void RNA_property_enum_set(PointerRNA *ptr, PropertyRNA *prop, int value)
void * RNA_struct_blender_type_get(StructRNA *srna)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
int RNA_property_collection_lookup_int(PointerRNA *ptr, PropertyRNA *prop, int key, PointerRNA *r_ptr)
char RNA_property_array_item_char(PropertyRNA *prop, int index)
void RNA_parameter_list_free(ParameterList *parms)
bool RNA_struct_contains_property(PointerRNA *ptr, PropertyRNA *prop_test)
bool RNA_struct_override_store(struct Main *bmain, struct PointerRNA *ptr_local, struct PointerRNA *ptr_reference, PointerRNA *ptr_storage, struct IDOverrideLibrary *override)
void RNA_float_get_array(PointerRNA *ptr, const char *name, float *values)
bool RNA_property_overridable_library_set(PointerRNA *ptr, PropertyRNA *prop, bool is_overridable)
unsigned int RNA_struct_count_properties(StructRNA *srna)
int RNA_property_int_get_default_index(PointerRNA *ptr, PropertyRNA *prop, int index)
struct IDOverrideLibraryPropertyOperation * RNA_property_override_property_operation_get(struct Main *bmain, PointerRNA *ptr, PropertyRNA *prop, short operation, int index, bool strict, bool *r_strict, bool *r_created)
bool RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop)
char * RNA_property_string_get_alloc(PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen, int *r_len)
void _RNA_warning(const char *format,...) ATTR_PRINTF_FORMAT(1
void RNA_property_float_get_array_range(PointerRNA *ptr, PropertyRNA *prop, float values[2])
void RNA_property_boolean_get_default_array(PointerRNA *ptr, PropertyRNA *prop, bool *values)
bool RNA_struct_idprops_contains_datablock(const StructRNA *type)
void RNA_property_int_set_index(PointerRNA *ptr, PropertyRNA *prop, int index, int value)
unsigned int RNA_enum_items_count(const EnumPropertyItem *item)
PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop) ATTR_NONNULL(1
bool RNA_enum_id_from_value(const EnumPropertyItem *item, int value, const char **r_identifier)
void RNA_enum_set_identifier(struct bContext *C, PointerRNA *ptr, const char *name, const char *id)
void RNA_pointer_recast(PointerRNA *ptr, PointerRNA *r_ptr)
int RNA_property_int_get(PointerRNA *ptr, PropertyRNA *prop)
void RNA_property_collection_next(CollectionPropertyIterator *iter)
void RNA_collection_add(PointerRNA *ptr, const char *name, PointerRNA *r_value)
void RNA_parameter_list_next(ParameterIterator *iter)
int RNA_property_override_flag(PropertyRNA *prop)
const char * RNA_property_translation_context(const PropertyRNA *prop)
bool RNA_property_editable_flag(PointerRNA *ptr, PropertyRNA *prop)
int RNA_property_collection_lookup_string(PointerRNA *ptr, PropertyRNA *prop, const char *key, PointerRNA *r_ptr)
const char * RNA_struct_ui_name_raw(const StructRNA *type)
int RNA_property_enum_step(const struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, int from_value, int step)
void RNA_string_get(PointerRNA *ptr, const char *name, char *value)
void RNA_property_enum_items(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
int RNA_property_collection_assign_int(PointerRNA *ptr, PropertyRNA *prop, int key, const PointerRNA *assign_ptr)
int RNA_int_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_function_get_parameter(PointerRNA *ptr, FunctionRNA *func, int index)
bool RNA_property_update_check(struct PropertyRNA *prop)
int RNA_property_array_dimension(const PointerRNA *ptr, PropertyRNA *prop, int length[])
bool RNA_enum_name_from_value(const EnumPropertyItem *item, int value, const char **r_name)
PropertyRNA * RNA_struct_type_find_property(StructRNA *srna, const char *identifier)
void RNA_parameter_get(ParameterList *parms, PropertyRNA *parm, void **value)
@ RNA_OVERRIDE_COMPARE_IGNORE_OVERRIDDEN
@ RNA_OVERRIDE_COMPARE_CREATE
@ RNA_OVERRIDE_COMPARE_IGNORE_NON_OVERRIDABLE
@ RNA_OVERRIDE_COMPARE_RESTORE
const char * RNA_translate_ui_text(const char *text, const char *text_ctxt, struct StructRNA *type, struct PropertyRNA *prop, int translate)
StructRNA * RNA_struct_find(const char *identifier)
void RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop, char *value)
int RNA_function_flag(FunctionRNA *func)
bool RNA_property_editable_info(PointerRNA *ptr, PropertyRNA *prop, const char **r_info)
StructRNA * RNA_property_pointer_type(PointerRNA *ptr, PropertyRNA *prop)
float RNA_property_float_get_default(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_pointer_poll(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *value)
PointerRNA void PointerRNA void RNA_property_collection_begin(PointerRNA *ptr, PropertyRNA *prop, CollectionPropertyIterator *iter)
int RNA_property_flag(PropertyRNA *prop)
RawPropertyType RNA_property_raw_type(PropertyRNA *prop)
bool RNA_property_comparable(PointerRNA *ptr, PropertyRNA *prop)
int RNA_struct_ui_icon(const StructRNA *type)
void RNA_property_boolean_set(PointerRNA *ptr, PropertyRNA *prop, bool value)
float RNA_float_get(PointerRNA *ptr, const char *name)
bool RNA_property_builtin(PropertyRNA *prop)
struct IDProperty ** RNA_struct_idprops_p(PointerRNA *ptr)
void RNA_property_int_get_array_range(PointerRNA *ptr, PropertyRNA *prop, int values[2])
int RNA_parameter_list_arg_count(const ParameterList *parms)
bool RNA_struct_idprops_register_check(const StructRNA *type)
void RNA_parameter_set_lookup(ParameterList *parms, const char *identifier, const void *value)
void RNA_property_string_set_bytes(PointerRNA *ptr, PropertyRNA *prop, const char *value, int len)
void RNA_float_set(PointerRNA *ptr, const char *name, float value)
int RNA_string_length(PointerRNA *ptr, const char *name)
char * RNA_string_get_alloc(PointerRNA *ptr, const char *name, char *fixedbuf, int fixedlen, int *r_len)
const EnumPropertyItem * RNA_struct_property_tag_defines(const StructRNA *type)
PropertyRNA * RNA_struct_name_property(const StructRNA *type)
int RNA_property_collection_raw_array(PointerRNA *ptr, PropertyRNA *prop, PropertyRNA *itemprop, RawArray *array)
bool RNA_struct_undo_check(const StructRNA *type)
void RNA_collection_begin(PointerRNA *ptr, const char *name, CollectionPropertyIterator *iter)
void RNA_struct_property_unset(PointerRNA *ptr, const char *identifier)
void RNA_property_update(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop)
void RNA_property_collection_add(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *r_ptr)
bool RNA_pointer_is_null(const PointerRNA *ptr)
bool RNA_struct_equals(struct Main *bmain, struct PointerRNA *ptr_a, struct PointerRNA *ptr_b, eRNACompareMode mode)
int RNA_property_array_length(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_is_idprop(const PropertyRNA *prop)
int RNA_property_string_maxlength(PropertyRNA *prop)
bool RNA_enum_is_equal(struct bContext *C, PointerRNA *ptr, const char *name, const char *enumname)
bool RNA_struct_idprops_datablock_allowed(const StructRNA *type)
bool RNA_property_copy(struct Main *bmain, PointerRNA *ptr, PointerRNA *fromptr, PropertyRNA *prop, int index)
bool RNA_property_overridable_get(PointerRNA *ptr, PropertyRNA *prop)
void RNA_property_float_set_array(PointerRNA *ptr, PropertyRNA *prop, const float *values)
void RNA_property_enum_items_ex(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool use_static, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
void RNA_property_int_set_array(PointerRNA *ptr, PropertyRNA *prop, const int *values)
bool RNA_enum_description(const EnumPropertyItem *item, int value, const char **description)
void RNA_property_int_get_default_array(PointerRNA *ptr, PropertyRNA *prop, int *values)
int RNA_function_call(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, FunctionRNA *func, ParameterList *parms)
int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop)
void RNA_pointer_create(struct ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
void RNA_property_float_set(PointerRNA *ptr, PropertyRNA *prop, float value)
const struct ListBase * RNA_struct_type_functions(StructRNA *srna)
@ RNA_EQ_UNSET_MATCH_NONE
int RNA_property_collection_raw_set(struct ReportList *reports, PointerRNA *ptr, PropertyRNA *prop, const char *propname, void *array, RawPropertyType type, int len)
int RNA_property_enum_bitflag_identifiers(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, int value, const char **identifier)
void RNA_property_int_get_array(PointerRNA *ptr, PropertyRNA *prop, int *values)
bool RNA_property_collection_move(PointerRNA *ptr, PropertyRNA *prop, int key, int pos)
PropertySubType RNA_property_subtype(PropertyRNA *prop)
const char * RNA_struct_translation_context(const StructRNA *type)
bool RNA_property_overridden(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
int RNA_parameter_list_ret_count(const ParameterList *parms)
void * RNA_struct_py_type_get(StructRNA *srna)
void RNA_property_int_range(PointerRNA *ptr, PropertyRNA *prop, int *hardmin, int *hardmax)
int RNA_enum_from_value(const EnumPropertyItem *item, int value)
void RNA_property_update_main(struct Main *bmain, struct Scene *scene, PointerRNA *ptr, PropertyRNA *prop)
char * RNA_function_as_string_keywords(struct bContext *C, FunctionRNA *func, bool as_function, bool all_args, int max_prop_length)
bool RNA_struct_idprops_unset(PointerRNA *ptr, const char *identifier)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
int RNA_parameter_dynamic_length_get(ParameterList *parms, PropertyRNA *parm)
char * RNA_property_as_string(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, int index, int max_prop_length)
bool RNA_struct_override_matches(struct Main *bmain, struct PointerRNA *ptr_local, struct PointerRNA *ptr_reference, const char *root_path, size_t root_path_len, struct IDOverrideLibrary *override, eRNAOverrideMatch flags, eRNAOverrideMatchResult *r_report_flags)
int RNA_enum_bitflag_identifiers(const EnumPropertyItem *item, int value, const char **identifier)
void RNA_property_collection_clear(PointerRNA *ptr, PropertyRNA *prop)
int RNA_property_tags(PropertyRNA *prop)
struct IDOverrideLibraryProperty * RNA_property_override_property_get(struct Main *bmain, PointerRNA *ptr, PropertyRNA *prop, bool *r_created)
PointerRNA void PointerRNA RNA_property_pointer_get_default(PointerRNA *ptr, PropertyRNA *prop) ATTR_NONNULL(1
bool RNA_property_collection_type_get(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *r_ptr)
void RNA_property_collection_end(CollectionPropertyIterator *iter)
bool RNA_property_collection_lookup_string_has_fn(PropertyRNA *prop)
bool RNA_struct_idprops_check(StructRNA *srna)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
void RNA_float_set_array(PointerRNA *ptr, const char *name, const float *values)
int RNA_property_array_item_index(PropertyRNA *prop, char name)
bool RNA_property_boolean_get_index(PointerRNA *ptr, PropertyRNA *prop, int index)
char * RNA_property_string_get_default_alloc(PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen, int *r_len)
bool RNA_property_boolean_get_default(PointerRNA *ptr, PropertyRNA *prop)
struct IDProperty * RNA_struct_idprops(PointerRNA *ptr, bool create)
PropertyRNA * RNA_function_find_parameter(PointerRNA *ptr, FunctionRNA *func, const char *identifier)
bool RNA_property_collection_remove(PointerRNA *ptr, PropertyRNA *prop, int key)
int RNA_enum_get(PointerRNA *ptr, const char *name)
void RNA_main_pointer_create(struct Main *main, PointerRNA *r_ptr)
const char * RNA_struct_state_owner_get(void)
int RNA_function_call_direct(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, FunctionRNA *func, const char *format,...) ATTR_PRINTF_FORMAT(5
bool RNA_struct_available_or_report(struct ReportList *reports, const char *identifier)
void RNA_property_unset(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_enum_name(const EnumPropertyItem *item, int value, const char **r_name)
@ RNA_OVERRIDE_MATCH_RESULT_RESTORED
@ RNA_OVERRIDE_MATCH_RESULT_CREATED
void RNA_parameter_list_begin(ParameterList *parms, ParameterIterator *iter)
StructRNA * ID_code_to_RNA_type(short idcode)
int RNA_parameter_dynamic_length_get_data(ParameterList *parms, PropertyRNA *parm, void *data)
int int int RNA_function_call_direct_va(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, FunctionRNA *func, const char *format, va_list args)
void RNA_property_pointer_remove(PointerRNA *ptr, PropertyRNA *prop)
PropertyRNA * RNA_struct_iterator_property(StructRNA *type)
int RNA_property_string_length(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_enum_item_from_value_gettexted(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, int value, EnumPropertyItem *r_item)
bool RNA_property_editable_index(PointerRNA *ptr, PropertyRNA *prop, const int index)
int RNA_parameter_list_size(const ParameterList *parms)
int RNA_parameter_flag(PropertyRNA *prop)
int RNA_raw_type_sizeof(RawPropertyType type)
bool RNA_enum_identifier(const EnumPropertyItem *item, int value, const char **identifier)
const char * RNA_function_ui_description(FunctionRNA *func)
bool RNA_property_animated(PointerRNA *ptr, PropertyRNA *prop)
char * RNA_pointer_as_string_keywords(struct bContext *C, PointerRNA *ptr, bool as_function, bool all_args, bool nested_args, int max_prop_length)
const char * RNA_property_ui_name_raw(const PropertyRNA *prop)
const char * RNA_struct_ui_description_raw(const StructRNA *type)
const char * RNA_property_ui_description(const PropertyRNA *prop)
char * RNA_pointer_as_string(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop_ptr, PointerRNA *ptr_prop)
const StructRNA * RNA_struct_base_child_of(const StructRNA *type, const StructRNA *parent_type)
int RNA_property_collection_length(PointerRNA *ptr, PropertyRNA *prop)
void RNA_property_boolean_set_array(PointerRNA *ptr, PropertyRNA *prop, const bool *values)
void * RNA_property_py_data_get(PropertyRNA *prop)
const char * RNA_property_ui_name(const PropertyRNA *prop)
StructRNA * RNA_struct_base(StructRNA *type)
void RNA_property_string_set(PointerRNA *ptr, PropertyRNA *prop, const char *value)
struct StructRNA *(* StructRegisterFunc)(struct Main *bmain, struct ReportList *reports, void *data, const char *identifier, StructValidateFunc validate, StructCallbackFunc call, StructFreeFunc free)
eStringPropertySearchFlag
void(* StringPropertySearchVisitFunc)(void *visit_user_data, const StringPropertySearchVisitParams *params)
void(* StructUnregisterFunc)(struct Main *bmain, struct StructRNA *type)
int main(int argc, char *argv[])
std::unique_ptr< IDProperty, IDPropertyDeleter > create(StringRefNull prop_name, int32_t value)
Allocate a new IDProperty of type IDP_INT, set its name and value.
T length(const vec_base< T, Size > &a)