Blender V5.3
rna_access.cc File Reference
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <limits>
#include <sstream>
#include <fmt/format.h>
#include "MEM_guardedalloc.h"
#include "DNA_ID.h"
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "DNA_windowmanager_types.h"
#include "BLI_dynstr.hh"
#include "BLI_listbase.hh"
#include "BLI_math_base_c.hh"
#include "BLI_mutex.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_utildefines.hh"
#include "BLT_translation.hh"
#include "BKE_anim_data.hh"
#include "BKE_collection.hh"
#include "BKE_context.hh"
#include "BKE_fcurve.hh"
#include "BKE_global.hh"
#include "BKE_idprop.hh"
#include "BKE_idtype.hh"
#include "BKE_lib_id.hh"
#include "BKE_lib_override.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BKE_node.hh"
#include "BKE_report.hh"
#include "CLG_log.h"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_path.hh"
#include "RNA_prototypes.hh"
#include "RNA_types.hh"
#include "UI_resources.hh"
#include "WM_api.hh"
#include "WM_message.hh"
#include "WM_types.hh"
#include "rna_access_internal.hh"
#include "rna_internal.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define USE_INT_IDPROPS_FOR_BOOLEAN_RNA_PROP
#define RAW_GET(dtype, var, raw, a)
#define RAW_SET(dtype, raw, a, var)

Functions

void blender::RNA_init ()
void blender::RNA_bpy_exit ()
void blender::RNA_exit ()
BLI_INLINE void blender::rna_pointer_refine (PointerRNA &r_ptr)
void blender::rna_pointer_create_with_ancestors (const PointerRNA &parent, StructRNA *type, void *data, PointerRNA &r_ptr)
PointerRNA blender::RNA_main_pointer_create (Main *main)
PointerRNA blender::RNA_id_pointer_create (ID *id)
PointerRNA blender::RNA_pointer_create_discrete (ID *id, StructRNA *type, void *data)
PointerRNA blender::RNA_pointer_create_with_parent (const PointerRNA &parent, StructRNA *type, void *data)
PointerRNA blender::RNA_pointer_create_id_subdata (ID &id, StructRNA *type, void *data)
PointerRNA blender::RNA_pointer_create_from_ancestor (const PointerRNA &ptr, const int ancestor_idx)
PointerRNA blender::RNA_blender_rna_pointer_create ()
PointerRNA blender::RNA_pointer_recast (PointerRNA *ptr)
void blender::rna_idproperty_touch (IDProperty *idprop)
IDProperty ** blender::RNA_struct_idprops_p (PointerRNA *ptr)
IDProperty * blender::RNA_struct_idprops (PointerRNA *ptr, bool create)
bool blender::RNA_struct_idprops_check (const StructRNA *srna)
IDProperty * blender::rna_idproperty_find (PointerRNA *ptr, const char *name)
IDProperty ** blender::RNA_struct_system_idprops_p (PointerRNA *ptr)
IDProperty * blender::RNA_struct_system_idprops (PointerRNA *ptr, bool create)
bool blender::RNA_struct_system_idprops_check (StructRNA *srna)
IDProperty * blender::rna_system_idproperty_find (PointerRNA *ptr, const char *name)
static void blender::rna_system_idproperty_free (PointerRNA *ptr, const char *name)
static int blender::rna_ensure_property_array_length (PointerRNA *ptr, PropertyRNA *prop)
static bool blender::rna_ensure_property_array_check (PropertyRNA *prop)
static void blender::rna_ensure_property_multi_array_length (const PointerRNA *ptr, PropertyRNA *prop, int length[])
static bool blender::rna_idproperty_verify_valid (PointerRNA *ptr, PropertyRNA *prop, IDProperty *idprop)
bool blender::rna_property_can_access_pointer_data (const PointerRNA &ptr, PropertyRNA &prop)
void blender::rna_property_rna_or_id_get (PropertyRNA *prop, PointerRNA *ptr, PropertyRNAOrID *r_prop_rna_or_id)
IDProperty * blender::rna_idproperty_check (PropertyRNA **prop, PointerRNA *ptr)
PropertyRNA * blender::rna_ensure_property (PropertyRNA *prop)
static const char * blender::rna_ensure_property_identifier (const PropertyRNA *prop)
static const char * blender::rna_ensure_property_description (const PropertyRNA *prop)
static const char * blender::rna_ensure_property_name (const PropertyRNA *prop)
StructRNA * blender::RNA_struct_find (const char *identifier)
const char * blender::RNA_struct_identifier (const StructRNA *type)
const char * blender::RNA_struct_ui_name (const StructRNA *type)
const char * blender::RNA_struct_ui_name_raw (const StructRNA *type)
int blender::RNA_struct_ui_icon (const StructRNA *type)
const char * blender::RNA_struct_ui_description (const StructRNA *type)
const char * blender::RNA_struct_ui_description_raw (const StructRNA *type)
const char * blender::RNA_struct_translation_context (const StructRNA *type)
PropertyRNA * blender::RNA_struct_name_property (const StructRNA *type)
const EnumPropertyItem * blender::RNA_struct_property_tag_defines (const StructRNA *type)
PropertyRNA * blender::RNA_struct_iterator_property (StructRNA *type)
std::string blender::RNA_struct_to_string (const StructRNA &type)
StructRNA * blender::RNA_struct_base (StructRNA *type)
const StructRNA * blender::RNA_struct_base_child_of (const StructRNA *type, const StructRNA *parent_type)
bool blender::RNA_struct_is_ID (const StructRNA *type)
bool blender::RNA_struct_in_public_namespace (const StructRNA *type)
bool blender::RNA_struct_idprops_datablock_allowed (const StructRNA *type)
bool blender::RNA_struct_idprops_contains_datablock (const StructRNA *type)
bool blender::RNA_struct_system_idprops_register_check (const StructRNA *type)
bool blender::RNA_struct_system_idprops_unset (PointerRNA *ptr, const char *identifier)
bool blender::RNA_struct_is_a (const StructRNA *type, const StructRNA *srna)
PropertyRNA * blender::RNA_struct_find_property (PointerRNA *ptr, const char *identifier)
PropertyRNA * blender::RNA_struct_find_property (PointerRNA *ptr, const UString identifier)
static const char * blender::rna_property_type_identifier (PropertyType prop_type)
PropertyRNA * blender::RNA_struct_find_property_check (PointerRNA &props, const char *name, const PropertyType property_type_check)
PropertyRNA * blender::RNA_struct_find_collection_property_check (PointerRNA &props, const char *name, const StructRNA *struct_type_check)
PropertyRNA * blender::rna_struct_find_nested (PointerRNA *ptr, StructRNA *srna)
bool blender::RNA_struct_contains_property (PointerRNA *ptr, PropertyRNA *prop_test)
uint blender::RNA_struct_count_properties (StructRNA *srna)
std::optional< AncestorPointerRNA > blender::RNA_struct_search_closest_ancestor_by_type (const PointerRNA *ptr, const StructRNA *srna)
const ListBaseT< PropertyRNA > * blender::RNA_struct_type_properties (StructRNA *srna)
PropertyRNA * blender::RNA_struct_type_find_property_no_base (StructRNA *srna, const UString identifier)
PropertyRNA * blender::RNA_struct_type_find_property (StructRNA *srna, const char *identifier)
FunctionRNA * blender::RNA_struct_find_function (StructRNA *srna, const char *identifier_c_str)
Span< std::unique_ptr< FunctionRNA > > blender::RNA_struct_type_functions (StructRNA *srna)
StructRegisterFunc blender::RNA_struct_register (StructRNA *type)
StructUnregisterFunc blender::RNA_struct_unregister (StructRNA *type)
void ** blender::RNA_struct_instance (PointerRNA *ptr)
void * blender::RNA_struct_py_type_get (StructRNA *srna)
void blender::RNA_struct_py_type_set (StructRNA *srna, void *py_type)
void * blender::RNA_struct_blender_type_get (StructRNA *srna)
void blender::RNA_struct_blender_type_set (StructRNA *srna, void *blender_type)
char * blender::RNA_struct_name_get_alloc_ex (PointerRNA *ptr, char *fixedbuf, int fixedlen, int *r_len, PropertyRNA **r_nameprop)
char * blender::RNA_struct_name_get_alloc (PointerRNA *ptr, char *fixedbuf, int fixedlen, int *r_len)
bool blender::RNA_struct_available_or_report (ReportList *reports, const char *identifier)
bool blender::RNA_struct_bl_idname_ok_or_report (ReportList *reports, const char *identifier, const char *sep)
const char * blender::RNA_property_identifier (const PropertyRNA *prop)
const char * blender::RNA_property_description (PropertyRNA *prop)
const DeprecatedRNA * blender::RNA_property_deprecated (const PropertyRNA *prop)
PropertyType blender::RNA_property_type (PropertyRNA *prop)
PropertySubType blender::RNA_property_subtype (PropertyRNA *prop)
PropertyUnit blender::RNA_property_unit (PropertyRNA *prop)
PropertyScaleType blender::RNA_property_ui_scale (PropertyRNA *prop)
int blender::RNA_property_flag (PropertyRNA *prop)
int blender::RNA_property_tags (PropertyRNA *prop)
PropertyPathTemplateType blender::RNA_property_path_template_type (PropertyRNA *prop)
bool blender::RNA_property_builtin (PropertyRNA *prop)
void * blender::RNA_property_py_data_get (PropertyRNA *prop)
int blender::RNA_property_array_length (PointerRNA *ptr, PropertyRNA *prop)
bool blender::RNA_property_array_check (PropertyRNA *prop)
int blender::RNA_property_array_dimension (const PointerRNA *ptr, PropertyRNA *prop, int length[])
int blender::RNA_property_multi_array_length (PointerRNA *ptr, PropertyRNA *prop, int dimension)
char blender::RNA_property_array_item_char (PropertyRNA *prop, int index)
int blender::RNA_property_array_item_index (PropertyRNA *prop, char name)
void blender::RNA_property_int_range (PointerRNA *ptr, PropertyRNA *prop, int *hardmin, int *hardmax)
void blender::RNA_property_int_ui_range (PointerRNA *ptr, PropertyRNA *prop, int *softmin, int *softmax, int *step)
void blender::RNA_property_float_range (PointerRNA *ptr, PropertyRNA *prop, float *hardmin, float *hardmax)
void blender::RNA_property_float_ui_range (PointerRNA *ptr, PropertyRNA *prop, float *softmin, float *softmax, float *step, float *precision)
int blender::RNA_property_float_clamp (PointerRNA *ptr, PropertyRNA *prop, float *value)
int blender::RNA_property_int_clamp (PointerRNA *ptr, PropertyRNA *prop, int *value)
int blender::RNA_property_string_maxlength (PropertyRNA *prop)
bool blender::RNA_property_string_is_utf8 (PropertyRNA *prop)
StructRNA * blender::RNA_property_pointer_type (PointerRNA *ptr, PropertyRNA *prop)
bool blender::RNA_property_pointer_poll (PointerRNA *ptr, PropertyRNA *prop, PointerRNA *value)
void blender::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)
void blender::RNA_property_enum_items (bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
void blender::RNA_property_enum_items_gettexted (bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
void blender::RNA_property_enum_items_gettexted_all (bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
bool blender::RNA_property_enum_value (bContext *C, PointerRNA *ptr, PropertyRNA *prop, const char *identifier, int *r_value)
bool blender::RNA_enum_identifier (const EnumPropertyItem *item, const int value, const char **r_identifier)
int blender::RNA_enum_bitflag_identifiers (const EnumPropertyItem *item, const int value, const char **r_identifier)
bool blender::RNA_enum_name (const EnumPropertyItem *item, const int value, const char **r_name)
bool blender::RNA_enum_name_gettexted (const EnumPropertyItem *item, int value, const char *translation_context, const char **r_name)
bool blender::RNA_enum_description (const EnumPropertyItem *item, const int value, const char **r_description)
int blender::RNA_enum_from_identifier (const EnumPropertyItem *item, const char *identifier)
bool blender::RNA_enum_value_from_identifier (const EnumPropertyItem *item, const char *identifier, int *r_value)
int blender::RNA_enum_from_name (const EnumPropertyItem *item, const char *name)
int blender::RNA_enum_from_value (const EnumPropertyItem *item, const int value)
uint blender::RNA_enum_items_count (const EnumPropertyItem *item)
bool blender::RNA_property_enum_identifier (bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **r_identifier)
bool blender::RNA_property_enum_name (bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **r_name)
bool blender::RNA_property_enum_name_gettexted (bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **r_name)
bool blender::RNA_property_enum_item_from_value (bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, EnumPropertyItem *r_item)
bool blender::RNA_property_enum_item_from_value_gettexted (bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, EnumPropertyItem *r_item)
int blender::RNA_property_enum_bitflag_identifiers (bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **r_identifier)
const char * blender::RNA_property_ui_name (const PropertyRNA *prop, const PointerRNA *ptr)
const char * blender::RNA_property_ui_name_raw (const PropertyRNA *prop, const PointerRNA *ptr)
const char * blender::RNA_property_ui_description (const PropertyRNA *prop, const PointerRNA *ptr)
const char * blender::RNA_property_ui_description_raw (const PropertyRNA *prop, const PointerRNA *ptr)
const char * blender::RNA_property_translation_context (const PropertyRNA *prop)
int blender::RNA_property_ui_icon (const PropertyRNA *prop)
bool blender::RNA_property_undo_check (const PropertyRNA *prop, const StructRNA *type)
static bool blender::rna_property_editable_do (const PointerRNA *ptr, PropertyRNA *prop_orig, const int index, const char **r_info)
bool blender::RNA_property_is_runtime (const PropertyRNA *prop)
bool blender::RNA_property_editable (const PointerRNA *ptr, PropertyRNA *prop)
bool blender::RNA_property_editable_info (const PointerRNA *ptr, PropertyRNA *prop, const char **r_info)
bool blender::RNA_property_editable_flag (const PointerRNA *ptr, PropertyRNA *prop)
bool blender::RNA_property_editable_index (const PointerRNA *ptr, PropertyRNA *prop, const int index)
bool blender::RNA_property_animateable (const PointerRNA *ptr, PropertyRNA *prop_orig)
bool blender::RNA_property_anim_editable (const PointerRNA *ptr, PropertyRNA *prop_orig)
bool blender::RNA_property_driver_editable (const PointerRNA *ptr, PropertyRNA *prop)
bool blender::RNA_property_animated (PointerRNA *ptr, PropertyRNA *prop)
bool blender::RNA_property_path_from_ID_check (PointerRNA *ptr, PropertyRNA *prop)
static void blender::rna_property_update (bContext *C, Main *bmain, Scene *scene, PointerRNA *ptr, PropertyRNA *prop)
bool blender::RNA_property_update_check (PropertyRNA *prop)
void blender::RNA_property_update (bContext *C, PointerRNA *ptr, PropertyRNA *prop)
void blender::RNA_property_update_main (Main *bmain, Scene *scene, PointerRNA *ptr, PropertyRNA *prop)
static bool blender::property_boolean_get (PointerRNA *ptr, PropertyRNAOrID &prop_rna_or_id)
bool blender::RNA_property_boolean_get (PointerRNA *ptr, PropertyRNA *prop)
void blender::RNA_property_boolean_set (PointerRNA *ptr, PropertyRNA *prop, bool value)
static void blender::rna_property_boolean_fill_default_array_values (const bool *defarr, int defarr_length, bool defvalue, int out_length, bool *r_values)
static void blender::rna_property_boolean_fill_default_array_values_from_ints (const int *defarr, int defarr_length, bool defvalue, int out_length, bool *r_values)
static void blender::rna_property_boolean_get_default_array_values (PointerRNA *ptr, BoolPropertyRNA *bprop, bool *r_values)
static void blender::property_boolean_get_array (PointerRNA *ptr, PropertyRNAOrID &prop_rna_or_id, MutableSpan< bool > r_values)
void blender::RNA_property_boolean_get_array (PointerRNA *ptr, PropertyRNA *prop, bool *values)
void blender::RNA_property_boolean_get_array_at_most (PointerRNA *ptr, PropertyRNA *prop, bool *values, int values_num)
bool blender::RNA_property_boolean_get_index (PointerRNA *ptr, PropertyRNA *prop, int index)
void blender::RNA_property_boolean_set_array (PointerRNA *ptr, PropertyRNA *prop, const bool *values)
void blender::RNA_property_boolean_set_array_at_most (PointerRNA *ptr, PropertyRNA *prop, const bool *values, int values_num)
void blender::RNA_property_boolean_set_index (PointerRNA *ptr, PropertyRNA *prop, int index, bool value)
bool blender::RNA_property_boolean_get_default (PointerRNA *ptr, PropertyRNA *prop)
void blender::RNA_property_boolean_get_default_array (PointerRNA *ptr, PropertyRNA *prop, bool *values)
bool blender::RNA_property_boolean_get_default_index (PointerRNA *ptr, PropertyRNA *prop, int index)
static int blender::property_int_get (PointerRNA *ptr, PropertyRNAOrID &prop_rna_or_id)
int blender::RNA_property_int_get (PointerRNA *ptr, PropertyRNA *prop)
void blender::RNA_property_int_set (PointerRNA *ptr, PropertyRNA *prop, int value)
static void blender::rna_property_int_fill_default_array_values (const int *defarr, int defarr_length, int defvalue, int out_length, int *r_values)
static void blender::rna_property_int_get_default_array_values (PointerRNA *ptr, IntPropertyRNA *iprop, int *r_values)
static void blender::property_int_get_array (PointerRNA *ptr, PropertyRNAOrID &prop_rna_or_id, MutableSpan< int > r_values)
void blender::RNA_property_int_get_array (PointerRNA *ptr, PropertyRNA *prop, int *values)
void blender::RNA_property_int_get_array_at_most (PointerRNA *ptr, PropertyRNA *prop, int *values, int values_num)
void blender::RNA_property_int_get_array_range (PointerRNA *ptr, PropertyRNA *prop, int values[2])
int blender::RNA_property_int_get_index (PointerRNA *ptr, PropertyRNA *prop, int index)
void blender::RNA_property_int_set_array (PointerRNA *ptr, PropertyRNA *prop, const int *values)
void blender::RNA_property_int_set_array_at_most (PointerRNA *ptr, PropertyRNA *prop, const int *values, int values_num)
void blender::RNA_property_int_set_index (PointerRNA *ptr, PropertyRNA *prop, int index, int value)
int blender::RNA_property_int_get_default (PointerRNA *ptr, PropertyRNA *prop)
bool blender::RNA_property_int_set_default (PropertyRNA *prop, int value)
void blender::RNA_property_int_get_default_array (PointerRNA *ptr, PropertyRNA *prop, int *values)
int blender::RNA_property_int_get_default_index (PointerRNA *ptr, PropertyRNA *prop, int index)
static float blender::property_float_get (PointerRNA *ptr, PropertyRNAOrID &prop_rna_or_id)
float blender::RNA_property_float_get (PointerRNA *ptr, PropertyRNA *prop)
void blender::RNA_property_float_set (PointerRNA *ptr, PropertyRNA *prop, float value)
static void blender::rna_property_float_fill_default_array_values (const float *defarr, int defarr_length, float defvalue, int out_length, float *r_values)
static void blender::rna_property_float_fill_default_array_values_double (const double *default_array, const int default_array_len, const double default_value, const int out_length, float *r_values)
static void blender::rna_property_float_get_default_array_values (PointerRNA *ptr, FloatPropertyRNA *fprop, float *r_values)
static void blender::property_float_get_array (PointerRNA *ptr, PropertyRNAOrID &prop_rna_or_id, MutableSpan< float > r_values)
void blender::RNA_property_float_get_array (PointerRNA *ptr, PropertyRNA *prop, float *values)
void blender::RNA_property_float_get_array_at_most (PointerRNA *ptr, PropertyRNA *prop, float *values, int values_num)
void blender::RNA_property_float_get_array_range (PointerRNA *ptr, PropertyRNA *prop, float values[2])
float blender::RNA_property_float_get_index (PointerRNA *ptr, PropertyRNA *prop, int index)
void blender::RNA_property_float_set_array (PointerRNA *ptr, PropertyRNA *prop, const float *values)
void blender::RNA_property_float_set_array_at_most (PointerRNA *ptr, PropertyRNA *prop, const float *values, int values_num)
void blender::RNA_property_float_set_index (PointerRNA *ptr, PropertyRNA *prop, int index, float value)
float blender::RNA_property_float_get_default (PointerRNA *ptr, PropertyRNA *prop)
bool blender::RNA_property_float_set_default (PropertyRNA *prop, float value)
void blender::RNA_property_float_get_default_array (PointerRNA *ptr, PropertyRNA *prop, float *values)
float blender::RNA_property_float_get_default_index (PointerRNA *ptr, PropertyRNA *prop, int index)
static size_t blender::property_string_length_storage (PointerRNA *ptr, PropertyRNAOrID &prop_rna_or_id)
static std::string blender::property_string_get (PointerRNA *ptr, PropertyRNAOrID &prop_rna_or_id)
std::string blender::RNA_property_string_get (PointerRNA *ptr, PropertyRNA *prop)
void blender::RNA_property_string_get (PointerRNA *ptr, PropertyRNA *prop, char *value)
char * blender::RNA_property_string_get_alloc (PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen, int *r_len)
int blender::RNA_property_string_length (PointerRNA *ptr, PropertyRNA *prop)
void blender::RNA_property_string_set (PointerRNA *ptr, PropertyRNA *prop, const char *value)
void blender::RNA_property_string_set_bytes (PointerRNA *ptr, PropertyRNA *prop, const char *value, int len)
void blender::RNA_property_string_get_default (PointerRNA *ptr, PropertyRNA *prop, char *value, const int value_maxncpy)
char * blender::RNA_property_string_get_default_alloc (PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen, int *r_len)
int blender::RNA_property_string_default_length (PointerRNA *ptr, PropertyRNA *prop)
eStringPropertySearchFlag blender::RNA_property_string_search_flag (PropertyRNA *prop)
void blender::RNA_property_string_search (const bContext *C, PointerRNA *ptr, PropertyRNA *prop, const char *edit_text, FunctionRef< void(StringPropertySearchVisitParams)> visit_fn)
std::optional< std::string > blender::RNA_property_string_path_filter (const bContext *C, PointerRNA *ptr, PropertyRNA *prop)
static int blender::property_enum_get (PointerRNA *ptr, PropertyRNAOrID &prop_rna_or_id)
int blender::RNA_property_enum_get (PointerRNA *ptr, PropertyRNA *prop)
void blender::RNA_property_enum_set (PointerRNA *ptr, PropertyRNA *prop, int value)
int blender::RNA_property_enum_get_default (PointerRNA *ptr, PropertyRNA *prop)
int blender::RNA_property_enum_step (const bContext *C, PointerRNA *ptr, PropertyRNA *prop, int from_value, int step)
static PointerRNA blender::property_pointer_get (PointerRNA *ptr, PropertyRNA *prop, const bool do_create)
PointerRNA blender::RNA_property_pointer_get (PointerRNA *ptr, PropertyRNA *prop)
PointerRNA blender::RNA_property_pointer_get_never_create (PointerRNA *ptr, PropertyRNA *prop)
void blender::RNA_property_pointer_set (PointerRNA *ptr, PropertyRNA *prop, PointerRNA ptr_value, ReportList *reports)
PointerRNA blender::RNA_property_pointer_get_default (Main &bmain, PointerRNA &, PropertyRNA &prop)
void blender::RNA_property_pointer_add (PointerRNA *ptr, PropertyRNA *prop)
void blender::RNA_property_pointer_remove (PointerRNA *ptr, PropertyRNA *prop)
static void blender::rna_property_collection_get_idp (CollectionPropertyIterator *iter)
void blender::RNA_property_collection_begin (PointerRNA *ptr, PropertyRNA *prop, CollectionPropertyIterator *iter)
void blender::RNA_property_collection_next (CollectionPropertyIterator *iter)
void blender::RNA_property_collection_skip (CollectionPropertyIterator *iter, int num)
void blender::RNA_property_collection_end (CollectionPropertyIterator *iter)
int blender::RNA_property_collection_length (PointerRNA *ptr, PropertyRNA *prop)
bool blender::RNA_property_collection_is_empty (PointerRNA *ptr, PropertyRNA *prop)
static bool blender::property_collection_liboverride_editable (PointerRNA *ptr, PropertyRNA *prop, bool *r_is_liboverride)
void blender::RNA_property_collection_add (PointerRNA *ptr, PropertyRNA *prop, PointerRNA *r_ptr)
bool blender::RNA_property_collection_remove (PointerRNA *ptr, PropertyRNA *prop, int key)
eRNAStatus blender::RNA_property_collection_move (PointerRNA *ptr, PropertyRNA *prop, int src_index, int dst_index)
void blender::RNA_property_collection_clear (PointerRNA *ptr, PropertyRNA *prop)
int blender::RNA_property_collection_lookup_index (PointerRNA *ptr, PropertyRNA *prop, const PointerRNA *t_ptr)
bool blender::RNA_property_collection_lookup_int_has_fn (PropertyRNA *prop)
bool blender::RNA_property_collection_lookup_string_has_fn (PropertyRNA *prop)
bool blender::RNA_property_collection_lookup_string_has_nameprop (PropertyRNA *prop)
bool blender::RNA_property_collection_lookup_string_supported (PropertyRNA *prop)
bool blender::RNA_property_collection_lookup_int (PointerRNA *ptr, PropertyRNA *prop, int key, PointerRNA *r_ptr)
bool blender::RNA_property_collection_lookup_string_index (PointerRNA *ptr, PropertyRNA *prop, const char *key, PointerRNA *r_ptr, int *r_index)
bool blender::RNA_property_collection_lookup_string (PointerRNA *ptr, PropertyRNA *prop, const char *key, PointerRNA *r_ptr)
bool blender::RNA_property_collection_assign_int (PointerRNA *ptr, PropertyRNA *prop, const int key, const PointerRNA *assign_ptr)
std::optional< PointerRNA > blender::RNA_property_collection_type_get (PointerRNA *ptr, PropertyRNA *prop)
int blender::RNA_property_collection_raw_array (PointerRNA *ptr, PropertyRNA *prop, PropertyRNA *itemprop, bool set, RawArray *array)
size_t blender::RNA_raw_type_sizeof (RawPropertyType type)
static int blender::rna_property_array_length_all_dimensions (PointerRNA *ptr, PropertyRNA *prop)
static int blender::rna_raw_access (ReportList *reports, PointerRNA *ptr, PropertyRNA *prop, const char *propname, void *inarray, RawPropertyType intype, int inlen, int set)
RawPropertyType blender::RNA_property_raw_type (PropertyRNA *prop)
int blender::RNA_property_collection_raw_get (ReportList *reports, PointerRNA *ptr, PropertyRNA *prop, const char *propname, void *array, RawPropertyType type, int len)
int blender::RNA_property_collection_raw_set (ReportList *reports, PointerRNA *ptr, PropertyRNA *prop, const char *propname, void *array, RawPropertyType type, int len)
static void blender::update_idprop_bool (PointerRNA &rna_ptr, PropertyRNA &rna_prop, IDProperty &idprop)
static void blender::update_idprop_int (PointerRNA &rna_ptr, PropertyRNA &rna_prop, IDProperty &idprop)
static void blender::update_idprop_float (PointerRNA &rna_ptr, PropertyRNA &rna_prop, IDProperty &idprop)
static void blender::update_idprop_id (Main &bmain, PointerRNA &rna_ptr, PropertyRNA &rna_prop, IDProperty &idprop)
static void blender::sync_system_properties (Main &bmain, PointerRNA &ptr, IDProperty &idprops, const bool ensure)
void blender::RNA_sync_system_properties (Main &bmain, PointerRNA &ptr, IDProperty &idprops)
void blender::RNA_ensure_and_sync_system_properties (Main &bmain, PointerRNA &ptr, IDProperty &idprops)
void blender::rna_iterator_listbase_begin (CollectionPropertyIterator *iter, PointerRNA *ptr, ListBase *lb, IteratorSkipFunc skip)
void blender::rna_iterator_listbase_next (CollectionPropertyIterator *iter)
void * blender::rna_iterator_listbase_get (CollectionPropertyIterator *iter)
void blender::rna_iterator_listbase_end (CollectionPropertyIterator *)
PointerRNA blender::rna_listbase_lookup_int (PointerRNA *ptr, StructRNA *type, ListBase *lb, int index)
void blender::rna_iterator_array_begin (CollectionPropertyIterator *iter, PointerRNA *ptr, void *data, size_t itemsize, int64_t length, bool free_ptr, IteratorSkipFunc skip)
void blender::rna_iterator_array_next (CollectionPropertyIterator *iter)
void * blender::rna_iterator_array_get (CollectionPropertyIterator *iter)
void * blender::rna_iterator_array_dereference_get (CollectionPropertyIterator *iter)
void blender::rna_iterator_array_end (CollectionPropertyIterator *iter)
PointerRNA blender::rna_array_lookup_int (PointerRNA *ptr, StructRNA *type, void *data, size_t itemsize, int64_t length, int64_t index)
bool blender::RNA_boolean_get (PointerRNA *ptr, const char *name)
void blender::RNA_boolean_set (PointerRNA *ptr, const char *name, bool value)
void blender::RNA_boolean_get_array (PointerRNA *ptr, const char *name, bool *values)
void blender::RNA_boolean_set_array (PointerRNA *ptr, const char *name, const bool *values)
int blender::RNA_int_get (PointerRNA *ptr, const char *name)
void blender::RNA_int_set (PointerRNA *ptr, const char *name, int value)
void blender::RNA_int_get_array (PointerRNA *ptr, const char *name, int *values)
void blender::RNA_int_set_array (PointerRNA *ptr, const char *name, const int *values)
float blender::RNA_float_get (PointerRNA *ptr, const char *name)
void blender::RNA_float_set (PointerRNA *ptr, const char *name, float value)
void blender::RNA_float_get_array (PointerRNA *ptr, const char *name, float *values)
void blender::RNA_float_set_array (PointerRNA *ptr, const char *name, const float *values)
int blender::RNA_enum_get (PointerRNA *ptr, const char *name)
void blender::RNA_enum_set (PointerRNA *ptr, const char *name, int value)
void blender::RNA_enum_set_identifier (bContext *C, PointerRNA *ptr, const char *name, const char *id)
bool blender::RNA_enum_is_equal (bContext *C, PointerRNA *ptr, const char *name, const char *enumname)
bool blender::RNA_enum_value_from_id (const EnumPropertyItem *item, const char *identifier, int *r_value)
bool blender::RNA_enum_id_from_value (const EnumPropertyItem *item, int value, const char **r_identifier)
bool blender::RNA_enum_icon_from_value (const EnumPropertyItem *item, int value, int *r_icon)
bool blender::RNA_enum_name_from_value (const EnumPropertyItem *item, int value, const char **r_name)
std::string blender::RNA_string_get (PointerRNA *ptr, const char *name)
void blender::RNA_string_get (PointerRNA *ptr, const char *name, char *value)
char * blender::RNA_string_get_alloc (PointerRNA *ptr, const char *name, char *fixedbuf, int fixedlen, int *r_len)
int blender::RNA_string_length (PointerRNA *ptr, const char *name)
void blender::RNA_string_set (PointerRNA *ptr, const char *name, const char *value)
PointerRNA blender::RNA_pointer_get (PointerRNA *ptr, const char *name)
void blender::RNA_pointer_set (PointerRNA *ptr, const char *name, PointerRNA ptr_value)
void blender::RNA_pointer_add (PointerRNA *ptr, const char *name)
void blender::RNA_collection_begin (PointerRNA *ptr, const char *name, CollectionPropertyIterator *iter)
void blender::RNA_collection_add (PointerRNA *ptr, const char *name, PointerRNA *r_value)
void blender::RNA_collection_clear (PointerRNA *ptr, const char *name)
int blender::RNA_collection_length (PointerRNA *ptr, const char *name)
bool blender::RNA_collection_is_empty (PointerRNA *ptr, const char *name)
bool blender::RNA_property_is_set_ex (PointerRNA *ptr, PropertyRNA *prop, bool use_ghost)
bool blender::RNA_property_is_set (PointerRNA *ptr, PropertyRNA *prop)
void blender::RNA_property_unset (PointerRNA *ptr, PropertyRNA *prop)
bool blender::RNA_struct_property_is_set_ex (PointerRNA *ptr, const char *identifier, bool use_ghost)
bool blender::RNA_struct_property_is_set (PointerRNA *ptr, const char *identifier)
void blender::RNA_struct_property_unset (PointerRNA *ptr, const char *identifier)
bool blender::RNA_property_is_idprop (const PropertyRNA *prop)
bool blender::RNA_property_is_unlink (PropertyRNA *prop)
std::string blender::RNA_pointer_as_string_id (bContext *C, PointerRNA *ptr)
static std::optional< std::string > blender::rna_pointer_as_string__bldata (PointerRNA *ptr)
std::optional< std::string > blender::RNA_pointer_as_string (bContext *C, PointerRNA *ptr, PropertyRNA *prop_ptr, PointerRNA *ptr_prop)
std::string blender::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)
std::string blender::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)
std::string blender::RNA_function_as_string_keywords (bContext *C, FunctionRNA *func, const bool as_function, const bool all_args, const int max_prop_length)
static const char * blender::bool_as_py_string (const int var)
static void * blender::rna_array_as_string_alloc (int type, int len, PointerRNA *ptr, PropertyRNA *prop, void **r_buf_end)
static void blender::rna_array_as_string_elem (int type, void **buf_p, int len, std::stringstream &ss)
static void blender::rna_array_as_string_recursive (int type, void **buf_p, int totdim, const int *dim_size, std::stringstream &ss)
static void blender::rna_array_as_string (int type, int len, PointerRNA *ptr, PropertyRNA *prop, std::stringstream &ss)
std::string blender::RNA_property_as_string (bContext *C, PointerRNA *ptr, PropertyRNA *prop, int index, int max_prop_length)
const char * blender::RNA_function_identifier (FunctionRNA *func)
const char * blender::RNA_function_ui_description (FunctionRNA *func)
const char * blender::RNA_function_ui_description_raw (FunctionRNA *func)
int blender::RNA_function_flag (FunctionRNA *func)
int blender::RNA_function_defined (FunctionRNA *func)
PropertyRNA * blender::RNA_function_get_parameter (PointerRNA *, FunctionRNA *func, int index)
PropertyRNA * blender::RNA_function_find_parameter (PointerRNA *, FunctionRNA *func, const char *identifier)
const ListBaseT< PropertyRNA > * blender::RNA_function_defined_parameters (FunctionRNA *func)
int blender::RNA_parameter_flag (PropertyRNA *prop)
ParameterList * blender::RNA_parameter_list_create (ParameterList *parms, PointerRNA *, FunctionRNA *func)
void blender::RNA_parameter_list_free (ParameterList *parms)
int blender::RNA_parameter_list_size (const ParameterList *parms)
int blender::RNA_parameter_list_arg_count (const ParameterList *parms)
int blender::RNA_parameter_list_ret_count (const ParameterList *parms)
void blender::RNA_parameter_list_begin (ParameterList *parms, ParameterIterator *iter)
void blender::RNA_parameter_list_next (ParameterIterator *iter)
void blender::RNA_parameter_list_end (ParameterIterator *)
void blender::RNA_parameter_get (ParameterList *parms, PropertyRNA *parm, void **r_value)
void blender::RNA_parameter_get_lookup (ParameterList *parms, const char *identifier, void **r_value)
void blender::RNA_parameter_set (ParameterList *parms, PropertyRNA *parm, const void *value)
void blender::RNA_parameter_set_lookup (ParameterList *parms, const char *identifier, const void *value)
int blender::RNA_parameter_dynamic_length_get (ParameterList *parms, PropertyRNA *parm)
void blender::RNA_parameter_dynamic_length_set (ParameterList *parms, PropertyRNA *parm, int length)
int blender::RNA_parameter_dynamic_length_get_data (ParameterList *, PropertyRNA *parm, void *data)
void blender::RNA_parameter_dynamic_length_set_data (ParameterList *, PropertyRNA *parm, void *data, int length)
int blender::RNA_function_call (bContext *C, ReportList *reports, PointerRNA *ptr, FunctionRNA *func, ParameterList *parms)
std::optional< StringRefNull > blender::RNA_translate_ui_text (const char *text, const char *text_ctxt, StructRNA *type, PropertyRNA *prop, int translate)
bool blender::RNA_property_reset (Main *bmain, PointerRNA *ptr, PropertyRNA *prop, int index)
bool blender::RNA_property_assign_default (PointerRNA *ptr, PropertyRNA *prop)
void blender::_RNA_warning (const char *format,...)
bool blender::RNA_path_resolved_create (PointerRNA *ptr, PropertyRNA *prop, const int prop_index, PathResolvedRNA *r_anim_rna)
void blender::RNA_struct_state_owner_set (const char *name)
const char * blender::RNA_struct_state_owner_get ()

Variables

static CLG_LogRef blender::LOG = {"rna.access"}
static PropertyRNA * blender::typemap [IDP_NUMTYPES]
static PropertyRNA * blender::arraytypemap [IDP_NUMTYPES]
static char blender::rna_struct_state_owner [128]

Macro Definition Documentation

◆ RAW_GET

#define RAW_GET ( dtype,
var,
raw,
a )

Definition at line 5500 of file rna_access.cc.

Referenced by blender::rna_raw_access().

◆ RAW_SET

#define RAW_SET ( dtype,
raw,
a,
var )

Definition at line 5542 of file rna_access.cc.

Referenced by blender::rna_raw_access().

◆ USE_INT_IDPROPS_FOR_BOOLEAN_RNA_PROP

#define USE_INT_IDPROPS_FOR_BOOLEAN_RNA_PROP

The boolean IDProperty type isn't supported in old versions. In order to keep forward compatibility for a period of time (until 4.0), save boolean RNA properties as integer IDProperties.

Definition at line 84 of file rna_access.cc.