Blender  V2.93
RNA_define.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
25 #include <float.h>
26 #include <inttypes.h>
27 #include <limits.h>
28 
29 #include "DNA_listBase.h"
30 #include "RNA_types.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 #ifdef UNIT_TEST
37 # define RNA_MAX_ARRAY_LENGTH 64
38 #else
39 # define RNA_MAX_ARRAY_LENGTH 32
40 #endif
41 
42 #define RNA_MAX_ARRAY_DIMENSION 3
43 
44 /* Blender RNA */
45 
46 BlenderRNA *RNA_create(void);
48 void RNA_free(BlenderRNA *brna);
49 void RNA_define_verify_sdna(bool verify);
50 void RNA_define_animate_sdna(bool animate);
51 void RNA_define_fallback_property_update(int noteflag, const char *updatefunc);
52 void RNA_define_lib_overridable(const bool make_overridable);
53 
54 void RNA_init(void);
55 void RNA_exit(void);
56 
57 /* Struct */
58 
59 StructRNA *RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom);
60 StructRNA *RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from);
61 void RNA_def_struct_sdna(StructRNA *srna, const char *structname);
62 void RNA_def_struct_sdna_from(StructRNA *srna, const char *structname, const char *propname);
64 void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname);
65 void RNA_def_struct_flag(StructRNA *srna, int flag);
66 void RNA_def_struct_clear_flag(StructRNA *srna, int flag);
67 void RNA_def_struct_property_tags(StructRNA *srna, const EnumPropertyItem *prop_tag_defines);
68 void RNA_def_struct_refine_func(StructRNA *srna, const char *refine);
69 void RNA_def_struct_idprops_func(StructRNA *srna, const char *idproperties);
71  const char *reg,
72  const char *unreg,
73  const char *instance);
74 void RNA_def_struct_path_func(StructRNA *srna, const char *path);
75 void RNA_def_struct_identifier_no_struct_map(StructRNA *srna, const char *identifier);
76 void RNA_def_struct_identifier(BlenderRNA *brna, StructRNA *srna, const char *identifier);
77 void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description);
78 void RNA_def_struct_ui_icon(StructRNA *srna, int icon);
80 void RNA_struct_free(BlenderRNA *brna, StructRNA *srna);
81 
83 
84 /* Compact Property Definitions */
85 
86 typedef void StructOrFunctionRNA;
87 
89  const char *identifier,
90  bool default_value,
91  const char *ui_name,
92  const char *ui_description);
94  const char *identifier,
95  int len,
96  bool *default_value,
97  const char *ui_name,
98  const char *ui_description);
100  const char *identifier,
101  int len,
102  bool *default_value,
103  const char *ui_name,
104  const char *ui_description);
106  const char *identifier,
107  int len,
108  bool *default_value,
109  const char *ui_name,
110  const char *ui_description);
112  const char *identifier,
113  int len,
114  bool *default_value,
115  const char *ui_name,
116  const char *ui_description);
117 
119  const char *identifier,
120  int default_value,
121  int hardmin,
122  int hardmax,
123  const char *ui_name,
124  const char *ui_description,
125  int softmin,
126  int softmax);
128  const char *identifier,
129  int len,
130  const int *default_value,
131  int hardmin,
132  int hardmax,
133  const char *ui_name,
134  const char *ui_description,
135  int softmin,
136  int softmax);
138  const char *identifier,
139  int len,
140  const int *default_value,
141  int hardmin,
142  int hardmax,
143  const char *ui_name,
144  const char *ui_description,
145  int softmin,
146  int softmax);
147 
149  const char *identifier,
150  const char *default_value,
151  int maxlen,
152  const char *ui_name,
153  const char *ui_description);
155  const char *identifier,
156  const char *default_value,
157  int maxlen,
158  const char *ui_name,
159  const char *ui_description);
161  const char *identifier,
162  const char *default_value,
163  int maxlen,
164  const char *ui_name,
165  const char *ui_description);
167  const char *identifier,
168  const char *default_value,
169  int maxlen,
170  const char *ui_name,
171  const char *ui_description);
172 
174  const char *identifier,
175  const EnumPropertyItem *items,
176  int default_value,
177  const char *ui_name,
178  const char *ui_description);
180  const char *identifier,
181  const EnumPropertyItem *items,
182  int default_value,
183  const char *ui_name,
184  const char *ui_description);
186 
188  const char *identifier,
189  float default_value,
190  float hardmin,
191  float hardmax,
192  const char *ui_name,
193  const char *ui_description,
194  float softmin,
195  float softmax);
197  const char *identifier,
198  int len,
199  const float *default_value,
200  float hardmin,
201  float hardmax,
202  const char *ui_name,
203  const char *ui_description,
204  float softmin,
205  float softmax);
207  const char *identifier,
208  int len,
209  const float *default_value,
210  float hardmin,
211  float hardmax,
212  const char *ui_name,
213  const char *ui_description,
214  float softmin,
215  float softmax);
217  const char *identifier,
218  int len,
219  const float *default_value,
220  float hardmin,
221  float hardmax,
222  const char *ui_name,
223  const char *ui_description,
224  float softmin,
225  float softmax);
227  const char *identifier,
228  int rows,
229  int columns,
230  const float *default_value,
231  float hardmin,
232  float hardmax,
233  const char *ui_name,
234  const char *ui_description,
235  float softmin,
236  float softmax);
238  const char *identifier,
239  int len,
240  const float *default_value,
241  float hardmin,
242  float hardmax,
243  const char *ui_name,
244  const char *ui_description,
245  float softmin,
246  float softmax);
248  const char *identifier,
249  int len,
250  const float *default_value,
251  float hardmin,
252  float hardmax,
253  const char *ui_name,
254  const char *ui_description,
255  float softmin,
256  float softmax);
258  const char *identifier,
259  float default_value,
260  float hardmin,
261  float hardmax,
262  const char *ui_name,
263  const char *ui_description,
264  float softmin,
265  float softmax);
267  const char *identifier,
268  int len,
269  const float *default_value,
270  float hardmin,
271  float hardmax,
272  const char *ui_name,
273  const char *ui_description,
274  float softmin,
275  float softmax);
276 
277 #if 0
278 PropertyRNA *RNA_def_float_dynamic_array(StructOrFunctionRNA *cont,
279  const char *identifier,
280  float hardmin,
281  float hardmax,
282  const char *ui_name,
283  const char *ui_description,
284  float softmin,
285  float softmax,
286  unsigned int dimension,
287  unsigned short dim_size[]);
288 #endif
289 
291  const char *identifier,
292  float default_value,
293  float hardmin,
294  float hardmax,
295  const char *ui_name,
296  const char *ui_description,
297  float softmin,
298  float softmax);
300  const char *identifier,
301  float default_value,
302  float hardmin,
303  float hardmax,
304  const char *ui_name,
305  const char *ui_description,
306  float softmin,
307  float softmax);
308 
310  const char *identifier,
311  const char *type,
312  const char *ui_name,
313  const char *ui_description);
315  const char *identifier,
316  StructRNA *type,
317  const char *ui_name,
318  const char *ui_description);
319 
321  const char *identifier,
322  const char *type,
323  const char *ui_name,
324  const char *ui_description);
326  const char *identifier,
327  StructRNA *type,
328  const char *ui_name,
329  const char *ui_description);
330 
331 /* Extended Property Definitions */
332 
334  const char *identifier,
335  int type,
336  int subtype);
337 
339  const char *structname,
340  const char *propname,
341  int64_t bit);
343  const char *structname,
344  const char *propname,
345  int64_t bit);
346 void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname);
347 void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname);
348 void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname);
349 void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname);
351  const char *structname,
352  const char *propname);
354  const char *structname,
355  const char *propname);
357  const char *structname,
358  const char *propname,
359  const char *lengthpropname);
360 
365 void RNA_def_property_tags(PropertyRNA *prop, int tags);
367 void RNA_def_property_array(PropertyRNA *prop, int length);
368 void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[]);
369 void RNA_def_property_range(PropertyRNA *prop, double min, double max);
370 
372 void RNA_def_property_enum_native_type(PropertyRNA *prop, const char *native_enum_type);
373 void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength);
374 void RNA_def_property_struct_type(PropertyRNA *prop, const char *type);
376  PropertyRNA *prop,
377  StructRNA *type);
378 
379 void RNA_def_property_boolean_default(PropertyRNA *prop, bool value);
381 void RNA_def_property_int_default(PropertyRNA *prop, int value);
383 void RNA_def_property_float_default(PropertyRNA *prop, float value);
384 void RNA_def_property_float_array_default(PropertyRNA *prop, const float *array);
385 void RNA_def_property_enum_default(PropertyRNA *prop, int value);
386 void RNA_def_property_string_default(PropertyRNA *prop, const char *value);
387 
388 void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description);
390  PropertyRNA *prop, double min, double max, double step, int precision);
391 void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive);
392 
393 void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *updatefunc);
394 void RNA_def_property_editable_func(PropertyRNA *prop, const char *editable);
395 void RNA_def_property_editable_array_func(PropertyRNA *prop, const char *editable);
396 
398  const char *diff,
399  const char *store,
400  const char *apply);
401 
402 void RNA_def_property_update_runtime(PropertyRNA *prop, const void *func);
403 void RNA_def_property_poll_runtime(PropertyRNA *prop, const void *func);
404 
405 void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength);
406 void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set);
408  const char *get,
409  const char *set,
410  const char *range);
412  const char *get,
413  const char *set,
414  const char *range);
416  const char *get,
417  const char *set,
418  const char *item);
420  const char *get,
421  const char *length,
422  const char *set);
424  PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll);
426  const char *begin,
427  const char *next,
428  const char *end,
429  const char *get,
430  const char *length,
431  const char *lookupint,
432  const char *lookupstring,
433  const char *assignint);
434 void RNA_def_property_srna(PropertyRNA *prop, const char *type);
435 void RNA_def_py_data(PropertyRNA *prop, void *py_data);
436 
438  BooleanPropertyGetFunc getfunc,
439  BooleanPropertySetFunc setfunc);
444  IntPropertyGetFunc getfunc,
445  IntPropertySetFunc setfunc,
446  IntPropertyRangeFunc rangefunc);
448  IntArrayPropertyGetFunc getfunc,
449  IntArrayPropertySetFunc setfunc,
450  IntPropertyRangeFunc rangefunc);
452  FloatPropertyGetFunc getfunc,
453  FloatPropertySetFunc setfunc,
454  FloatPropertyRangeFunc rangefunc);
458  FloatPropertyRangeFunc rangefunc);
460  EnumPropertyGetFunc getfunc,
461  EnumPropertySetFunc setfunc,
462  EnumPropertyItemFunc itemfunc);
464  StringPropertyGetFunc getfunc,
465  StringPropertyLengthFunc lengthfunc,
466  StringPropertySetFunc setfunc);
467 
469 
470 /* Function */
471 
472 FunctionRNA *RNA_def_function(StructRNA *srna, const char *identifier, const char *call);
473 FunctionRNA *RNA_def_function_runtime(StructRNA *srna, const char *identifier, CallFunc call);
476 void RNA_def_function_flag(FunctionRNA *func, int flag);
477 void RNA_def_function_ui_description(FunctionRNA *func, const char *description);
478 
480  PropertyFlag flag_property,
481  ParameterFlag flag_parameter);
483  PropertyFlag flag_property,
484  ParameterFlag flag_parameter);
485 
486 /* Dynamic Enums
487  * strings are not freed, assumed pointing to static location. */
488 
489 void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item);
490 void RNA_enum_item_add_separator(EnumPropertyItem **items, int *totitem);
491 void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item);
493  int *totitem,
494  const EnumPropertyItem *item,
495  int value);
496 void RNA_enum_item_end(EnumPropertyItem **items, int *totitem);
497 
498 /* Memory management */
499 
506 int RNA_def_property_free_identifier(StructOrFunctionRNA *cont_, const char *identifier);
507 
509  void (*py_data_clear_fn)(PropertyRNA *prop));
510 
511 /* utilities */
513 #define IS_DNATYPE_FLOAT_COMPAT(_str) (strcmp(_str, "float") == 0 || strcmp(_str, "double") == 0)
514 #define IS_DNATYPE_INT_COMPAT(_str) \
515  (strcmp(_str, "int") == 0 || strcmp(_str, "short") == 0 || strcmp(_str, "char") == 0 || \
516  strcmp(_str, "uchar") == 0 || strcmp(_str, "ushort") == 0 || strcmp(_str, "int8_t") == 0)
517 #define IS_DNATYPE_BOOLEAN_COMPAT(_str) \
518  (IS_DNATYPE_INT_COMPAT(_str) || strcmp(_str, "int64_t") == 0 || strcmp(_str, "uint64_t") == 0)
519 
520 void RNA_identifier_sanitize(char *identifier, int property);
521 
522 extern const int rna_matrix_dimsize_3x3[];
523 extern const int rna_matrix_dimsize_4x4[];
524 extern const int rna_matrix_dimsize_4x2[];
525 
526 extern const float rna_default_axis_angle[4];
527 extern const float rna_default_quaternion[4];
528 extern const float rna_default_scale_3d[3];
529 
530 /* max size for dynamic defined type descriptors,
531  * this value is arbitrary */
532 #define RNA_DYN_DESCR_MAX 240
533 
534 #ifdef __cplusplus
535 }
536 #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
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:4448
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop)
Definition: rna_define.c:1122
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
Definition: rna_define.c:1167
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2762
void RNA_define_lib_overridable(const bool make_overridable)
Definition: rna_define.c:760
void RNA_def_property_struct_runtime(StructOrFunctionRNA *cont, PropertyRNA *prop, StructRNA *type)
Definition: rna_define.c:1820
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
Definition: rna_define.c:1212
void RNA_define_animate_sdna(bool animate)
Definition: rna_define.c:766
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:3611
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
Definition: rna_define.c:4159
void RNA_def_struct_flag(StructRNA *srna, int flag)
Definition: rna_define.c:1152
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:3585
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:2257
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
Definition: rna_define.c:1555
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
Definition: rna_define.c:3312
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:3563
const float rna_default_quaternion[4]
Definition: rna_define.c:1620
void RNA_def_property_float_default(PropertyRNA *prop, float value)
Definition: rna_define.c:2042
void RNA_init(void)
Definition: rna_access.c:75
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
Definition: rna_define.c:4302
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
Definition: rna_define.c:2127
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
Definition: rna_define.c:3153
void RNA_define_verify_sdna(bool verify)
Definition: rna_define.c:751
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:3519
void RNA_def_property_enum_native_type(PropertyRNA *prop, const char *native_enum_type)
Definition: rna_define.c:1875
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
Definition: rna_define.c:1676
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2717
const int rna_matrix_dimsize_4x2[]
Definition: rna_define.c:1627
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
Definition: rna_define.c:1684
void RNA_def_struct_property_tags(StructRNA *srna, const EnumPropertyItem *prop_tag_defines)
Definition: rna_define.c:1162
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
Definition: rna_define.c:4262
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
Definition: rna_define.c:3462
void RNA_def_property_int_funcs_runtime(PropertyRNA *prop, IntPropertyGetFunc getfunc, IntPropertySetFunc setfunc, IntPropertyRangeFunc rangefunc)
Definition: rna_define.c:3099
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:3408
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
Definition: rna_define.c:1259
const float rna_default_scale_3d[3]
Definition: rna_define.c:1622
PropertyRNA * RNA_def_collection_runtime(StructOrFunctionRNA *cont, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
Definition: rna_define.c:4210
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_boolean_default(PropertyRNA *prop, bool value)
Definition: rna_define.c:1957
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
Definition: rna_define.c:2971
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:3943
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:3825
void RNA_def_struct_register_funcs(StructRNA *srna, const char *reg, const char *unreg, const char *instance)
Definition: rna_define.c:1191
void RNA_identifier_sanitize(char *identifier, int property)
Definition: rna_define.c:617
void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength)
Definition: rna_define.c:2953
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[])
Definition: rna_define.c:1629
void RNA_def_property_enum_funcs_runtime(PropertyRNA *prop, EnumPropertyGetFunc getfunc, EnumPropertySetFunc setfunc, EnumPropertyItemFunc itemfunc)
Definition: rna_define.c:3285
void RNA_def_property_boolean_array_funcs_runtime(PropertyRNA *prop, BooleanArrayPropertyGetFunc getfunc, BooleanArrayPropertySetFunc setfunc)
Definition: rna_define.c:3032
void RNA_def_struct_identifier(BlenderRNA *brna, StructRNA *srna, const char *identifier)
Definition: rna_define.c:1224
void RNA_def_property_int_default(PropertyRNA *prop, int value)
Definition: rna_define.c:1998
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:4065
const float rna_default_axis_angle[4]
Definition: rna_define.c:1621
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
Definition: rna_define.c:919
void RNA_def_property_editable_array_func(PropertyRNA *prop, const char *editable)
Definition: rna_define.c:2889
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:3675
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
Definition: rna_define.c:1892
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
Definition: rna_define.c:1067
void RNA_def_py_data(PropertyRNA *prop, void *py_data)
Definition: rna_define.c:3474
void RNA_def_struct_clear_flag(StructRNA *srna, int flag)
Definition: rna_define.c:1157
void RNA_def_property_array(PropertyRNA *prop, int length)
Definition: rna_define.c:1568
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
Definition: rna_define.c:1757
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:3747
void RNA_def_struct_identifier_no_struct_map(StructRNA *srna, const char *identifier)
Definition: rna_define.c:1249
void RNA_def_property_poll_runtime(PropertyRNA *prop, const void *func)
Definition: rna_define.c:2943
void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength)
Definition: rna_define.c:1940
void RNA_def_struct_sdna_from(StructRNA *srna, const char *structname, const char *propname)
Definition: rna_define.c:1094
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:3723
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
Definition: rna_define.c:1792
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
Definition: rna_define.c:2791
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
Definition: rna_define.c:4337
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:3497
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:3699
const int rna_matrix_dimsize_4x4[]
Definition: rna_define.c:1626
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
Definition: rna_define.c:3251
void RNA_def_property_editable_func(PropertyRNA *prop, const char *editable)
Definition: rna_define.c:2877
void RNA_def_property_float_funcs_runtime(PropertyRNA *prop, FloatPropertyGetFunc getfunc, FloatPropertySetFunc setfunc, FloatPropertyRangeFunc rangefunc)
Definition: rna_define.c:3197
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2691
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:4005
void RNA_def_property_int_array_default(PropertyRNA *prop, const int *array)
Definition: rna_define.c:2020
void RNA_free(BlenderRNA *brna)
Definition: rna_define.c:846
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
Definition: rna_define.c:4470
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:3883
void RNA_def_function_flag(FunctionRNA *func, int flag)
Definition: rna_define.c:4332
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
Definition: rna_define.c:1517
void RNA_struct_free_extension(StructRNA *srna, ExtensionRNA *rna_ext)
Definition: rna_define.c:780
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:4041
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:3373
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
Definition: rna_define.c:1047
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:3771
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2623
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
Definition: rna_define.c:2348
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
Definition: rna_define.c:4416
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
Definition: rna_define.c:3055
const int rna_matrix_dimsize_3x3[]
Definition: rna_define.c:1625
void RNA_exit(void)
Definition: rna_access.c:99
void RNA_def_property_string_default(PropertyRNA *prop, const char *value)
Definition: rna_define.c:2086
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
Definition: rna_define.c:1267
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont, const char *identifier, int type, int subtype)
Definition: rna_define.c:1279
PropertyRNA * RNA_def_pointer_runtime(StructOrFunctionRNA *cont, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
Definition: rna_define.c:4175
FunctionRNA * RNA_def_function_runtime(StructRNA *srna, const char *identifier, CallFunc call)
Definition: rna_define.c:4285
void RNA_def_property_int_array_funcs_runtime(PropertyRNA *prop, IntArrayPropertyGetFunc getfunc, IntArrayPropertySetFunc setfunc, IntPropertyRangeFunc rangefunc)
Definition: rna_define.c:3126
void RNA_def_property_float_array_funcs_runtime(PropertyRNA *prop, FloatArrayPropertyGetFunc getfunc, FloatArrayPropertySetFunc setfunc, FloatPropertyRangeFunc rangefunc)
Definition: rna_define.c:3224
void RNA_struct_free(BlenderRNA *brna, StructRNA *srna)
Definition: rna_define.c:795
void RNA_def_struct_idprops_func(StructRNA *srna, const char *idproperties)
Definition: rna_define.c:1179
void RNA_def_property_override_funcs(PropertyRNA *prop, const char *diff, const char *store, const char *apply)
Definition: rna_define.c:2906
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
Definition: rna_define.c:2870
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3481
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:4097
void RNA_def_func_free_pointers(FunctionRNA *func)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
Definition: rna_define.c:1512
void RNA_def_property_override_clear_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
Definition: rna_define.c:1530
void RNA_def_property_update_runtime(PropertyRNA *prop, const void *func)
Definition: rna_define.c:2938
void RNA_enum_item_add_separator(EnumPropertyItem **items, int *totitem)
Definition: rna_define.c:4442
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
Definition: rna_define.c:3819
BlenderRNA * RNA_create(void)
Definition: rna_define.c:692
void RNA_def_property_subtype(PropertyRNA *prop, PropertySubType subtype)
Definition: rna_define.c:1563
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:3541
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2515
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:3851
void RNA_def_property_boolean_array_default(PropertyRNA *prop, const bool *array)
Definition: rna_define.c:1981
void RNA_def_property_boolean_funcs_runtime(PropertyRNA *prop, BooleanPropertyGetFunc getfunc, BooleanPropertySetFunc setfunc)
Definition: rna_define.c:3009
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *updatefunc)
Definition: rna_define.c:2927
PropertyRNA * RNA_def_collection(StructOrFunctionRNA *cont, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
Definition: rna_define.c:4194
void RNA_enum_items_add_value(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item, int value)
Definition: rna_define.c:4455
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
Definition: rna_define.c:1706
void StructOrFunctionRNA
Definition: RNA_define.h:86
void RNA_def_property_tags(PropertyRNA *prop, int tags)
Definition: rna_define.c:1542
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:3643
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:3795
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2364
const char * RNA_property_typename(PropertyType type)
Definition: rna_define.c:4761
void RNA_def_struct_translation_context(StructRNA *srna, const char *context)
Definition: rna_define.c:1272
void RNA_def_property_float_array_default(PropertyRNA *prop, const float *array)
Definition: rna_define.c:2064
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:3911
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:4133
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:3975
void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname)
Definition: rna_define.c:1138
void RNA_define_fallback_property_update(int noteflag, const char *updatefunc)
Definition: rna_define.c:773
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:1525
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
Definition: rna_define.c:1547
ParameterFlag
Definition: RNA_types.h:336
int(* EnumPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop)
Definition: RNA_types.h:503
float(* FloatPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop)
Definition: RNA_types.h:480
void(* IntPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, int value)
Definition: RNA_types.h:467
void(* EnumPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, int value)
Definition: RNA_types.h:504
void(* IntPropertyRangeFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, int *min, int *max, int *softmin, int *softmax)
Definition: RNA_types.h:474
void(* IntArrayPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, int *values)
Definition: RNA_types.h:468
void(* FloatPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, float value)
Definition: RNA_types.h:481
PropertyType
Definition: RNA_types.h:72
void(* CallFunc)(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, ParameterList *parms)
Definition: RNA_types.h:609
void(* FloatPropertyRangeFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, float *min, float *max, float *softmin, float *softmax)
Definition: RNA_types.h:490
void(* BooleanArrayPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, const bool *values)
Definition: RNA_types.h:463
void(* FloatArrayPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, const float *values)
Definition: RNA_types.h:487
bool(* BooleanPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop)
Definition: RNA_types.h:456
void(* BooleanArrayPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, bool *values)
Definition: RNA_types.h:460
void(* StringPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, char *value)
Definition: RNA_types.h:496
void(* StringPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, const char *value)
Definition: RNA_types.h:500
PropertyOverrideFlag
Definition: RNA_types.h:295
void(* IntArrayPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, const int *values)
Definition: RNA_types.h:471
int(* StringPropertyLengthFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop)
Definition: RNA_types.h:499
int(* IntPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop)
Definition: RNA_types.h:466
const EnumPropertyItem *(* EnumPropertyItemFunc)(struct bContext *C, PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free)
Definition: RNA_types.h:506
PropertyFlag
Definition: RNA_types.h:169
void(* FloatArrayPropertyGetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, float *values)
Definition: RNA_types.h:484
void(* BooleanPropertySetFunc)(struct PointerRNA *ptr, struct PropertyRNA *prop, bool value)
Definition: RNA_types.h:457
PropertySubType
Definition: RNA_types.h:112
SIMD_FORCE_INLINE btScalar length(const btQuaternion &q)
Return the length of a quaternion.
Definition: btQuaternion.h:895
StackEntry * from
static ulong * next
IMETHOD Vector diff(const Vector &a, const Vector &b, double dt=1)
return ret
struct SELECTID_Context context
Definition: select_engine.c:47
#define min(a, b)
Definition: sort.c:51
__int64 int64_t
Definition: stdint.h:92
float max
uint len