Blender  V3.3
RNA_define.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
11 #include <float.h>
12 #include <inttypes.h>
13 #include <limits.h>
14 
15 #include "DNA_listBase.h"
16 #include "RNA_types.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #ifdef UNIT_TEST
23 # define RNA_MAX_ARRAY_LENGTH 64
24 #else
25 # define RNA_MAX_ARRAY_LENGTH 32
26 #endif
27 
28 #define RNA_MAX_ARRAY_DIMENSION 3
29 
30 /* Blender RNA */
31 
32 BlenderRNA *RNA_create(void);
34 void RNA_free(BlenderRNA *brna);
35 void RNA_define_verify_sdna(bool verify);
36 void RNA_define_animate_sdna(bool animate);
37 void RNA_define_fallback_property_update(int noteflag, const char *updatefunc);
42 void RNA_define_lib_overridable(bool make_overridable);
43 
44 void RNA_init(void);
45 void RNA_exit(void);
46 
47 /* Struct */
48 
52 StructRNA *RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom);
53 StructRNA *RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from);
54 void RNA_def_struct_sdna(StructRNA *srna, const char *structname);
55 void RNA_def_struct_sdna_from(StructRNA *srna, const char *structname, const char *propname);
57 void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname);
58 void RNA_def_struct_flag(StructRNA *srna, int flag);
59 void RNA_def_struct_clear_flag(StructRNA *srna, int flag);
60 void RNA_def_struct_property_tags(StructRNA *srna, const EnumPropertyItem *prop_tag_defines);
61 void RNA_def_struct_refine_func(StructRNA *srna, const char *refine);
62 void RNA_def_struct_idprops_func(StructRNA *srna, const char *idproperties);
64  const char *reg,
65  const char *unreg,
66  const char *instance);
67 void RNA_def_struct_path_func(StructRNA *srna, const char *path);
71 void RNA_def_struct_identifier_no_struct_map(StructRNA *srna, const char *identifier);
72 void RNA_def_struct_identifier(BlenderRNA *brna, StructRNA *srna, const char *identifier);
73 void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description);
74 void RNA_def_struct_ui_icon(StructRNA *srna, int icon);
76 void RNA_struct_free(BlenderRNA *brna, StructRNA *srna);
77 
79 
80 /* Compact Property Definitions */
81 
82 typedef void StructOrFunctionRNA;
83 
85  const char *identifier,
86  bool default_value,
87  const char *ui_name,
88  const char *ui_description);
90  const char *identifier,
91  int len,
92  bool *default_value,
93  const char *ui_name,
94  const char *ui_description);
96  const char *identifier,
97  int len,
98  bool *default_value,
99  const char *ui_name,
100  const char *ui_description);
102  const char *identifier,
103  int len,
104  bool *default_value,
105  const char *ui_name,
106  const char *ui_description);
108  const char *identifier,
109  int len,
110  bool *default_value,
111  const char *ui_name,
112  const char *ui_description);
113 
115  const char *identifier,
116  int default_value,
117  int hardmin,
118  int hardmax,
119  const char *ui_name,
120  const char *ui_description,
121  int softmin,
122  int softmax);
124  const char *identifier,
125  int len,
126  const int *default_value,
127  int hardmin,
128  int hardmax,
129  const char *ui_name,
130  const char *ui_description,
131  int softmin,
132  int softmax);
134  const char *identifier,
135  int len,
136  const int *default_value,
137  int hardmin,
138  int hardmax,
139  const char *ui_name,
140  const char *ui_description,
141  int softmin,
142  int softmax);
143 
145  const char *identifier,
146  const char *default_value,
147  int maxlen,
148  const char *ui_name,
149  const char *ui_description);
151  const char *identifier,
152  const char *default_value,
153  int maxlen,
154  const char *ui_name,
155  const char *ui_description);
157  const char *identifier,
158  const char *default_value,
159  int maxlen,
160  const char *ui_name,
161  const char *ui_description);
163  const char *identifier,
164  const char *default_value,
165  int maxlen,
166  const char *ui_name,
167  const char *ui_description);
168 
170  const char *identifier,
171  const EnumPropertyItem *items,
172  int default_value,
173  const char *ui_name,
174  const char *ui_description);
179  const char *identifier,
180  const EnumPropertyItem *items,
181  int default_value,
182  const char *ui_name,
183  const char *ui_description);
185 
187  const char *identifier,
188  float default_value,
189  float hardmin,
190  float hardmax,
191  const char *ui_name,
192  const char *ui_description,
193  float softmin,
194  float softmax);
196  const char *identifier,
197  int len,
198  const float *default_value,
199  float hardmin,
200  float hardmax,
201  const char *ui_name,
202  const char *ui_description,
203  float softmin,
204  float softmax);
206  const char *identifier,
207  int len,
208  const float *default_value,
209  float hardmin,
210  float hardmax,
211  const char *ui_name,
212  const char *ui_description,
213  float softmin,
214  float softmax);
216  const char *identifier,
217  int len,
218  const float *default_value,
219  float hardmin,
220  float hardmax,
221  const char *ui_name,
222  const char *ui_description,
223  float softmin,
224  float softmax);
226  const char *identifier,
227  int rows,
228  int columns,
229  const float *default_value,
230  float hardmin,
231  float hardmax,
232  const char *ui_name,
233  const char *ui_description,
234  float softmin,
235  float softmax);
237  const char *identifier,
238  int len,
239  const float *default_value,
240  float hardmin,
241  float hardmax,
242  const char *ui_name,
243  const char *ui_description,
244  float softmin,
245  float softmax);
247  const char *identifier,
248  int len,
249  const float *default_value,
250  float hardmin,
251  float hardmax,
252  const char *ui_name,
253  const char *ui_description,
254  float softmin,
255  float softmax);
257  const char *identifier,
258  float default_value,
259  float hardmin,
260  float hardmax,
261  const char *ui_name,
262  const char *ui_description,
263  float softmin,
264  float softmax);
266  const char *identifier,
267  int len,
268  const float *default_value,
269  float hardmin,
270  float hardmax,
271  const char *ui_name,
272  const char *ui_description,
273  float softmin,
274  float softmax);
275 
276 #if 0
277 PropertyRNA *RNA_def_float_dynamic_array(StructOrFunctionRNA *cont,
278  const char *identifier,
279  float hardmin,
280  float hardmax,
281  const char *ui_name,
282  const char *ui_description,
283  float softmin,
284  float softmax,
285  unsigned int dimension,
286  unsigned short dim_size[]);
287 #endif
288 
290  const char *identifier,
291  float default_value,
292  float hardmin,
293  float hardmax,
294  const char *ui_name,
295  const char *ui_description,
296  float softmin,
297  float softmax);
299  const char *identifier,
300  float default_value,
301  float hardmin,
302  float hardmax,
303  const char *ui_name,
304  const char *ui_description,
305  float softmin,
306  float softmax);
307 
309  const char *identifier,
310  const char *type,
311  const char *ui_name,
312  const char *ui_description);
314  const char *identifier,
315  StructRNA *type,
316  const char *ui_name,
317  const char *ui_description);
318 
320  const char *identifier,
321  const char *type,
322  const char *ui_name,
323  const char *ui_description);
325  const char *identifier,
326  StructRNA *type,
327  const char *ui_name,
328  const char *ui_description);
329 
330 /* Extended Property Definitions */
331 
333  const char *identifier,
334  int type,
335  int subtype);
336 
338  const char *structname,
339  const char *propname,
340  int64_t bit);
342  const char *structname,
343  const char *propname,
344  int64_t bit);
345 void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname);
346 void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname);
347 void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname);
348 void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname);
350  const char *structname,
351  const char *propname);
353  const char *structname,
354  const char *propname);
356  const char *structname,
357  const char *propname,
358  const char *lengthpropname);
359 
371 void RNA_def_property_tags(PropertyRNA *prop, int tags);
373 void RNA_def_property_array(PropertyRNA *prop, int length);
374 void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[]);
375 void RNA_def_property_range(PropertyRNA *prop, double min, double max);
376 
378 void RNA_def_property_enum_native_type(PropertyRNA *prop, const char *native_enum_type);
379 void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength);
380 void RNA_def_property_struct_type(PropertyRNA *prop, const char *type);
382  PropertyRNA *prop,
383  StructRNA *type);
384 
385 void RNA_def_property_boolean_default(PropertyRNA *prop, bool value);
387 void RNA_def_property_int_default(PropertyRNA *prop, int value);
389 void RNA_def_property_float_default(PropertyRNA *prop, float value);
393 void RNA_def_property_float_array_default(PropertyRNA *prop, const float *array);
394 void RNA_def_property_enum_default(PropertyRNA *prop, int value);
395 void RNA_def_property_string_default(PropertyRNA *prop, const char *value);
396 
397 void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description);
410  PropertyRNA *prop, double min, double max, double step, int precision);
412 void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive);
413 
414 void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *updatefunc);
415 void RNA_def_property_editable_func(PropertyRNA *prop, const char *editable);
416 void RNA_def_property_editable_array_func(PropertyRNA *prop, const char *editable);
417 
424  const char *diff,
425  const char *store,
426  const char *apply);
427 
428 void RNA_def_property_update_runtime(PropertyRNA *prop, const void *func);
429 void RNA_def_property_poll_runtime(PropertyRNA *prop, const void *func);
430 
431 void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength);
432 void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set);
434  const char *get,
435  const char *set,
436  const char *range);
438  const char *get,
439  const char *set,
440  const char *range);
442  const char *get,
443  const char *set,
444  const char *item);
446  const char *get,
447  const char *length,
448  const char *set);
450  const char *search,
451  eStringPropertySearchFlag search_flag);
453  PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll);
455  const char *begin,
456  const char *next,
457  const char *end,
458  const char *get,
459  const char *length,
460  const char *lookupint,
461  const char *lookupstring,
462  const char *assignint);
463 void RNA_def_property_srna(PropertyRNA *prop, const char *type);
464 void RNA_def_py_data(PropertyRNA *prop, void *py_data);
465 
467  BooleanPropertyGetFunc getfunc,
468  BooleanPropertySetFunc setfunc);
473  IntPropertyGetFunc getfunc,
474  IntPropertySetFunc setfunc,
475  IntPropertyRangeFunc rangefunc);
477  IntArrayPropertyGetFunc getfunc,
478  IntArrayPropertySetFunc setfunc,
479  IntPropertyRangeFunc rangefunc);
481  FloatPropertyGetFunc getfunc,
482  FloatPropertySetFunc setfunc,
483  FloatPropertyRangeFunc rangefunc);
487  FloatPropertyRangeFunc rangefunc);
489  EnumPropertyGetFunc getfunc,
490  EnumPropertySetFunc setfunc,
491  EnumPropertyItemFunc itemfunc);
493  StringPropertyGetFunc getfunc,
494  StringPropertyLengthFunc lengthfunc,
495  StringPropertySetFunc setfunc);
497  StringPropertySearchFunc search_fn,
498  eStringPropertySearchFlag search_flag);
499 
501 
502 /* Function */
503 
504 FunctionRNA *RNA_def_function(StructRNA *srna, const char *identifier, const char *call);
505 FunctionRNA *RNA_def_function_runtime(StructRNA *srna, const char *identifier, CallFunc call);
511 void RNA_def_function_flag(FunctionRNA *func, int flag);
512 void RNA_def_function_ui_description(FunctionRNA *func, const char *description);
513 
515  PropertyFlag flag_property,
516  ParameterFlag flag_parameter);
518  PropertyFlag flag_property,
519  ParameterFlag flag_parameter);
520 
521 /* Dynamic Enums
522  * strings are not freed, assumed pointing to static location. */
523 
524 void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item);
525 void RNA_enum_item_add_separator(EnumPropertyItem **items, int *totitem);
526 void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item);
528  int *totitem,
529  const EnumPropertyItem *item,
530  int value);
531 void RNA_enum_item_end(EnumPropertyItem **items, int *totitem);
532 
533 /* Memory management */
534 
541 int RNA_def_property_free_identifier(StructOrFunctionRNA *cont_, const char *identifier);
542 
544  const char *identifier,
545  void **handle);
547 
549  void (*py_data_clear_fn)(PropertyRNA *prop));
550 
551 /* Utilities. */
552 
554 #define IS_DNATYPE_FLOAT_COMPAT(_str) (strcmp(_str, "float") == 0 || strcmp(_str, "double") == 0)
555 #define IS_DNATYPE_INT_COMPAT(_str) \
556  (strcmp(_str, "int") == 0 || strcmp(_str, "short") == 0 || strcmp(_str, "char") == 0 || \
557  strcmp(_str, "uchar") == 0 || strcmp(_str, "ushort") == 0 || strcmp(_str, "int8_t") == 0)
558 #define IS_DNATYPE_BOOLEAN_COMPAT(_str) \
559  (IS_DNATYPE_INT_COMPAT(_str) || strcmp(_str, "int64_t") == 0 || strcmp(_str, "uint64_t") == 0)
560 
561 void RNA_identifier_sanitize(char *identifier, int property);
562 
563 /* Common arguments for length. */
564 
565 extern const int rna_matrix_dimsize_3x3[];
566 extern const int rna_matrix_dimsize_4x4[];
567 extern const int rna_matrix_dimsize_4x2[];
568 
569 /* Common arguments for defaults. */
570 
571 extern const float rna_default_axis_angle[4];
572 extern const float rna_default_quaternion[4];
573 extern const float rna_default_scale_3d[3];
574 
576 #define RNA_DYN_DESCR_MAX 240
577 
578 #ifdef __cplusplus
579 }
580 #endif
These structs are the foundation for all linked lists in the library system.
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object instance
int RNA_def_property_free_identifier(StructOrFunctionRNA *cont_, const char *identifier)
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
Definition: rna_define.c:4465
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop)
Definition: rna_define.c:1103
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
Definition: rna_define.c:1148
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2740
void RNA_def_property_struct_runtime(StructOrFunctionRNA *cont, PropertyRNA *prop, StructRNA *type)
Definition: rna_define.c:1800
void RNA_def_property_string_search_func(PropertyRNA *prop, const char *search, eStringPropertySearchFlag search_flag)
Definition: rna_define.c:3319
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
Definition: rna_define.c:1193
void RNA_define_animate_sdna(bool animate)
Definition: rna_define.c:748
void RNA_define_free(BlenderRNA *brna)
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)
Definition: rna_define.c:3623
void RNA_def_property_ui_scale_type(PropertyRNA *prop, PropertyScaleType scale_type)
Definition: rna_define.c:1715
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
Definition: rna_define.c:4170
void RNA_def_struct_flag(StructRNA *srna, int flag)
Definition: rna_define.c:1133
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)
Definition: rna_define.c:3597
void RNA_def_struct_free_pointers(BlenderRNA *brna, StructRNA *srna)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
Definition: rna_define.c:2236
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
Definition: rna_define.c:1526
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
Definition: rna_define.c:3285
PropertyRNA * RNA_def_boolean_vector(StructOrFunctionRNA *cont, const char *identifier, int len, bool *default_value, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3575
const float rna_default_quaternion[4]
Definition: rna_define.c:1590
void RNA_def_property_float_default(PropertyRNA *prop, float value)
Definition: rna_define.c:2022
void RNA_init(void)
Definition: rna_access.c:65
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
Definition: rna_define.c:4312
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
Definition: rna_define.c:2106
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
Definition: rna_define.c:3126
void RNA_define_verify_sdna(bool verify)
Definition: rna_define.c:737
void RNA_def_function_output(FunctionRNA *func, PropertyRNA *ret)
PropertyRNA * RNA_def_boolean_layer(StructOrFunctionRNA *cont, const char *identifier, int len, bool *default_value, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3531
void RNA_def_property_enum_native_type(PropertyRNA *prop, const char *native_enum_type)
Definition: rna_define.c:1855
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
Definition: rna_define.c:1645
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2695
const int rna_matrix_dimsize_4x2[]
Definition: rna_define.c:1596
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
Definition: rna_define.c:1653
void RNA_def_struct_property_tags(StructRNA *srna, const EnumPropertyItem *prop_tag_defines)
Definition: rna_define.c:1143
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
Definition: rna_define.c:4273
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
Definition: rna_define.c:3474
void RNA_def_property_int_funcs_runtime(PropertyRNA *prop, IntPropertyGetFunc getfunc, IntPropertySetFunc setfunc, IntPropertyRangeFunc rangefunc)
Definition: rna_define.c:3072
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)
Definition: rna_define.c:3420
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
Definition: rna_define.c:1237
const float rna_default_scale_3d[3]
Definition: rna_define.c:1592
PropertyRNA * RNA_def_collection_runtime(StructOrFunctionRNA *cont, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
Definition: rna_define.c:4221
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)
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
Definition: rna_define.c:1937
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
Definition: rna_define.c:2944
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)
Definition: rna_define.c:3954
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)
Definition: rna_define.c:3836
void RNA_def_struct_register_funcs(StructRNA *srna, const char *reg, const char *unreg, const char *instance)
Definition: rna_define.c:1172
void RNA_identifier_sanitize(char *identifier, int property)
Definition: rna_define.c:603
void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength)
Definition: rna_define.c:2926
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[])
Definition: rna_define.c:1598
void RNA_define_lib_overridable(bool make_overridable)
Definition: rna_define.c:742
void RNA_def_property_enum_funcs_runtime(PropertyRNA *prop, EnumPropertyGetFunc getfunc, EnumPropertySetFunc setfunc, EnumPropertyItemFunc itemfunc)
Definition: rna_define.c:3258
void RNA_def_property_boolean_array_funcs_runtime(PropertyRNA *prop, BooleanArrayPropertyGetFunc getfunc, BooleanArrayPropertySetFunc setfunc)
Definition: rna_define.c:3005
void RNA_def_struct_identifier(BlenderRNA *brna, StructRNA *srna, const char *identifier)
Definition: rna_define.c:1205
void RNA_def_property_int_default(PropertyRNA *prop, int value)
Definition: rna_define.c:1978
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)
Definition: rna_define.c:4076
const float rna_default_axis_angle[4]
Definition: rna_define.c:1591
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
Definition: rna_define.c:900
void RNA_def_property_editable_array_func(PropertyRNA *prop, const char *editable)
Definition: rna_define.c:2867
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3687
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
Definition: rna_define.c:1872
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
Definition: rna_define.c:1048
void RNA_def_py_data(PropertyRNA *prop, void *py_data)
Definition: rna_define.c:3486
void RNA_def_struct_clear_flag(StructRNA *srna, int flag)
Definition: rna_define.c:1138
void RNA_def_property_array(PropertyRNA *prop, int length)
Definition: rna_define.c:1539
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
Definition: rna_define.c:1737
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)
Definition: rna_define.c:3759
void RNA_def_struct_identifier_no_struct_map(StructRNA *srna, const char *identifier)
Definition: rna_define.c:1227
void RNA_def_property_poll_runtime(PropertyRNA *prop, const void *func)
Definition: rna_define.c:2916
void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength)
Definition: rna_define.c:1920
void RNA_def_struct_sdna_from(StructRNA *srna, const char *structname, const char *propname)
Definition: rna_define.c:1075
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)
Definition: rna_define.c:3735
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
Definition: rna_define.c:1772
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
Definition: rna_define.c:2769
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
Definition: rna_define.c:4347
PropertyRNA * RNA_def_boolean_array(StructOrFunctionRNA *cont, const char *identifier, int len, bool *default_value, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3509
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)
Definition: rna_define.c:3711
const int rna_matrix_dimsize_4x4[]
Definition: rna_define.c:1595
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
Definition: rna_define.c:3224
void RNA_def_property_editable_func(PropertyRNA *prop, const char *editable)
Definition: rna_define.c:2855
void RNA_def_property_float_funcs_runtime(PropertyRNA *prop, FloatPropertyGetFunc getfunc, FloatPropertySetFunc setfunc, FloatPropertyRangeFunc rangefunc)
Definition: rna_define.c:3170
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2669
void RNA_def_func_duplicate_pointers(FunctionRNA *func)
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)
Definition: rna_define.c:4016
void RNA_def_property_int_array_default(PropertyRNA *prop, const int *array)
Definition: rna_define.c:2000
void RNA_free(BlenderRNA *brna)
Definition: rna_define.c:828
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
Definition: rna_define.c:4487
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)
Definition: rna_define.c:3894
void RNA_def_function_flag(FunctionRNA *func, int flag)
Definition: rna_define.c:4342
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
Definition: rna_define.c:1495
void RNA_struct_free_extension(StructRNA *srna, ExtensionRNA *rna_ext)
Definition: rna_define.c:762
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)
Definition: rna_define.c:4052
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
Definition: rna_define.c:3385
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
Definition: rna_define.c:1028
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3783
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2601
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
Definition: rna_define.c:2327
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
Definition: rna_define.c:4436
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
Definition: rna_define.c:3028
const int rna_matrix_dimsize_3x3[]
Definition: rna_define.c:1594
void RNA_exit(void)
Definition: rna_access.c:89
void RNA_def_property_string_default(PropertyRNA *prop, const char *value)
Definition: rna_define.c:2065
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
Definition: rna_define.c:1245
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont, const char *identifier, int type, int subtype)
Definition: rna_define.c:1257
PropertyRNA * RNA_def_pointer_runtime(StructOrFunctionRNA *cont, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
Definition: rna_define.c:4186
FunctionRNA * RNA_def_function_runtime(StructRNA *srna, const char *identifier, CallFunc call)
Definition: rna_define.c:4296
void RNA_def_property_int_array_funcs_runtime(PropertyRNA *prop, IntArrayPropertyGetFunc getfunc, IntArrayPropertySetFunc setfunc, IntPropertyRangeFunc rangefunc)
Definition: rna_define.c:3099
void RNA_def_property_float_array_funcs_runtime(PropertyRNA *prop, FloatArrayPropertyGetFunc getfunc, FloatArrayPropertySetFunc setfunc, FloatPropertyRangeFunc rangefunc)
Definition: rna_define.c:3197
void RNA_struct_free(BlenderRNA *brna, StructRNA *srna)
Definition: rna_define.c:777
void RNA_def_struct_idprops_func(StructRNA *srna, const char *idproperties)
Definition: rna_define.c:1160
void RNA_def_property_override_funcs(PropertyRNA *prop, const char *diff, const char *store, const char *apply)
Definition: rna_define.c:2879
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
Definition: rna_define.c:2848
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3493
void RNA_def_property_string_search_func_runtime(PropertyRNA *prop, StringPropertySearchFunc search_fn, eStringPropertySearchFlag search_flag)
Definition: rna_define.c:3373
void RNA_def_struct_duplicate_pointers(BlenderRNA *brna, StructRNA *srna)
void RNA_def_property_free_pointers(PropertyRNA *prop)
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)
Definition: rna_define.c:4108
void RNA_def_func_free_pointers(FunctionRNA *func)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
Definition: rna_define.c:1490
void RNA_def_property_override_clear_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
Definition: rna_define.c:1508
void RNA_def_property_update_runtime(PropertyRNA *prop, const void *func)
Definition: rna_define.c:2911
void RNA_enum_item_add_separator(EnumPropertyItem **items, int *totitem)
Definition: rna_define.c:4459
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
Definition: rna_define.c:3830
BlenderRNA * RNA_create(void)
Definition: rna_define.c:678
void RNA_def_property_subtype(PropertyRNA *prop, PropertySubType subtype)
Definition: rna_define.c:1534
PropertyRNA * RNA_def_boolean_layer_member(StructOrFunctionRNA *cont, const char *identifier, int len, bool *default_value, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3553
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2493
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)
Definition: rna_define.c:3862
void RNA_def_property_boolean_array_default(PropertyRNA *prop, const bool *array)
Definition: rna_define.c:1961
void RNA_def_property_boolean_funcs_runtime(PropertyRNA *prop, BooleanPropertyGetFunc getfunc, BooleanPropertySetFunc setfunc)
Definition: rna_define.c:2982
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *updatefunc)
Definition: rna_define.c:2900
PropertyRNA * RNA_def_collection(StructOrFunctionRNA *cont, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
Definition: rna_define.c:4205
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)
Definition: rna_define.c:4472
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
Definition: rna_define.c:1664
void StructOrFunctionRNA
Definition: RNA_define.h:82
void RNA_def_property_tags(PropertyRNA *prop, int tags)
Definition: rna_define.c:1513
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)
Definition: rna_define.c:3655
PropertyRNA * RNA_def_enum_flag(StructOrFunctionRNA *cont, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3806
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2343
const char * RNA_property_typename(PropertyType type)
Definition: rna_define.c:4813
void RNA_def_struct_translation_context(StructRNA *srna, const char *context)
Definition: rna_define.c:1250
void RNA_def_property_float_array_default(PropertyRNA *prop, const float *array)
Definition: rna_define.c:2043
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)
Definition: rna_define.c:3922
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)
Definition: rna_define.c:4144
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)
Definition: rna_define.c:3986
void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname)
Definition: rna_define.c:1119
void RNA_define_fallback_property_update(int noteflag, const char *updatefunc)
Definition: rna_define.c:755
void RNA_def_property_string_funcs_runtime(PropertyRNA *prop, StringPropertyGetFunc getfunc, StringPropertyLengthFunc lengthfunc, StringPropertySetFunc setfunc)
Definition: rna_define.c:3346
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
Definition: rna_define.c:1503
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
Definition: rna_define.c:1518
ParameterFlag
Definition: RNA_types.h:351
int(* EnumPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop)
Definition: RNA_types.h:588
PropertyScaleType
Definition: RNA_types.h:96
float(* FloatPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop)
Definition: RNA_types.h:516
void(* IntPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, int value)
Definition: RNA_types.h:503
void(* EnumPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, int value)
Definition: RNA_types.h:589
void(* IntPropertyRangeFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, int *min, int *max, int *softmin, int *softmax)
Definition: RNA_types.h:510
void(* StringPropertySearchFunc)(const struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, const char *edit_text, StringPropertySearchVisitFunc visit_fn, void *visit_user_data)
Definition: RNA_types.h:581
void(* IntArrayPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, int *values)
Definition: RNA_types.h:504
eStringPropertySearchFlag
Definition: RNA_types.h:547
void(* FloatPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, float value)
Definition: RNA_types.h:517
PropertyType
Definition: RNA_types.h:58
void(* CallFunc)(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, ParameterList *parms)
Definition: RNA_types.h:694
void(* FloatPropertyRangeFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, float *min, float *max, float *softmin, float *softmax)
Definition: RNA_types.h:526
void(* BooleanArrayPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, const bool *values)
Definition: RNA_types.h:499
void(* FloatArrayPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, const float *values)
Definition: RNA_types.h:523
bool(* BooleanPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop)
Definition: RNA_types.h:492
void(* BooleanArrayPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, bool *values)
Definition: RNA_types.h:496
void(* StringPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, char *value)
Definition: RNA_types.h:532
void(* StringPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, const char *value)
Definition: RNA_types.h:536
PropertyOverrideFlag
Definition: RNA_types.h:310
void(* IntArrayPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, const int *values)
Definition: RNA_types.h:507
int(* StringPropertyLengthFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop)
Definition: RNA_types.h:535
int(* IntPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop)
Definition: RNA_types.h:502
const EnumPropertyItem *(* EnumPropertyItemFunc)(struct bContext *C, PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
Definition: RNA_types.h:591
PropertyFlag
Definition: RNA_types.h:183
void(* FloatArrayPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, float *values)
Definition: RNA_types.h:520
void(* BooleanPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, bool value)
Definition: RNA_types.h:493
PropertySubType
Definition: RNA_types.h:125
StackEntry * from
int len
Definition: draw_manager.c:108
static ulong * next
IMETHOD Vector diff(const Vector &a, const Vector &b, double dt=1)
T length(const vec_base< T, Size > &a)
return ret
#define min(a, b)
Definition: sort.c:35
__int64 int64_t
Definition: stdint.h:89
float max