Blender V5.0
RNA_define.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
12
13#include <float.h>
14#include <inttypes.h>
15#include <limits.h>
16
17#include "DNA_listBase.h"
18
19#include "RNA_types.hh"
20
21#ifdef UNIT_TEST
22# define RNA_MAX_ARRAY_LENGTH 64
23#else
24# define RNA_MAX_ARRAY_LENGTH 64
25#endif
26
27#define RNA_MAX_ARRAY_DIMENSION 3
28
29/* Blender RNA */
30
31struct Scene;
32
34void RNA_define_free(BlenderRNA *brna);
35void RNA_free(BlenderRNA *brna);
36
50void RNA_define_verify_sdna(bool verify);
51void RNA_define_animate_sdna(bool animate);
52void RNA_define_fallback_property_update(int noteflag, const char *updatefunc);
57void RNA_define_lib_overridable(bool make_overridable);
58
59void RNA_init();
60void RNA_bpy_exit();
61void RNA_exit();
62
63/* Struct */
64
68StructRNA *RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom);
69StructRNA *RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from);
70void RNA_def_struct_sdna(StructRNA *srna, const char *structname);
71void RNA_def_struct_sdna_from(StructRNA *srna, const char *structname, const char *propname);
73void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname);
74void RNA_def_struct_flag(StructRNA *srna, int flag);
76void RNA_def_struct_property_tags(StructRNA *srna, const EnumPropertyItem *prop_tag_defines);
77void RNA_def_struct_refine_func(StructRNA *srna, const char *refine);
78void RNA_def_struct_idprops_func(StructRNA *srna, const char *idproperties);
82void RNA_def_struct_system_idprops_func(StructRNA *srna, const char *system_idproperties);
84 const char *reg,
85 const char *unreg,
86 const char *instance);
95void RNA_def_struct_path_func(StructRNA *srna, const char *path);
99void RNA_def_struct_identifier_no_struct_map(StructRNA *srna, const char *identifier);
100void RNA_def_struct_identifier(BlenderRNA *brna, StructRNA *srna, const char *identifier);
101void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description);
102void RNA_def_struct_ui_icon(StructRNA *srna, int icon);
104void RNA_struct_free(BlenderRNA *brna, StructRNA *srna);
105
106void RNA_def_struct_translation_context(StructRNA *srna, const char *context);
107
108/* Compact Property Definitions */
109
111
113 const char *identifier,
114 bool default_value,
115 const char *ui_name,
116 const char *ui_description);
118 const char *identifier,
119 int len,
120 const bool *default_value,
121 const char *ui_name,
122 const char *ui_description);
124 const char *identifier,
125 int len,
126 const bool *default_value,
127 const char *ui_name,
128 const char *ui_description);
130 const char *identifier,
131 int len,
132 const bool *default_value,
133 const char *ui_name,
134 const char *ui_description);
136 const char *identifier,
137 int len,
138 const bool *default_value,
139 const char *ui_name,
140 const char *ui_description);
141
143 const char *identifier,
144 int default_value,
145 int hardmin,
146 int hardmax,
147 const char *ui_name,
148 const char *ui_description,
149 int softmin,
150 int softmax);
152 const char *identifier,
153 int len,
154 const int *default_value,
155 int hardmin,
156 int hardmax,
157 const char *ui_name,
158 const char *ui_description,
159 int softmin,
160 int softmax);
162 const char *identifier,
163 int len,
164 const int *default_value,
165 int hardmin,
166 int hardmax,
167 const char *ui_name,
168 const char *ui_description,
169 int softmin,
170 int softmax);
171
173 const char *identifier,
174 const char *default_value,
175 int maxlen,
176 const char *ui_name,
177 const char *ui_description);
179 const char *identifier,
180 const char *default_value,
181 int maxlen,
182 const char *ui_name,
183 const char *ui_description);
185 const char *identifier,
186 const char *default_value,
187 int maxlen,
188 const char *ui_name,
189 const char *ui_description);
191 const char *identifier,
192 const char *default_value,
193 int maxlen,
194 const char *ui_name,
195 const char *ui_description);
196
198 const char *identifier,
199 const EnumPropertyItem *items,
200 int default_value,
201 const char *ui_name,
202 const char *ui_description);
207 const char *identifier,
208 const EnumPropertyItem *items,
209 int default_value,
210 const char *ui_name,
211 const char *ui_description);
213
215 const char *identifier,
216 float default_value,
217 float hardmin,
218 float hardmax,
219 const char *ui_name,
220 const char *ui_description,
221 float softmin,
222 float softmax);
224 const char *identifier,
225 int len,
226 const float *default_value,
227 float hardmin,
228 float hardmax,
229 const char *ui_name,
230 const char *ui_description,
231 float softmin,
232 float softmax);
234 const char *identifier,
235 int len,
236 const float *default_value,
237 float hardmin,
238 float hardmax,
239 const char *ui_name,
240 const char *ui_description,
241 float softmin,
242 float softmax);
244 const char *identifier,
245 int len,
246 const float *default_value,
247 float hardmin,
248 float hardmax,
249 const char *ui_name,
250 const char *ui_description,
251 float softmin,
252 float softmax);
254 const char *identifier,
255 int rows,
256 int columns,
257 const float *default_value,
258 float hardmin,
259 float hardmax,
260 const char *ui_name,
261 const char *ui_description,
262 float softmin,
263 float softmax);
265 const char *identifier,
266 int len,
267 const float *default_value,
268 float hardmin,
269 float hardmax,
270 const char *ui_name,
271 const char *ui_description,
272 float softmin,
273 float softmax);
275 const char *identifier,
276 int len,
277 const float *default_value,
278 float hardmin,
279 float hardmax,
280 const char *ui_name,
281 const char *ui_description,
282 float softmin,
283 float softmax);
285 const char *identifier,
286 float default_value,
287 float hardmin,
288 float hardmax,
289 const char *ui_name,
290 const char *ui_description,
291 float softmin,
292 float softmax);
294 const char *identifier,
295 int len,
296 const float *default_value,
297 float hardmin,
298 float hardmax,
299 const char *ui_name,
300 const char *ui_description,
301 float softmin,
302 float softmax);
303
304#if 0
305PropertyRNA *RNA_def_float_dynamic_array(StructOrFunctionRNA *cont,
306 const char *identifier,
307 float hardmin,
308 float hardmax,
309 const char *ui_name,
310 const char *ui_description,
311 float softmin,
312 float softmax,
313 unsigned int dimension,
314 unsigned short dim_size[]);
315#endif
316
318 const char *identifier,
319 float default_value,
320 float hardmin,
321 float hardmax,
322 const char *ui_name,
323 const char *ui_description,
324 float softmin,
325 float softmax);
327 const char *identifier,
328 float default_value,
329 float hardmin,
330 float hardmax,
331 const char *ui_name,
332 const char *ui_description,
333 float softmin,
334 float softmax);
335
337 const char *identifier,
338 const char *type,
339 const char *ui_name,
340 const char *ui_description);
342 const char *identifier,
343 StructRNA *type,
344 const char *ui_name,
345 const char *ui_description);
346
348 const char *identifier,
349 const char *type,
350 const char *ui_name,
351 const char *ui_description);
353 const char *identifier,
354 StructRNA *type,
355 const char *ui_name,
356 const char *ui_description);
357
358/* Extended Property Definitions */
359
361 const char *identifier,
362 int type,
363 int subtype);
364
374 const char *structname,
375 const char *propname,
376 int64_t booleanbit);
378 const char *structname,
379 const char *propname,
380 int64_t booleanbit);
396 PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit, int len);
397void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname);
398void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname);
399void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname);
416void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname);
435 const char *structname,
436 const char *propname);
438 const char *structname,
439 const char *propname);
441 const char *structname,
442 const char *propname,
443 const char *lengthpropname);
444
449
457
465void RNA_def_property_tags(PropertyRNA *prop, int tags);
468void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[]);
469void RNA_def_property_range(PropertyRNA *prop, double min, double max);
470
476void RNA_def_property_enum_native_type(PropertyRNA *prop, const char *native_enum_type);
477void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength);
478void RNA_def_property_struct_type(PropertyRNA *prop, const char *type);
480 PropertyRNA *prop,
481 StructRNA *type);
482
483void RNA_def_property_boolean_default(PropertyRNA *prop, bool value);
485void RNA_def_property_int_default(PropertyRNA *prop, int value);
487void RNA_def_property_float_default(PropertyRNA *prop, float value);
492void RNA_def_property_enum_default(PropertyRNA *prop, int value);
493void RNA_def_property_string_default(PropertyRNA *prop, const char *value);
494
495void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description);
496void RNA_def_property_ui_name_func(PropertyRNA *prop, const char *name_func);
497
499 const char *note,
500 short version,
501 short removal_version);
502
515 PropertyRNA *prop, double min, double max, double step, int precision);
517void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive);
518
519void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *updatefunc);
520void RNA_def_property_editable_func(PropertyRNA *prop, const char *editable);
521void RNA_def_property_editable_array_func(PropertyRNA *prop, const char *editable);
522
529 const char *diff,
530 const char *store,
531 const char *apply);
532
533using RNAPropertyUpdateFunc = void (*)(Main *, Scene *, PointerRNA *);
536 PropertyRNA *prop);
537
541void RNA_def_property_update_notifier(PropertyRNA *prop, int noteflag);
542void RNA_def_property_poll_runtime(PropertyRNA *prop, const void *func);
543
544void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength);
545void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set);
547 const char *get,
548 const char *set,
549 const char *range);
551 const char *get,
552 const char *set,
553 const char *range);
555 const char *get,
556 const char *set,
557 const char *item);
559 const char *get,
560 const char *length,
561 const char *set);
563 const char *search,
564 eStringPropertySearchFlag search_flag);
567 PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll);
569 const char *begin,
570 const char *next,
571 const char *end,
572 const char *get,
573 const char *length,
574 const char *lookupint,
575 const char *lookupstring,
576 const char *assignint);
577
578void RNA_def_property_float_default_func(PropertyRNA *prop, const char *get_default);
579void RNA_def_property_int_default_func(PropertyRNA *prop, const char *get_default);
580void RNA_def_property_boolean_default_func(PropertyRNA *prop, const char *get_default);
581void RNA_def_property_enum_default_func(PropertyRNA *prop, const char *get_default);
582
583void RNA_def_property_srna(PropertyRNA *prop, const char *type);
584void RNA_def_py_data(PropertyRNA *prop, void *py_data);
585
586/* API to define callbacks for runtime-defined properties (mainly for Operators, and from the
587 * Python `bpy.props` API).
588 *
589 * These expect 'extended' versions of the callbacks, with both the StructRNA owner and the
590 * PropertyRNA as first arguments.
591 *
592 * The 'Transform' ones allow to add a transform step (applied after getting, or before setting the
593 * value), which only modifies the value, but does not handle actual storage. Currently only used
594 * by `bpy`, more details in the documentation of #BPyPropStore.
595 */
599 BooleanPropertyGetTransformFunc get_transform_fn,
600 BooleanPropertySetTransformFunc set_transform_fn);
602 PropertyRNA *prop,
606 BooleanArrayPropertySetTransformFunc set_transform_fn);
608 IntPropertyGetFunc getfunc,
609 IntPropertySetFunc setfunc,
610 IntPropertyRangeFunc rangefunc,
611 IntPropertyGetTransformFunc get_transform_fn,
612 IntPropertySetTransformFunc set_transform_fn);
616 IntPropertyRangeFunc rangefunc,
617 IntArrayPropertyGetTransformFunc get_transform_fn,
618 IntArrayPropertySetTransformFunc set_transform_fn);
620 FloatPropertyGetFunc getfunc,
621 FloatPropertySetFunc setfunc,
622 FloatPropertyRangeFunc rangefunc,
623 FloatPropertyGetTransformFunc get_transform_fn,
624 FloatPropertySetTransformFunc set_transform_fn);
626 PropertyRNA *prop,
629 FloatPropertyRangeFunc rangefunc,
630 FloatArrayPropertyGetTransformFunc get_transform_fn,
631 FloatArrayPropertySetTransformFunc set_transform_fn);
633 EnumPropertyGetFunc getfunc,
634 EnumPropertySetFunc setfunc,
635 EnumPropertyItemFunc itemfunc,
636 EnumPropertyGetTransformFunc get_transform_fn,
637 EnumPropertySetTransformFunc set_transform_fn);
639 StringPropertyGetFunc getfunc,
640 StringPropertyLengthFunc lengthfunc,
641 StringPropertySetFunc setfunc,
642 StringPropertyGetTransformFunc get_transform_fn,
643 StringPropertySetTransformFunc set_transform_fn);
645 StringPropertySearchFunc search_fn,
646 eStringPropertySearchFlag search_flag);
647
648void RNA_def_property_translation_context(PropertyRNA *prop, const char *context);
649
650/* Function */
651
652FunctionRNA *RNA_def_function(StructRNA *srna, const char *identifier, const char *call);
653FunctionRNA *RNA_def_function_runtime(StructRNA *srna, const char *identifier, CallFunc call);
659void RNA_def_function_flag(FunctionRNA *func, int flag);
660void RNA_def_function_ui_description(FunctionRNA *func, const char *description);
661
663 PropertyFlag flag_property,
664 ParameterFlag flag_parameter);
666 PropertyFlag flag_property,
667 ParameterFlag flag_parameter);
669 PropertyPathTemplateType path_template_type);
670
671/* Dynamic Enums
672 * strings are not freed, assumed pointing to static location. */
673
674void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item);
675void RNA_enum_item_add_separator(EnumPropertyItem **items, int *totitem);
676void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item);
678 int *totitem,
679 const EnumPropertyItem *item,
680 int value);
681void RNA_enum_item_end(EnumPropertyItem **items, int *totitem);
682
683/* Memory management */
684
691int RNA_def_property_free_identifier(StructOrFunctionRNA *cont_, const char *identifier);
692
694 const char *identifier,
695 void **handle);
697
699 void (*py_data_clear_fn)(PropertyRNA *prop));
700
701/* Utilities. */
702
703const char *RNA_property_typename(PropertyType type);
704#define IS_DNATYPE_FLOAT_COMPAT(_str) (strcmp(_str, "float") == 0 || strcmp(_str, "double") == 0)
705#define IS_DNATYPE_INT_COMPAT(_str) \
706 (strcmp(_str, "int") == 0 || strcmp(_str, "short") == 0 || strcmp(_str, "char") == 0 || \
707 strcmp(_str, "uchar") == 0 || strcmp(_str, "ushort") == 0 || strcmp(_str, "int8_t") == 0)
708#define IS_DNATYPE_BOOLEAN_COMPAT(_str) \
709 (IS_DNATYPE_INT_COMPAT(_str) || strcmp(_str, "int64_t") == 0 || strcmp(_str, "uint64_t") == 0)
710
711void RNA_identifier_sanitize(char *identifier, int property);
712
713/* Common arguments for length. */
714
715extern const int rna_matrix_dimsize_3x3[];
716extern const int rna_matrix_dimsize_4x4[];
717extern const int rna_matrix_dimsize_4x2[];
718
719/* Common arguments for defaults. */
720
721extern const float rna_default_axis_angle[4];
722extern const float rna_default_quaternion[4];
723extern const float rna_default_scale_3d[3];
724
726#define RNA_DYN_DESCR_MAX 1024
These structs are the foundation for all linked lists in the library system.
PropertyRNA * RNA_def_enum_flag(StructOrFunctionRNA *cont, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_int_array_funcs_runtime(PropertyRNA *prop, IntArrayPropertyGetFunc getfunc, IntArrayPropertySetFunc setfunc, IntPropertyRangeFunc rangefunc, IntArrayPropertyGetTransformFunc get_transform_fn, IntArrayPropertySetTransformFunc set_transform_fn)
int RNA_def_property_free_identifier(StructOrFunctionRNA *cont_, const char *identifier)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
PropertyRNA * RNA_def_int_array(StructOrFunctionRNA *cont, const char *identifier, int len, const int *default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void(*)(Main *, Scene *, PointerRNA *) RNAPropertyUpdateFunc
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_struct_runtime(StructOrFunctionRNA *cont, PropertyRNA *prop, StructRNA *type)
void RNA_def_property_string_search_func(PropertyRNA *prop, const char *search, eStringPropertySearchFlag search_flag)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
void RNA_define_animate_sdna(bool animate)
void RNA_define_free(BlenderRNA *brna)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont, const char *identifier, int type, int subtype)
PropertyRNA * RNA_def_boolean_array(StructOrFunctionRNA *cont, const char *identifier, int len, const bool *default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_ui_name_func(PropertyRNA *prop, const char *name_func)
void RNA_def_struct_system_idprops_func(StructRNA *srna, const char *system_idproperties)
void RNA_def_struct_flag(StructRNA *srna, int flag)
PropertyRNA * RNA_def_float_array(StructOrFunctionRNA *cont, const char *identifier, int len, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_struct_free_pointers(BlenderRNA *brna, StructRNA *srna)
FunctionRNA * RNA_def_function_runtime(StructRNA *srna, const char *identifier, CallFunc call)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_property_update_notifier(PropertyRNA *prop, int noteflag)
const char * RNA_property_typename(PropertyType type)
void RNA_def_property_float_default(PropertyRNA *prop, float value)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
PropertyRNA * RNA_def_float_color(StructOrFunctionRNA *cont, const char *identifier, int len, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_exit()
void RNA_define_verify_sdna(bool verify)
void RNA_def_function_output(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_enum_native_type(PropertyRNA *prop, const char *native_enum_type)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
void RNA_def_property_boolean_default_func(PropertyRNA *prop, const char *get_default)
void RNA_def_struct_property_tags(StructRNA *srna, const EnumPropertyItem *prop_tag_defines)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
PropertyRNA * RNA_def_float_matrix(StructOrFunctionRNA *cont, const char *identifier, int rows, int columns, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
PropertyRNA * RNA_def_int_vector(StructOrFunctionRNA *cont, const char *identifier, int len, const int *default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont, const char *identifier, int len, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_property_duplicate_pointers(StructOrFunctionRNA *cont_, PropertyRNA *prop)
void RNA_def_property_free_pointers_set_py_data_callback(void(*py_data_clear_fn)(PropertyRNA *prop))
void RNA_def_property_free_identifier_deferred_finish(StructOrFunctionRNA *cont_, void *handle)
PropertyRNA * RNA_def_boolean_layer_member(StructOrFunctionRNA *cont, const char *identifier, int len, const bool *default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont, const char *identifier, int default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
PropertyRNA * RNA_def_string_dir_path(StructOrFunctionRNA *cont, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_struct_register_funcs(StructRNA *srna, const char *reg, const char *unreg, const char *instance)
void RNA_def_property_update_runtime(PropertyRNA *prop, RNAPropertyUpdateFunc func)
void RNA_identifier_sanitize(char *identifier, int property)
void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength)
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[])
void RNA_define_lib_overridable(bool make_overridable)
PropertyRNA * RNA_def_string_file_name(StructOrFunctionRNA *cont, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_struct_identifier(BlenderRNA *brna, StructRNA *srna, const char *identifier)
void RNA_def_property_int_default(PropertyRNA *prop, int value)
void RNA_def_property_path_template_type(PropertyRNA *prop, PropertyPathTemplateType path_template_type)
void RNA_def_property_editable_array_func(PropertyRNA *prop, const char *editable)
void RNA_def_property_boolean_funcs_runtime(PropertyRNA *prop, BooleanPropertyGetFunc getfunc, BooleanPropertySetFunc setfunc, BooleanPropertyGetTransformFunc get_transform_fn, BooleanPropertySetTransformFunc set_transform_fn)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_py_data(PropertyRNA *prop, void *py_data)
void RNA_def_struct_clear_flag(StructRNA *srna, int flag)
void RNA_def_property_array(PropertyRNA *prop, int length)
void RNA_def_property_float_default_func(PropertyRNA *prop, const char *get_default)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
void RNA_def_struct_identifier_no_struct_map(StructRNA *srna, const char *identifier)
void RNA_def_property_poll_runtime(PropertyRNA *prop, const void *func)
void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength)
void RNA_def_struct_sdna_from(StructRNA *srna, const char *structname, const char *propname)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void RNA_def_property_update_runtime_with_context_and_property(PropertyRNA *prop, RNAPropertyUpdateFuncWithContextAndProperty func)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
PropertyRNA * RNA_def_float_rotation(StructOrFunctionRNA *cont, const char *identifier, int len, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_property_float_array_funcs_runtime(PropertyRNA *prop, FloatArrayPropertyGetFunc getfunc, FloatArrayPropertySetFunc setfunc, FloatPropertyRangeFunc rangefunc, FloatArrayPropertyGetTransformFunc get_transform_fn, FloatArrayPropertySetTransformFunc set_transform_fn)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
void RNA_def_property_editable_func(PropertyRNA *prop, const char *editable)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont, const char *identifier, float default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_property_enum_funcs_runtime(PropertyRNA *prop, EnumPropertyGetFunc getfunc, EnumPropertySetFunc setfunc, EnumPropertyItemFunc itemfunc, EnumPropertyGetTransformFunc get_transform_fn, EnumPropertySetTransformFunc set_transform_fn)
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_func_duplicate_pointers(FunctionRNA *func)
void RNA_def_property_string_funcs_runtime(PropertyRNA *prop, StringPropertyGetFunc getfunc, StringPropertyLengthFunc lengthfunc, StringPropertySetFunc setfunc, StringPropertyGetTransformFunc get_transform_fn, StringPropertySetTransformFunc set_transform_fn)
void RNA_def_property_int_array_default(PropertyRNA *prop, const int *array)
void RNA_def_property_deprecated(PropertyRNA *prop, const char *note, short version, short removal_version)
void RNA_free(BlenderRNA *brna)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
void RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_float_funcs_runtime(PropertyRNA *prop, FloatPropertyGetFunc getfunc, FloatPropertySetFunc setfunc, FloatPropertyRangeFunc rangefunc, FloatPropertyGetTransformFunc get_transform_fn, FloatPropertySetTransformFunc set_transform_fn)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
BlenderRNA * RNA_create()
void RNA_struct_free_extension(StructRNA *srna, ExtensionRNA *rna_ext)
void RNA_def_property_enum_default_func(PropertyRNA *prop, const char *get_default)
PropertyRNA * RNA_def_collection(StructOrFunctionRNA *cont, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_string_file_path(StructOrFunctionRNA *cont, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void(*)(bContext *C, PointerRNA *ptr, PropertyRNA *prop) RNAPropertyUpdateFuncWithContextAndProperty
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
PropertyRNA * RNA_def_float_translation(StructOrFunctionRNA *cont, const char *identifier, int len, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
PropertyRNA * RNA_def_float_factor(StructOrFunctionRNA *cont, const char *identifier, float default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
PropertyRNA * RNA_def_boolean_layer(StructOrFunctionRNA *cont, const char *identifier, int len, const bool *default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
PropertyRNA * RNA_def_float_percentage(StructOrFunctionRNA *cont, const char *identifier, float default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_float_distance(StructOrFunctionRNA *cont, const char *identifier, float default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_property_string_default(PropertyRNA *prop, const char *value)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_flag_hide_from_ui_workaround(PropertyRNA *prop)
void RNA_struct_free(BlenderRNA *brna, StructRNA *srna)
void RNA_def_struct_idprops_func(StructRNA *srna, const char *idproperties)
void RNA_def_property_override_funcs(PropertyRNA *prop, const char *diff, const char *store, const char *apply)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_string_search_func_runtime(PropertyRNA *prop, StringPropertySearchFunc search_fn, eStringPropertySearchFlag search_flag)
void RNA_def_struct_duplicate_pointers(BlenderRNA *brna, StructRNA *srna)
void RNA_def_property_free_pointers(PropertyRNA *prop)
void RNA_def_property_int_funcs_runtime(PropertyRNA *prop, IntPropertyGetFunc getfunc, IntPropertySetFunc setfunc, IntPropertyRangeFunc rangefunc, IntPropertyGetTransformFunc get_transform_fn, IntPropertySetTransformFunc set_transform_fn)
void RNA_def_property_boolean_bitset_array_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit, int len)
void RNA_def_func_free_pointers(FunctionRNA *func)
void RNA_def_property_ui_scale_type(PropertyRNA *prop, PropertyScaleType ui_scale_type)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_override_clear_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_enum_item_add_separator(EnumPropertyItem **items, int *totitem)
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
PropertyRNA * RNA_def_collection_runtime(StructOrFunctionRNA *cont, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_float_vector_xyz(StructOrFunctionRNA *cont, const char *identifier, int len, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_property_subtype(PropertyRNA *prop, PropertySubType subtype)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_bpy_exit()
void RNA_def_property_boolean_array_default(PropertyRNA *prop, const bool *array)
void RNA_def_property_string_filepath_filter_func(PropertyRNA *prop, const char *filter)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *updatefunc)
int RNA_def_property_free_identifier_deferred_prepare(StructOrFunctionRNA *cont_, const char *identifier, void **handle)
void RNA_enum_items_add_value(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item, int value)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_init()
Definition rna_access.cc:88
PropertyRNA * RNA_def_boolean_vector(StructOrFunctionRNA *cont, const char *identifier, int len, const bool *default_value, const char *ui_name, const char *ui_description)
void StructOrFunctionRNA
void RNA_def_property_tags(PropertyRNA *prop, int tags)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_struct_translation_context(StructRNA *srna, const char *context)
void RNA_def_property_float_array_default(PropertyRNA *prop, const float *array)
void RNA_def_property_int_default_func(PropertyRNA *prop, const char *get_default)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname)
void RNA_define_fallback_property_update(int noteflag, const char *updatefunc)
void RNA_def_property_boolean_array_funcs_runtime(PropertyRNA *prop, BooleanArrayPropertyGetFunc getfunc, BooleanArrayPropertySetFunc setfunc, BooleanArrayPropertyGetTransformFunc get_transform_fn, BooleanArrayPropertySetTransformFunc set_transform_fn)
PropertyRNA * RNA_def_pointer_runtime(StructOrFunctionRNA *cont, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void(*)(PointerRNA *ptr, PropertyRNA *prop, int *min, int *max, int *softmin, int *softmax) IntPropertyRangeFunc
Definition RNA_types.hh:728
ParameterFlag
Definition RNA_types.hh:544
int(*)(PointerRNA *ptr, PropertyRNA *prop) EnumPropertyGetFunc
Definition RNA_types.hh:821
void(*)(PointerRNA *ptr, PropertyRNA *prop, const std::string &value) StringPropertySetFunc
Definition RNA_types.hh:756
void(*)(PointerRNA *ptr, PropertyRNA *prop, const float *new_values, const float *curr_values, bool is_set, float *r_values) FloatArrayPropertySetTransformFunc
Definition RNA_types.hh:745
float(*)(PointerRNA *ptr, PropertyRNA *prop, float value, bool is_set) FloatPropertyGetTransformFunc
Definition RNA_types.hh:733
PropertyScaleType
Definition RNA_types.hh:203
int(*)(PointerRNA *ptr, PropertyRNA *prop) StringPropertyLengthFunc
Definition RNA_types.hh:755
void(*)(PointerRNA *ptr, PropertyRNA *prop, const int *new_values, const int *curr_values, bool is_set, int *r_values) IntArrayPropertySetTransformFunc
Definition RNA_types.hh:722
void(*)(PointerRNA *ptr, PropertyRNA *prop, const bool *r_values) BooleanArrayPropertySetFunc
Definition RNA_types.hh:698
const EnumPropertyItem *(*)(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free) EnumPropertyItemFunc
Definition RNA_types.hh:830
int(*)(PointerRNA *ptr, PropertyRNA *prop, int value, bool is_set) EnumPropertyGetTransformFunc
Definition RNA_types.hh:823
void(*)(PointerRNA *ptr, PropertyRNA *prop, float *values) FloatArrayPropertyGetFunc
Definition RNA_types.hh:739
int(*)(PointerRNA *ptr, PropertyRNA *prop, int value, bool is_set) IntPropertyGetTransformFunc
Definition RNA_types.hh:712
void(*)(PointerRNA *ptr, PropertyRNA *prop, bool *r_values) BooleanArrayPropertyGetFunc
Definition RNA_types.hh:697
void(*)(PointerRNA *ptr, PropertyRNA *prop, const bool *new_values, const bool *curr_values, bool is_set, bool *r_values) BooleanArrayPropertySetTransformFunc
Definition RNA_types.hh:703
eStringPropertySearchFlag
Definition RNA_types.hh:778
void(*)(PointerRNA *ptr, PropertyRNA *prop, int *values) IntArrayPropertyGetFunc
Definition RNA_types.hh:718
void(*)( PointerRNA *ptr, PropertyRNA *prop, const bool *curr_values, bool is_set, bool *r_values) BooleanArrayPropertyGetTransformFunc
Definition RNA_types.hh:701
void(*)(PointerRNA *ptr, PropertyRNA *prop, int value) EnumPropertySetFunc
Definition RNA_types.hh:822
std::string(*)(PointerRNA *ptr, PropertyRNA *prop) StringPropertyGetFunc
Definition RNA_types.hh:754
void(*)(PointerRNA *ptr, PropertyRNA *prop, const int *values) IntArrayPropertySetFunc
Definition RNA_types.hh:719
PropertyType
Definition RNA_types.hh:161
void(*)( PointerRNA *ptr, PropertyRNA *prop, const float *curr_values, bool is_set, float *r_values) FloatArrayPropertyGetTransformFunc
Definition RNA_types.hh:743
std::string(*)(PointerRNA *ptr, PropertyRNA *prop, const std::string &value, bool is_set) StringPropertyGetTransformFunc
Definition RNA_types.hh:759
bool(*)(PointerRNA *ptr, PropertyRNA *prop) BooleanPropertyGetFunc
Definition RNA_types.hh:688
void(*)(const bContext *C, PointerRNA *ptr, PropertyRNA *prop, const char *edit_text, blender::FunctionRef< void(StringPropertySearchVisitParams)> visit_fn) StringPropertySearchFunc
Definition RNA_types.hh:806
bool(*)(PointerRNA *ptr, PropertyRNA *prop, bool value, bool is_set) BooleanPropertyGetTransformFunc
Definition RNA_types.hh:690
int(*)(PointerRNA *ptr, PropertyRNA *prop, int new_value, int curr_value, bool is_set) IntPropertySetTransformFunc
Definition RNA_types.hh:716
float(*)(PointerRNA *ptr, PropertyRNA *prop) FloatPropertyGetFunc
Definition RNA_types.hh:731
int(*)(PointerRNA *ptr, PropertyRNA *prop) IntPropertyGetFunc
Definition RNA_types.hh:710
void(*)( PointerRNA *ptr, PropertyRNA *prop, const int *curr_values, bool is_set, int *r_values) IntArrayPropertyGetTransformFunc
Definition RNA_types.hh:720
void(*)( PointerRNA *ptr, PropertyRNA *prop, float *min, float *max, float *softmin, float *softmax) FloatPropertyRangeFunc
Definition RNA_types.hh:751
float(*)(PointerRNA *ptr, PropertyRNA *prop, float new_value, float curr_value, bool is_set) FloatPropertySetTransformFunc
Definition RNA_types.hh:737
void(*)(PointerRNA *ptr, PropertyRNA *prop, float value) FloatPropertySetFunc
Definition RNA_types.hh:732
PropertyOverrideFlag
Definition RNA_types.hh:501
bool(*)(PointerRNA *ptr, PropertyRNA *prop, bool new_value, bool curr_value, bool is_set) BooleanPropertySetTransformFunc
Definition RNA_types.hh:694
int(*)(PointerRNA *ptr, PropertyRNA *prop, int new_value, int curr_value, bool is_set) EnumPropertySetTransformFunc
Definition RNA_types.hh:827
PropertyPathTemplateType
Definition RNA_types.hh:484
void(*)(PointerRNA *ptr, PropertyRNA *prop, int value) IntPropertySetFunc
Definition RNA_types.hh:711
void(*)(bContext *C, ReportList *reports, PointerRNA *ptr, ParameterList *parms) CallFunc
Definition RNA_types.hh:945
std::string(*)(PointerRNA *ptr, PropertyRNA *prop, const std::string &new_value, const std::string &curr_value, bool is_set) StringPropertySetTransformFunc
Definition RNA_types.hh:763
void(*)(PointerRNA *ptr, PropertyRNA *prop, const float *values) FloatArrayPropertySetFunc
Definition RNA_types.hh:740
PropertyFlag
Definition RNA_types.hh:300
void(*)(PointerRNA *ptr, PropertyRNA *prop, bool value) BooleanPropertySetFunc
Definition RNA_types.hh:689
PropertySubType
Definition RNA_types.hh:232
#define C
Definition RandGen.cpp:29
iter begin(iter)
long long int int64_t
IMETHOD Vector diff(const Vector &a, const Vector &b, double dt)
Definition frames.inl:1166
#define filter
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
float length(VecOp< float, D >) RET
static ulong * next
const char * name
return ret
const float rna_default_quaternion[4]
const int rna_matrix_dimsize_4x2[]
const float rna_default_scale_3d[3]
const float rna_default_axis_angle[4]
const int rna_matrix_dimsize_4x4[]
const int rna_matrix_dimsize_3x3[]
#define min(a, b)
Definition sort.cc:36
struct Scene * set
max
Definition text_draw.cc:251
uint len
PointerRNA * ptr
Definition wm_files.cc:4238
uint8_t flag
Definition wm_window.cc:145