6#ifndef __RNA_ACCESS_H__
7#define __RNA_ACCESS_H__
117 PathResolvedRNA *r_anim_rna);
221 const StructRNA *struct_type_check);
240 const PointerRNA *ptr,
const StructRNA *srna);
258 PointerRNA *ptr,
char *fixedbuf,
int fixedlen,
int *r_len, PropertyRNA **r_nameprop);
269 const char *identifier,
328 const PointerRNA *ptr =
nullptr);
338 PointerRNA *ptr, PropertyRNA *prop,
int *softmin,
int *softmax,
int *
step);
351bool RNA_enum_identifier(
const EnumPropertyItem *item,
int value,
const char **r_identifier);
354 const char **r_identifier);
355bool RNA_enum_name(
const EnumPropertyItem *item,
int value,
const char **r_name);
358 const char *translation_context,
359 const char **r_name);
364 const char *identifier,
377 const EnumPropertyItem **r_item,
383 const EnumPropertyItem **r_item,
389 const EnumPropertyItem **r_item,
395 const EnumPropertyItem **r_item,
399 bContext *
C, PointerRNA *ptr, PropertyRNA *prop,
const char *identifier,
int *r_value);
401 bContext *
C, PointerRNA *ptr, PropertyRNA *prop,
int value,
const char **r_identifier);
403 bContext *
C, PointerRNA *ptr, PropertyRNA *prop,
int value,
const char **r_name);
405 bContext *
C, PointerRNA *ptr, PropertyRNA *prop,
int value,
const char **r_name);
408 bContext *
C, PointerRNA *ptr, PropertyRNA *prop,
int value, EnumPropertyItem *r_item);
410 bContext *
C, PointerRNA *ptr, PropertyRNA *prop,
int value, EnumPropertyItem *r_item);
413 bContext *
C, PointerRNA *ptr, PropertyRNA *prop,
int value,
const char **r_identifier);
579 const char *edit_text,
580 FunctionRef<
void(StringPropertySearchVisitParams)> visit_fn);
620 const bContext *
C, PointerRNA *ptr, PropertyRNA *prop,
int from_value,
int step);
639 PointerRNA ptr_value,
645 CollectionPropertyIterator *iter);
657 const PointerRNA *t_ptr);
667 PointerRNA *ptr, PropertyRNA *prop,
const char *key, PointerRNA *r_ptr,
int *r_index);
684 const PointerRNA *assign_ptr);
689 PointerRNA *ptr, PropertyRNA *prop, PropertyRNA *itemprop,
bool set, RawArray *
array);
693 const char *propname,
700 const char *propname,
735 IDOverrideLibraryProperty *removed_oprop =
nullptr,
736 IDOverrideLibraryPropertyOperation *removed_opop =
nullptr);
759void RNA_int_set(PointerRNA *ptr,
const char *name,
int value);
764void RNA_float_set(PointerRNA *ptr,
const char *name,
float value);
769void RNA_enum_set(PointerRNA *ptr,
const char *name,
int value);
771bool RNA_enum_is_equal(bContext *
C, PointerRNA *ptr,
const char *name,
const char *enumname);
779void RNA_string_get(PointerRNA *ptr,
const char *name,
char *value);
792void RNA_string_set(PointerRNA *ptr,
const char *name,
const char *value);
799void RNA_pointer_set(PointerRNA *ptr,
const char *name, PointerRNA ptr_value);
808#define RNA_BEGIN(sptr, itemptr, propname) \
810 CollectionPropertyIterator rna_macro_iter; \
811 for (RNA_collection_begin(sptr, propname, &rna_macro_iter); rna_macro_iter.valid; \
812 RNA_property_collection_next(&rna_macro_iter)) \
814 PointerRNA itemptr = rna_macro_iter.ptr;
818 RNA_property_collection_end(&rna_macro_iter); \
822#define RNA_PROP_BEGIN(sptr, itemptr, prop) \
824 CollectionPropertyIterator rna_macro_iter; \
825 for (RNA_property_collection_begin(sptr, prop, &rna_macro_iter); rna_macro_iter.valid; \
826 RNA_property_collection_next(&rna_macro_iter)) \
828 PointerRNA itemptr = rna_macro_iter.ptr;
830#define RNA_PROP_END \
832 RNA_property_collection_end(&rna_macro_iter); \
836#define RNA_STRUCT_BEGIN(sptr, prop) \
838 CollectionPropertyIterator rna_macro_iter{}; \
839 for (RNA_property_collection_begin( \
840 sptr, RNA_struct_iterator_property((sptr)->type), &rna_macro_iter); \
841 rna_macro_iter.valid; \
842 RNA_property_collection_next(&rna_macro_iter)) \
844 PropertyRNA *prop = (PropertyRNA *)rna_macro_iter.ptr.data;
846#define RNA_STRUCT_BEGIN_SKIP_RNA_TYPE(sptr, prop) \
848 CollectionPropertyIterator rna_macro_iter; \
849 RNA_property_collection_begin( \
850 sptr, RNA_struct_iterator_property((sptr)->type), &rna_macro_iter); \
851 if (rna_macro_iter.valid) { \
852 RNA_property_collection_next(&rna_macro_iter); \
854 for (; rna_macro_iter.valid; RNA_property_collection_next(&rna_macro_iter)) { \
855 PropertyRNA *prop = (PropertyRNA *)rna_macro_iter.ptr.data;
857#define RNA_STRUCT_END \
859 RNA_property_collection_end(&rna_macro_iter); \
893 bContext *
C, PointerRNA *ptr, PropertyRNA *prop,
int index,
int max_prop_length);
901 PropertyRNA *prop_ptr,
902 PointerRNA *ptr_prop);
912 PropertyRNA *iterprop);
918 int max_prop_length);
920 bContext *
C, FunctionRNA *func,
bool as_function,
bool all_args,
int max_prop_length);
933 const char *identifier);
952void RNA_parameter_set(ParameterList *parms, PropertyRNA *parm,
const void *value);
966 bContext *
C, ReportList *reports, PointerRNA *ptr, FunctionRNA *func, ParameterList *parms);
969 const char *text,
const char *text_ctxt, StructRNA *type, PropertyRNA *prop,
int translate);
978# define RNA_warning(format, args...) _RNA_warning("%s: " format "\n", __func__, ##args)
979#elif defined(_MSVC_TRADITIONAL) && \
981# define RNA_warning(format, ...) _RNA_warning("%s: " format "\n", __FUNCTION__, ##__VA_ARGS__)
983# define RNA_warning(format, ...) _RNA_warning("%s: " format "\n", __FUNCTION__, __VA_ARGS__)
988# define RNA_warning_bare(format, args...) _RNA_warning(format "\n", ##args)
989#elif defined(_MSVC_TRADITIONAL) && \
991# define RNA_warning_bare(format, ...) _RNA_warning(format "\n", ##__VA_ARGS__)
993# define RNA_warning_bare(format, ...) _RNA_warning(format "\n", __VA_ARGS__)
1018 Main *bmain, PointerRNA *ptr_a, PointerRNA *ptr_b, PropertyRNA *prop,
eRNACompareMode mode);
1080 PointerRNA *ptr_local,
1081 PointerRNA *ptr_reference,
1082 const char *root_path,
1083 size_t root_path_len,
1084 IDOverrideLibrary *liboverride,
1093 PointerRNA *ptr_local,
1094 PointerRNA *ptr_reference,
1095 PointerRNA *ptr_storage,
1096 IDOverrideLibrary *liboverride);
1122 PointerRNA *id_ptr_dst,
1123 PointerRNA *id_ptr_src,
1124 PointerRNA *id_ptr_storage,
1125 IDOverrideLibrary *liboverride,
1138 Main *bmain, PointerRNA *ptr, PropertyRNA *prop,
int index,
bool strict,
bool *r_strict);
#define ATTR_PRINTF_FORMAT(format_param, dots_param)
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_NONNULL(...)
#define ENUM_OPERATORS(_enum_type)
These structs are the foundation for all linked lists in the library system.
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
float length(VecOp< float, D >) RET
float4x4 translate(float4x4 mat, float3 translation)
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
PropertyRNA * RNA_function_find_parameter(PointerRNA *, FunctionRNA *func, const char *identifier)
char * RNA_property_string_get_alloc(PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen, int *r_len)
void RNA_collection_begin(PointerRNA *ptr, const char *name, CollectionPropertyIterator *iter)
@ RNA_OVERRIDE_MATCH_RESULT_RESTORED
@ RNA_OVERRIDE_MATCH_RESULT_CREATED
@ RNA_OVERRIDE_MATCH_RESULT_INIT
@ RNA_OVERRIDE_MATCH_RESULT_RESTORE_TAGGED
bool RNA_property_assign_default(PointerRNA *ptr, PropertyRNA *prop)
int RNA_property_array_length(PointerRNA *ptr, PropertyRNA *prop)
PointerRNA RNA_pointer_create_from_ancestor(const PointerRNA &ptr, const int ancestor_idx)
void RNA_property_string_get_default(PointerRNA *ptr, PropertyRNA *prop, char *value, const int value_maxncpy)
const char * RNA_function_ui_description_raw(FunctionRNA *func)
void RNA_float_set_array(PointerRNA *ptr, const char *name, const float *values)
int RNA_property_enum_bitflag_identifiers(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **r_identifier)
bool RNA_property_overridable_library_set(PointerRNA *, PropertyRNA *prop, const bool is_overridable)
void ** RNA_struct_instance(PointerRNA *ptr)
int RNA_parameter_dynamic_length_get_data(ParameterList *, PropertyRNA *parm, void *data)
PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop)
std::string RNA_struct_to_string(const StructRNA &type)
bool RNA_struct_idprops_datablock_allowed(const StructRNA *type)
bool RNA_struct_system_idprops_check(StructRNA *srna)
void RNA_property_int_get_array_at_most(PointerRNA *ptr, PropertyRNA *prop, int *values, int values_num)
void RNA_property_int_get_default_array(PointerRNA *ptr, PropertyRNA *prop, int *values)
void RNA_parameter_get(ParameterList *parms, PropertyRNA *parm, void **r_value)
int RNA_enum_get(PointerRNA *ptr, const char *name)
void RNA_property_float_get_array_range(PointerRNA *ptr, PropertyRNA *prop, float values[2])
void RNA_property_float_get_array(PointerRNA *ptr, PropertyRNA *prop, float *values)
void RNA_property_float_get_array_at_most(PointerRNA *ptr, PropertyRNA *prop, float *values, int values_num)
PointerRNA RNA_main_pointer_create(Main *main)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
bool RNA_struct_idprops_check(const StructRNA *srna)
PointerRNA RNA_pointer_recast(PointerRNA *ptr)
void RNA_property_update(bContext *C, PointerRNA *ptr, PropertyRNA *prop)
void RNA_property_pointer_set(PointerRNA *ptr, PropertyRNA *prop, PointerRNA ptr_value, ReportList *reports)
int RNA_parameter_list_ret_count(const ParameterList *parms)
bool RNA_struct_is_a(const StructRNA *type, const StructRNA *srna)
const char * RNA_property_ui_name_raw(const PropertyRNA *prop, const PointerRNA *ptr)
const char * RNA_function_ui_description(FunctionRNA *func)
void RNA_property_string_set_bytes(PointerRNA *ptr, PropertyRNA *prop, const char *value, int len)
void RNA_property_update_main(Main *bmain, Scene *scene, PointerRNA *ptr, PropertyRNA *prop)
PointerRNA RNA_blender_rna_pointer_create()
int RNA_property_string_length(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_enum_is_equal(bContext *C, PointerRNA *ptr, const char *name, const char *enumname)
bool RNA_property_editable_flag(const PointerRNA *ptr, PropertyRNA *prop)
void RNA_property_pointer_remove(PointerRNA *ptr, PropertyRNA *prop)
void RNA_property_int_get_array_range(PointerRNA *ptr, PropertyRNA *prop, int values[2])
bool RNA_property_reset(Main *bmain, PointerRNA *ptr, PropertyRNA *prop, int index)
bool RNA_property_enum_identifier(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **r_identifier)
PointerRNA RNA_id_pointer_create(ID *id)
void RNA_parameter_set(ParameterList *parms, PropertyRNA *parm, const void *value)
void * RNA_struct_py_type_get(StructRNA *srna)
int RNA_property_collection_lookup_index(PointerRNA *ptr, PropertyRNA *prop, const PointerRNA *t_ptr)
PropertyRNA * RNA_struct_type_find_property_no_base(StructRNA *srna, const UString identifier)
void RNA_property_float_set(PointerRNA *ptr, PropertyRNA *prop, float value)
const char * RNA_property_identifier(const PropertyRNA *prop)
void RNA_parameter_dynamic_length_set(ParameterList *parms, PropertyRNA *parm, int length)
bool RNA_property_editable_info(const PointerRNA *ptr, PropertyRNA *prop, const char **r_info)
eRNAStatus RNA_property_collection_move(PointerRNA *ptr, PropertyRNA *prop, int src_index, int dst_index)
StructRNA * ID_code_to_RNA_type(short idcode)
void RNA_property_boolean_get_array(PointerRNA *ptr, PropertyRNA *prop, bool *values)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
bool RNA_struct_available_or_report(ReportList *reports, const char *identifier)
bool RNA_property_builtin(PropertyRNA *prop)
bool RNA_property_enum_name(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **r_name)
bool RNA_property_float_set_default(PropertyRNA *prop, float value)
@ RNA_OVERRIDE_APPLY_FLAG_SKIP_RESYNC_CHECK
@ RNA_OVERRIDE_APPLY_FLAG_IGNORE_ID_POINTERS
@ RNA_OVERRIDE_APPLY_FLAG_RESTORE_ONLY
@ RNA_OVERRIDE_APPLY_FLAG_NOP
int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop)
void RNA_property_enum_items(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
int RNA_enum_bitflag_identifiers(const EnumPropertyItem *item, const int value, const char **r_identifier)
uint RNA_struct_count_properties(StructRNA *srna)
int RNA_property_collection_raw_get(ReportList *reports, PointerRNA *ptr, PropertyRNA *prop, const char *propname, void *array, RawPropertyType type, int len)
float RNA_property_float_get_index(PointerRNA *ptr, PropertyRNA *prop, int index)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
IDOverrideLibraryPropertyOperation * RNA_property_override_property_operation_get(Main *bmain, PointerRNA *ptr, PropertyRNA *prop, const eID_OverrideLib_Op operation, const int index, const bool strict, bool *r_strict, bool *r_created)
bool RNA_struct_equals(Main *bmain, PointerRNA *ptr_a, PointerRNA *ptr_b, eRNACompareMode mode)
PointerRNA RNA_property_pointer_get_default(Main &bmain, PointerRNA &, PropertyRNA &prop)
void RNA_sync_system_properties(Main &bmain, PointerRNA &ptr, IDProperty &idprops)
std::optional< AncestorPointerRNA > RNA_struct_search_closest_ancestor_by_type(const PointerRNA *ptr, const StructRNA *srna)
const char * RNA_struct_state_owner_get()
FunctionRNA * RNA_struct_find_function(StructRNA *srna, const char *identifier_c_str)
PointerRNA RNA_property_pointer_get_never_create(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_struct_property_is_set_ex(PointerRNA *ptr, const char *identifier, bool use_ghost)
void RNA_parameter_list_next(ParameterIterator *iter)
void * RNA_struct_blender_type_get(StructRNA *srna)
void RNA_property_collection_begin(PointerRNA *ptr, PropertyRNA *prop, CollectionPropertyIterator *iter)
bool RNA_struct_idprops_contains_datablock(const StructRNA *type)
PropertyUnit RNA_property_unit(PropertyRNA *prop)
void RNA_parameter_list_end(ParameterIterator *)
short RNA_type_to_ID_code(const StructRNA *type)
bool RNA_property_driver_editable(const PointerRNA *ptr, PropertyRNA *prop)
PropertyRNA * RNA_struct_find_property_check(PointerRNA &props, const char *name, const PropertyType property_type_check)
void RNA_struct_property_unset(PointerRNA *ptr, const char *identifier)
std::string RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_overridable_get(const PointerRNA *ptr, PropertyRNA *prop)
StructUnregisterFunc RNA_struct_unregister(StructRNA *type)
bool RNA_property_enum_value(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const char *identifier, int *r_value)
bool RNA_property_collection_assign_int(PointerRNA *ptr, PropertyRNA *prop, const int key, const PointerRNA *assign_ptr)
int RNA_int_get(PointerRNA *ptr, const char *name)
std::optional< std::string > RNA_pointer_as_string(bContext *C, PointerRNA *ptr, PropertyRNA *prop_ptr, PointerRNA *ptr_prop)
float RNA_property_float_get_default_index(PointerRNA *ptr, PropertyRNA *prop, int index)
const char * RNA_property_description(PropertyRNA *prop)
bool RNA_property_string_is_utf8(PropertyRNA *prop)
IDProperty ** RNA_struct_system_idprops_p(PointerRNA *ptr)
char * RNA_struct_name_get_alloc(PointerRNA *ptr, char *fixedbuf, int fixedlen, int *r_len)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
void RNA_property_float_set_array(PointerRNA *ptr, PropertyRNA *prop, const float *values)
int RNA_property_override_flag(PropertyRNA *prop)
const char * RNA_property_translation_context(const PropertyRNA *prop)
void RNA_property_boolean_set_array(PointerRNA *ptr, PropertyRNA *prop, const bool *values)
const char * RNA_struct_ui_name(const StructRNA *type)
@ RNA_OVERRIDE_COMPARE_IGNORE_NON_OVERRIDABLE
@ RNA_OVERRIDE_COMPARE_RESTORE
@ RNA_OVERRIDE_COMPARE_TAG_FOR_RESTORE
@ RNA_OVERRIDE_COMPARE_CREATE
@ RNA_OVERRIDE_COMPARE_IGNORE_OVERRIDDEN
bool RNA_property_animateable(const PointerRNA *ptr, PropertyRNA *prop_orig)
PropertyRNA * RNA_struct_iterator_property(StructRNA *type)
void RNA_property_string_search(const bContext *C, PointerRNA *ptr, PropertyRNA *prop, const char *edit_text, FunctionRef< void(StringPropertySearchVisitParams)> visit_fn)
uint RNA_enum_items_count(const EnumPropertyItem *item)
int RNA_property_collection_length(PointerRNA *ptr, PropertyRNA *prop)
void RNA_boolean_get_array(PointerRNA *ptr, const char *name, bool *values)
const char * RNA_struct_ui_name_raw(const StructRNA *type)
PropertyScaleType RNA_property_ui_scale(PropertyRNA *prop)
int RNA_property_array_item_index(PropertyRNA *prop, char name)
bool RNA_property_comparable(PointerRNA *, PropertyRNA *prop)
int RNA_enum_from_value(const EnumPropertyItem *item, const int value)
StructRNA * RNA_struct_find(const char *identifier)
char * RNA_string_get_alloc(PointerRNA *ptr, const char *name, char *fixedbuf, int fixedlen, int *r_len)
const ListBaseT< PropertyRNA > * RNA_struct_type_properties(StructRNA *srna)
void RNA_pointer_add(PointerRNA *ptr, const char *name)
void RNA_struct_override_apply(Main *bmain, PointerRNA *id_ptr_dst, PointerRNA *id_ptr_src, PointerRNA *id_ptr_storage, IDOverrideLibrary *liboverride, const eRNAOverrideApplyFlag flag)
bool RNA_property_collection_remove(PointerRNA *ptr, PropertyRNA *prop, int key)
@ RNA_EQ_UNSET_MATCH_NONE
int RNA_function_flag(FunctionRNA *func)
ParameterList * RNA_parameter_list_create(ParameterList *parms, PointerRNA *, FunctionRNA *func)
void RNA_parameter_dynamic_length_set_data(ParameterList *, PropertyRNA *parm, void *data, int length)
PropertyRNA * RNA_function_get_parameter(PointerRNA *, FunctionRNA *func, int index)
bool RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_array_check(PropertyRNA *prop)
void RNA_property_collection_add(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *r_ptr)
bool RNA_enum_value_from_id(const EnumPropertyItem *item, const char *identifier, int *r_value)
void RNA_property_int_set_array(PointerRNA *ptr, PropertyRNA *prop, const int *values)
bool RNA_property_enum_name_gettexted(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **r_name)
void RNA_property_int_set(PointerRNA *ptr, PropertyRNA *prop, int value)
std::string RNA_pointer_as_string_id(bContext *C, PointerRNA *ptr)
const EnumPropertyItem * RNA_struct_property_tag_defines(const StructRNA *type)
PropertyType RNA_property_type(PropertyRNA *prop)
bool RNA_property_collection_lookup_string_has_fn(PropertyRNA *prop)
bool RNA_property_is_runtime(const PropertyRNA *prop)
bool RNA_property_undo_check(const PropertyRNA *prop, const StructRNA *type)
PropertyPathTemplateType RNA_property_path_template_type(PropertyRNA *prop)
void RNA_int_set_array(PointerRNA *ptr, const char *name, const int *values)
int RNA_function_defined(FunctionRNA *func)
int RNA_property_enum_get_default(PointerRNA *ptr, PropertyRNA *prop)
int RNA_enum_from_identifier(const EnumPropertyItem *item, const char *identifier)
bool RNA_property_anim_editable(const PointerRNA *ptr, PropertyRNA *prop_orig)
void RNA_property_string_set(PointerRNA *ptr, PropertyRNA *prop, const char *value)
std::optional< StringRefNull > RNA_translate_ui_text(const char *text, const char *text_ctxt, StructRNA *type, PropertyRNA *prop, int translate)
void RNA_collection_clear(PointerRNA *ptr, const char *name)
StructRNA * RNA_property_pointer_type(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_enum_name_from_value(const EnumPropertyItem *item, int value, const char **r_name)
eStringPropertySearchFlag
int RNA_property_tags(PropertyRNA *prop)
IDProperty * RNA_struct_system_idprops(PointerRNA *ptr, bool create)
void RNA_property_int_get_array(PointerRNA *ptr, PropertyRNA *prop, int *values)
BMesh const char void * data
std::string RNA_pointer_as_string_keywords(bContext *C, PointerRNA *ptr, const bool as_function, const bool all_args, const bool nested_args, const int max_prop_length)
void RNA_property_collection_end(CollectionPropertyIterator *iter)
void RNA_int_get_array(PointerRNA *ptr, const char *name, int *values)
bool RNA_property_is_set_ex(PointerRNA *ptr, PropertyRNA *prop, bool use_ghost)
void RNA_property_enum_items_ex(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const bool use_static, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
IDProperty * RNA_struct_idprops(PointerRNA *ptr, bool create)
bool RNA_enum_name(const EnumPropertyItem *item, const int value, const char **r_name)
bool(*)(Main *bmain, StructRNA *type) StructUnregisterFunc
bool RNA_property_boolean_get_index(PointerRNA *ptr, PropertyRNA *prop, int index)
std::string RNA_function_as_string_keywords(bContext *C, FunctionRNA *func, const bool as_function, const bool all_args, const int max_prop_length)
bool RNA_path_resolved_create(PointerRNA *ptr, PropertyRNA *prop, const int prop_index, PathResolvedRNA *r_anim_rna)
bool RNA_struct_contains_property(PointerRNA *ptr, PropertyRNA *prop_test)
int RNA_parameter_dynamic_length_get(ParameterList *parms, PropertyRNA *parm)
void RNA_property_unset(PointerRNA *ptr, PropertyRNA *prop)
char RNA_property_array_item_char(PropertyRNA *prop, int index)
bool RNA_enum_icon_from_value(const EnumPropertyItem *item, int value, int *r_icon)
int RNA_property_flag(PropertyRNA *prop)
bool RNA_struct_override_matches(Main *bmain, PointerRNA *ptr_local, PointerRNA *ptr_reference, const char *root_path, const size_t root_path_len, IDOverrideLibrary *liboverride, const eRNAOverrideMatch flags, eRNAOverrideMatchResult *r_report_flags)
int RNA_property_float_clamp(PointerRNA *ptr, PropertyRNA *prop, float *value)
bool RNA_property_collection_lookup_string(PointerRNA *ptr, PropertyRNA *prop, const char *key, PointerRNA *r_ptr)
const char * RNA_function_identifier(FunctionRNA *func)
void _RNA_warning(const char *format,...)
const char * RNA_property_ui_description_raw(const PropertyRNA *prop, const PointerRNA *ptr)
RawPropertyType RNA_property_raw_type(PropertyRNA *prop)
int RNA_parameter_list_size(const ParameterList *parms)
IDOverrideLibraryProperty * RNA_property_override_property_find(Main *bmain, PointerRNA *ptr, PropertyRNA *prop, ID **r_owner_id)
bool RNA_property_is_idprop(const PropertyRNA *prop)
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
void RNA_struct_py_type_set(StructRNA *srna, void *py_type)
bool RNA_property_enum_item_from_value_gettexted(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, EnumPropertyItem *r_item)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
PropertyRNA * RNA_struct_type_find_property(StructRNA *srna, const char *identifier)
bool RNA_property_update_check(PropertyRNA *prop)
void RNA_property_boolean_set_array_at_most(PointerRNA *ptr, PropertyRNA *prop, const bool *values, int values_num)
void RNA_property_enum_items_gettexted(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
const char * RNA_struct_ui_description_raw(const StructRNA *type)
void RNA_property_float_set_array_at_most(PointerRNA *ptr, PropertyRNA *prop, const float *values, int values_num)
ATTR_WARN_UNUSED_RESULT const size_t num
eRNAOverrideStatus RNA_property_override_library_status(Main *bmain, PointerRNA *ptr, PropertyRNA *prop, const int index)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void RNA_property_collection_skip(CollectionPropertyIterator *iter, int num)
bool RNA_enum_id_from_value(const EnumPropertyItem *item, int value, const char **r_identifier)
void RNA_property_pointer_add(PointerRNA *ptr, PropertyRNA *prop)
PropertyRNA * RNA_struct_name_property(const StructRNA *type)
bool RNA_property_collection_lookup_int_has_fn(PropertyRNA *prop)
int RNA_property_array_dimension(const PointerRNA *ptr, PropertyRNA *prop, int length[])
bool RNA_property_overridden(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_struct_system_idprops_unset(PointerRNA *ptr, const char *identifier)
int RNA_parameter_list_arg_count(const ParameterList *parms)
void RNA_float_set(PointerRNA *ptr, const char *name, float value)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
PointerRNA RNA_pointer_get(PointerRNA *ptr, const char *name)
std::optional< std::string > RNA_property_string_path_filter(const bContext *C, PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_enum_item_from_value(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, EnumPropertyItem *r_item)
int RNA_struct_ui_icon(const StructRNA *type)
bool RNA_struct_is_ID(const StructRNA *type)
int RNA_string_length(PointerRNA *ptr, const char *name)
void RNA_parameter_get_lookup(ParameterList *parms, const char *identifier, void **r_value)
const DeprecatedRNA * RNA_property_deprecated(const PropertyRNA *prop)
void RNA_boolean_set_array(PointerRNA *ptr, const char *name, const bool *values)
bool RNA_struct_system_idprops_register_check(const StructRNA *type)
int RNA_property_enum_step(const bContext *C, PointerRNA *ptr, PropertyRNA *prop, int from_value, int step)
const char * RNA_struct_identifier(const StructRNA *type)
void RNA_property_int_ui_range(PointerRNA *ptr, PropertyRNA *prop, int *softmin, int *softmax, int *step)
void RNA_struct_state_owner_set(const char *name)
bool RNA_enum_value_from_identifier(const EnumPropertyItem *item, const char *identifier, int *r_value)
void RNA_property_collection_next(CollectionPropertyIterator *iter)
int RNA_property_string_default_length(PointerRNA *ptr, PropertyRNA *prop)
float RNA_property_float_get(PointerRNA *ptr, PropertyRNA *prop)
PropertySubType RNA_property_subtype(PropertyRNA *prop)
const char * RNA_struct_ui_description(const StructRNA *type)
bool RNA_enum_name_gettexted(const EnumPropertyItem *item, int value, const char *translation_context, const char **r_name)
bool RNA_property_collection_is_empty(PointerRNA *ptr, PropertyRNA *prop)
int RNA_parameter_flag(PropertyRNA *prop)
bool RNA_struct_bl_idname_ok_or_report(ReportList *reports, const char *identifier, const char *sep)
const StructRNA * RNA_struct_base_child_of(const StructRNA *type, const StructRNA *parent_type)
bool RNA_property_int_set_default(PropertyRNA *prop, int value)
float RNA_property_float_get_default(PointerRNA *ptr, PropertyRNA *prop)
void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type)
StructRNA *(*)(Main *bmain, ReportList *reports, void *data, const char *identifier, StructValidateFunc validate, StructCallbackFunc call, StructFreeFunc free) StructRegisterFunc
int RNA_property_collection_raw_set(ReportList *reports, PointerRNA *ptr, PropertyRNA *prop, const char *propname, void *array, RawPropertyType type, int len)
StructRNA * RNA_struct_base(StructRNA *type)
void RNA_ensure_and_sync_system_properties(Main &bmain, PointerRNA &ptr, IDProperty &idprops)
char * RNA_struct_name_get_alloc_ex(PointerRNA *ptr, char *fixedbuf, int fixedlen, int *r_len, PropertyRNA **r_nameprop)
IDOverrideLibraryProperty * RNA_property_override_property_get(Main *bmain, PointerRNA *ptr, PropertyRNA *prop, bool *r_created)
void RNA_property_collection_clear(PointerRNA *ptr, PropertyRNA *prop)
const char * RNA_property_ui_description(const PropertyRNA *prop, const PointerRNA *ptr)
std::optional< PointerRNA > RNA_property_collection_type_get(PointerRNA *ptr, PropertyRNA *prop)
int RNA_function_call(bContext *C, ReportList *reports, PointerRNA *ptr, FunctionRNA *func, ParameterList *parms)
std::string RNA_pointer_as_string_keywords_ex(bContext *C, PointerRNA *ptr, const bool as_function, const bool all_args, const bool nested_args, const int max_prop_length, PropertyRNA *iterprop)
bool RNA_enum_description(const EnumPropertyItem *item, const int value, const char **r_description)
int RNA_property_int_get_default(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_collection_lookup_string_supported(PropertyRNA *prop)
void RNA_parameter_set_lookup(ParameterList *parms, const char *identifier, const void *value)
void RNA_property_enum_set(PointerRNA *ptr, PropertyRNA *prop, int value)
bool RNA_property_collection_lookup_int(PointerRNA *ptr, PropertyRNA *prop, int key, PointerRNA *r_ptr)
PointerRNA RNA_pointer_create_id_subdata(ID &id, StructRNA *type, void *data)
void RNA_property_float_get_default_array(PointerRNA *ptr, PropertyRNA *prop, float *values)
bool RNA_property_collection_lookup_string_has_nameprop(PropertyRNA *prop)
IDOverrideLibraryPropertyOperation * RNA_property_override_property_operation_find(Main *bmain, PointerRNA *ptr, PropertyRNA *prop, const int index, const bool strict, bool *r_strict)
bool RNA_property_editable(const PointerRNA *ptr, PropertyRNA *prop)
Span< std::unique_ptr< FunctionRNA > > RNA_struct_type_functions(StructRNA *srna)
PointerRNA RNA_pointer_create_with_parent(const PointerRNA &parent, StructRNA *type, void *data)
int RNA_property_int_clamp(PointerRNA *ptr, PropertyRNA *prop, int *value)
int RNA_property_multi_array_length(PointerRNA *ptr, PropertyRNA *prop, int dimension)
void RNA_property_boolean_set(PointerRNA *ptr, PropertyRNA *prop, bool value)
int RNA_property_ui_icon(const PropertyRNA *prop)
bool RNA_property_animated(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_collection_lookup_string_index(PointerRNA *ptr, PropertyRNA *prop, const char *key, PointerRNA *r_ptr, int *r_index)
bool RNA_collection_is_empty(PointerRNA *ptr, const char *name)
void RNA_pointer_set(PointerRNA *ptr, const char *name, PointerRNA ptr_value)
int RNA_enum_from_name(const EnumPropertyItem *item, const char *name)
void RNA_property_int_set_index(PointerRNA *ptr, PropertyRNA *prop, int index, int value)
void RNA_property_float_ui_range(PointerRNA *ptr, PropertyRNA *prop, float *softmin, float *softmax, float *step, float *precision)
size_t RNA_raw_type_sizeof(RawPropertyType type)
void RNA_property_float_set_index(PointerRNA *ptr, PropertyRNA *prop, int index, float value)
bool RNA_enum_identifier(const EnumPropertyItem *item, const int value, const char **r_identifier)
std::string RNA_string_get(PointerRNA *ptr, const char *name)
void RNA_parameter_list_begin(ParameterList *parms, ParameterIterator *iter)
bool RNA_property_boolean_get_default_index(PointerRNA *ptr, PropertyRNA *prop, int index)
void RNA_property_boolean_set_index(PointerRNA *ptr, PropertyRNA *prop, int index, bool value)
void RNA_property_boolean_get_array_at_most(PointerRNA *ptr, PropertyRNA *prop, bool *values, int values_num)
PropertyRNA * RNA_struct_find_collection_property_check(PointerRNA &props, const char *name, const StructRNA *struct_type_check)
int RNA_property_string_maxlength(PropertyRNA *prop)
int RNA_property_int_get(PointerRNA *ptr, PropertyRNA *prop)
char * RNA_property_string_get_default_alloc(PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen, int *r_len)
IDProperty ** RNA_struct_idprops_p(PointerRNA *ptr)
void RNA_property_int_range(PointerRNA *ptr, PropertyRNA *prop, int *hardmin, int *hardmax)
int RNA_property_int_get_default_index(PointerRNA *ptr, PropertyRNA *prop, int index)
eStringPropertySearchFlag RNA_property_string_search_flag(PropertyRNA *prop)
void RNA_property_boolean_get_default_array(PointerRNA *ptr, PropertyRNA *prop, bool *values)
void RNA_collection_add(PointerRNA *ptr, const char *name, PointerRNA *r_value)
int RNA_property_collection_raw_array(PointerRNA *ptr, PropertyRNA *prop, PropertyRNA *itemprop, bool set, RawArray *array)
bool RNA_struct_in_public_namespace(const StructRNA *type)
bool RNA_property_pointer_poll(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *value)
bool RNA_struct_override_store(Main *bmain, PointerRNA *ptr_local, PointerRNA *ptr_reference, PointerRNA *ptr_storage, IDOverrideLibrary *liboverride)
bool RNA_property_boolean_get_default(PointerRNA *ptr, PropertyRNA *prop)
float RNA_float_get(PointerRNA *ptr, const char *name)
int RNA_property_int_get_index(PointerRNA *ptr, PropertyRNA *prop, int index)
void RNA_enum_set_identifier(bContext *C, PointerRNA *ptr, const char *name, const char *id)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
const char * RNA_property_ui_name(const PropertyRNA *prop, const PointerRNA *ptr)
const ListBaseT< PropertyRNA > * RNA_function_defined_parameters(FunctionRNA *func)
void RNA_float_get_array(PointerRNA *ptr, const char *name, float *values)
void RNA_parameter_list_free(ParameterList *parms)
bool RNA_property_copy(Main *bmain, PointerRNA *ptr, PointerRNA *fromptr, PropertyRNA *prop, int index, IDOverrideLibraryProperty *removed_oprop, IDOverrideLibraryPropertyOperation *removed_opop)
const char * RNA_struct_translation_context(const StructRNA *type)
bool RNA_property_path_from_ID_check(PointerRNA *ptr, PropertyRNA *prop)
int RNA_collection_length(PointerRNA *ptr, const char *name)
void RNA_property_enum_items_gettexted_all(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
void RNA_property_int_set_array_at_most(PointerRNA *ptr, PropertyRNA *prop, const int *values, int values_num)
void RNA_property_float_range(PointerRNA *ptr, PropertyRNA *prop, float *hardmin, float *hardmax)
std::string RNA_property_as_string(bContext *C, PointerRNA *ptr, PropertyRNA *prop, int index, int max_prop_length)
bool RNA_property_editable_index(const PointerRNA *ptr, PropertyRNA *prop, const int index)
StructRegisterFunc RNA_struct_register(StructRNA *type)
BlenderRNA RNA_blender_rna_get()
bool RNA_property_is_unlink(PropertyRNA *prop)
bool RNA_property_equals(Main *bmain, PointerRNA *ptr_a, PointerRNA *ptr_b, PropertyRNA *prop, eRNACompareMode mode)
void * RNA_property_py_data_get(PropertyRNA *prop)