Blender V4.5
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#include "RNA_types.hh"
19
20#ifdef UNIT_TEST
21# define RNA_MAX_ARRAY_LENGTH 64
22#else
23# define RNA_MAX_ARRAY_LENGTH 64
24#endif
25
26#define RNA_MAX_ARRAY_DIMENSION 3
27
28/* Blender RNA */
29
30struct Scene;
31
33void RNA_define_free(BlenderRNA *brna);
34void RNA_free(BlenderRNA *brna);
35
49void RNA_define_verify_sdna(bool verify);
50void RNA_define_animate_sdna(bool animate);
51void RNA_define_fallback_property_update(int noteflag, const char *updatefunc);
56void RNA_define_lib_overridable(bool make_overridable);
57
58void RNA_init();
59void RNA_bpy_exit();
60void RNA_exit();
61
62/* Struct */
63
67StructRNA *RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom);
68StructRNA *RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from);
69void RNA_def_struct_sdna(StructRNA *srna, const char *structname);
70void RNA_def_struct_sdna_from(StructRNA *srna, const char *structname, const char *propname);
72void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname);
73void RNA_def_struct_flag(StructRNA *srna, int flag);
75void RNA_def_struct_property_tags(StructRNA *srna, const EnumPropertyItem *prop_tag_defines);
76void RNA_def_struct_refine_func(StructRNA *srna, const char *refine);
77void RNA_def_struct_idprops_func(StructRNA *srna, const char *idproperties);
79 const char *reg,
80 const char *unreg,
81 const char *instance);
90void RNA_def_struct_path_func(StructRNA *srna, const char *path);
94void RNA_def_struct_identifier_no_struct_map(StructRNA *srna, const char *identifier);
95void RNA_def_struct_identifier(BlenderRNA *brna, StructRNA *srna, const char *identifier);
96void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description);
97void RNA_def_struct_ui_icon(StructRNA *srna, int icon);
99void RNA_struct_free(BlenderRNA *brna, StructRNA *srna);
100
101void RNA_def_struct_translation_context(StructRNA *srna, const char *context);
102
103/* Compact Property Definitions */
104
106
108 const char *identifier,
109 bool default_value,
110 const char *ui_name,
111 const char *ui_description);
113 const char *identifier,
114 int len,
115 const bool *default_value,
116 const char *ui_name,
117 const char *ui_description);
119 const char *identifier,
120 int len,
121 const bool *default_value,
122 const char *ui_name,
123 const char *ui_description);
125 const char *identifier,
126 int len,
127 const bool *default_value,
128 const char *ui_name,
129 const char *ui_description);
131 const char *identifier,
132 int len,
133 const bool *default_value,
134 const char *ui_name,
135 const char *ui_description);
136
138 const char *identifier,
139 int default_value,
140 int hardmin,
141 int hardmax,
142 const char *ui_name,
143 const char *ui_description,
144 int softmin,
145 int softmax);
147 const char *identifier,
148 int len,
149 const int *default_value,
150 int hardmin,
151 int hardmax,
152 const char *ui_name,
153 const char *ui_description,
154 int softmin,
155 int softmax);
157 const char *identifier,
158 int len,
159 const int *default_value,
160 int hardmin,
161 int hardmax,
162 const char *ui_name,
163 const char *ui_description,
164 int softmin,
165 int softmax);
166
168 const char *identifier,
169 const char *default_value,
170 int maxlen,
171 const char *ui_name,
172 const char *ui_description);
174 const char *identifier,
175 const char *default_value,
176 int maxlen,
177 const char *ui_name,
178 const char *ui_description);
180 const char *identifier,
181 const char *default_value,
182 int maxlen,
183 const char *ui_name,
184 const char *ui_description);
186 const char *identifier,
187 const char *default_value,
188 int maxlen,
189 const char *ui_name,
190 const char *ui_description);
191
193 const char *identifier,
194 const EnumPropertyItem *items,
195 int default_value,
196 const char *ui_name,
197 const char *ui_description);
202 const char *identifier,
203 const EnumPropertyItem *items,
204 int default_value,
205 const char *ui_name,
206 const char *ui_description);
208
210 const char *identifier,
211 float default_value,
212 float hardmin,
213 float hardmax,
214 const char *ui_name,
215 const char *ui_description,
216 float softmin,
217 float softmax);
219 const char *identifier,
220 int len,
221 const float *default_value,
222 float hardmin,
223 float hardmax,
224 const char *ui_name,
225 const char *ui_description,
226 float softmin,
227 float softmax);
229 const char *identifier,
230 int len,
231 const float *default_value,
232 float hardmin,
233 float hardmax,
234 const char *ui_name,
235 const char *ui_description,
236 float softmin,
237 float softmax);
239 const char *identifier,
240 int len,
241 const float *default_value,
242 float hardmin,
243 float hardmax,
244 const char *ui_name,
245 const char *ui_description,
246 float softmin,
247 float softmax);
249 const char *identifier,
250 int rows,
251 int columns,
252 const float *default_value,
253 float hardmin,
254 float hardmax,
255 const char *ui_name,
256 const char *ui_description,
257 float softmin,
258 float softmax);
260 const char *identifier,
261 int len,
262 const float *default_value,
263 float hardmin,
264 float hardmax,
265 const char *ui_name,
266 const char *ui_description,
267 float softmin,
268 float softmax);
270 const char *identifier,
271 int len,
272 const float *default_value,
273 float hardmin,
274 float hardmax,
275 const char *ui_name,
276 const char *ui_description,
277 float softmin,
278 float softmax);
280 const char *identifier,
281 float default_value,
282 float hardmin,
283 float hardmax,
284 const char *ui_name,
285 const char *ui_description,
286 float softmin,
287 float softmax);
289 const char *identifier,
290 int len,
291 const 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);
298
299#if 0
300PropertyRNA *RNA_def_float_dynamic_array(StructOrFunctionRNA *cont,
301 const char *identifier,
302 float hardmin,
303 float hardmax,
304 const char *ui_name,
305 const char *ui_description,
306 float softmin,
307 float softmax,
308 unsigned int dimension,
309 unsigned short dim_size[]);
310#endif
311
313 const char *identifier,
314 float default_value,
315 float hardmin,
316 float hardmax,
317 const char *ui_name,
318 const char *ui_description,
319 float softmin,
320 float softmax);
322 const char *identifier,
323 float default_value,
324 float hardmin,
325 float hardmax,
326 const char *ui_name,
327 const char *ui_description,
328 float softmin,
329 float softmax);
330
332 const char *identifier,
333 const char *type,
334 const char *ui_name,
335 const char *ui_description);
337 const char *identifier,
338 StructRNA *type,
339 const char *ui_name,
340 const char *ui_description);
341
343 const char *identifier,
344 const char *type,
345 const char *ui_name,
346 const char *ui_description);
348 const char *identifier,
349 StructRNA *type,
350 const char *ui_name,
351 const char *ui_description);
352
353/* Extended Property Definitions */
354
356 const char *identifier,
357 int type,
358 int subtype);
359
369 const char *structname,
370 const char *propname,
371 int64_t booleanbit);
373 const char *structname,
374 const char *propname,
375 int64_t booleanbit);
391 PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit, int len);
392void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname);
393void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname);
394void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname);
395void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname);
397 const char *structname,
398 const char *propname);
400 const char *structname,
401 const char *propname);
403 const char *structname,
404 const char *propname,
405 const char *lengthpropname);
406
418void RNA_def_property_tags(PropertyRNA *prop, int tags);
421void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[]);
422void RNA_def_property_range(PropertyRNA *prop, double min, double max);
423
429void RNA_def_property_enum_native_type(PropertyRNA *prop, const char *native_enum_type);
430void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength);
431void RNA_def_property_struct_type(PropertyRNA *prop, const char *type);
433 PropertyRNA *prop,
434 StructRNA *type);
435
436void RNA_def_property_boolean_default(PropertyRNA *prop, bool value);
438void RNA_def_property_int_default(PropertyRNA *prop, int value);
440void RNA_def_property_float_default(PropertyRNA *prop, float value);
445void RNA_def_property_enum_default(PropertyRNA *prop, int value);
446void RNA_def_property_string_default(PropertyRNA *prop, const char *value);
447
448void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description);
461 PropertyRNA *prop, double min, double max, double step, int precision);
463void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive);
464
465void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *updatefunc);
466void RNA_def_property_editable_func(PropertyRNA *prop, const char *editable);
467void RNA_def_property_editable_array_func(PropertyRNA *prop, const char *editable);
468
475 const char *diff,
476 const char *store,
477 const char *apply);
478
479using RNAPropertyUpdateFunc = void (*)(Main *, Scene *, PointerRNA *);
482 PropertyRNA *prop);
483
487void RNA_def_property_update_notifier(PropertyRNA *prop, int noteflag);
488void RNA_def_property_poll_runtime(PropertyRNA *prop, const void *func);
489
490void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength);
491void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set);
493 const char *get,
494 const char *set,
495 const char *range);
497 const char *get,
498 const char *set,
499 const char *range);
501 const char *get,
502 const char *set,
503 const char *item);
505 const char *get,
506 const char *length,
507 const char *set);
509 const char *search,
510 eStringPropertySearchFlag search_flag);
513 PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll);
515 const char *begin,
516 const char *next,
517 const char *end,
518 const char *get,
519 const char *length,
520 const char *lookupint,
521 const char *lookupstring,
522 const char *assignint);
523
524void RNA_def_property_float_default_func(PropertyRNA *prop, const char *get_default);
525void RNA_def_property_int_default_func(PropertyRNA *prop, const char *get_default);
526void RNA_def_property_boolean_default_func(PropertyRNA *prop, const char *get_default);
527void RNA_def_property_enum_default_func(PropertyRNA *prop, const char *get_default);
528
529void RNA_def_property_srna(PropertyRNA *prop, const char *type);
530void RNA_def_py_data(PropertyRNA *prop, void *py_data);
531
534 BooleanPropertySetFunc setfunc);
539 IntPropertyGetFunc getfunc,
540 IntPropertySetFunc setfunc,
541 IntPropertyRangeFunc rangefunc);
545 IntPropertyRangeFunc rangefunc);
547 FloatPropertyGetFunc getfunc,
548 FloatPropertySetFunc setfunc,
549 FloatPropertyRangeFunc rangefunc);
553 FloatPropertyRangeFunc rangefunc);
555 EnumPropertyGetFunc getfunc,
556 EnumPropertySetFunc setfunc,
557 EnumPropertyItemFunc itemfunc);
559 StringPropertyGetFunc getfunc,
560 StringPropertyLengthFunc lengthfunc,
561 StringPropertySetFunc setfunc);
563 StringPropertySearchFunc search_fn,
564 eStringPropertySearchFlag search_flag);
565
566void RNA_def_property_translation_context(PropertyRNA *prop, const char *context);
567
568/* Function */
569
570FunctionRNA *RNA_def_function(StructRNA *srna, const char *identifier, const char *call);
571FunctionRNA *RNA_def_function_runtime(StructRNA *srna, const char *identifier, CallFunc call);
577void RNA_def_function_flag(FunctionRNA *func, int flag);
578void RNA_def_function_ui_description(FunctionRNA *func, const char *description);
579
581 PropertyFlag flag_property,
582 ParameterFlag flag_parameter);
584 PropertyFlag flag_property,
585 ParameterFlag flag_parameter);
587 PropertyPathTemplateType path_template_type);
588
589/* Dynamic Enums
590 * strings are not freed, assumed pointing to static location. */
591
592void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item);
593void RNA_enum_item_add_separator(EnumPropertyItem **items, int *totitem);
594void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item);
596 int *totitem,
597 const EnumPropertyItem *item,
598 int value);
599void RNA_enum_item_end(EnumPropertyItem **items, int *totitem);
600
601/* Memory management */
602
609int RNA_def_property_free_identifier(StructOrFunctionRNA *cont_, const char *identifier);
610
612 const char *identifier,
613 void **handle);
615
617 void (*py_data_clear_fn)(PropertyRNA *prop));
618
619/* Utilities. */
620
621const char *RNA_property_typename(PropertyType type);
622#define IS_DNATYPE_FLOAT_COMPAT(_str) (strcmp(_str, "float") == 0 || strcmp(_str, "double") == 0)
623#define IS_DNATYPE_INT_COMPAT(_str) \
624 (strcmp(_str, "int") == 0 || strcmp(_str, "short") == 0 || strcmp(_str, "char") == 0 || \
625 strcmp(_str, "uchar") == 0 || strcmp(_str, "ushort") == 0 || strcmp(_str, "int8_t") == 0)
626#define IS_DNATYPE_BOOLEAN_COMPAT(_str) \
627 (IS_DNATYPE_INT_COMPAT(_str) || strcmp(_str, "int64_t") == 0 || strcmp(_str, "uint64_t") == 0)
628
629void RNA_identifier_sanitize(char *identifier, int property);
630
631/* Common arguments for length. */
632
633extern const int rna_matrix_dimsize_3x3[];
634extern const int rna_matrix_dimsize_4x4[];
635extern const int rna_matrix_dimsize_4x2[];
636
637/* Common arguments for defaults. */
638
639extern const float rna_default_axis_angle[4];
640extern const float rna_default_quaternion[4];
641extern const float rna_default_scale_3d[3];
642
644#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)
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_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)
void RNA_def_property_int_funcs_runtime(PropertyRNA *prop, IntPropertyGetFunc getfunc, IntPropertySetFunc setfunc, IntPropertyRangeFunc rangefunc)
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)
void RNA_def_property_enum_funcs_runtime(PropertyRNA *prop, EnumPropertyGetFunc getfunc, EnumPropertySetFunc setfunc, EnumPropertyItemFunc itemfunc)
void RNA_def_property_boolean_array_funcs_runtime(PropertyRNA *prop, BooleanArrayPropertyGetFunc getfunc, BooleanArrayPropertySetFunc setfunc)
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_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_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)
void RNA_def_property_float_funcs_runtime(PropertyRNA *prop, FloatPropertyGetFunc getfunc, FloatPropertySetFunc setfunc, FloatPropertyRangeFunc rangefunc)
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_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_int_array_default(PropertyRNA *prop, const int *array)
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_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 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_int_array_funcs_runtime(PropertyRNA *prop, IntArrayPropertyGetFunc getfunc, IntArrayPropertySetFunc setfunc, IntPropertyRangeFunc rangefunc)
void RNA_def_property_float_array_funcs_runtime(PropertyRNA *prop, FloatArrayPropertyGetFunc getfunc, FloatArrayPropertySetFunc setfunc, FloatPropertyRangeFunc rangefunc)
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_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(*)(bContext *C, PointerRNA *ptr, PropertyRNA *prop) RNAPropertyUpdateFuncWithContextAndProperty
void RNA_def_property_boolean_array_default(PropertyRNA *prop, const bool *array)
void RNA_def_property_boolean_funcs_runtime(PropertyRNA *prop, BooleanPropertyGetFunc getfunc, BooleanPropertySetFunc setfunc)
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:80
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_string_funcs_runtime(PropertyRNA *prop, StringPropertyGetFunc getfunc, StringPropertyLengthFunc lengthfunc, StringPropertySetFunc setfunc)
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)
ParameterFlag
Definition RNA_types.hh:510
int(*)(PointerRNA *ptr, PropertyRNA *prop) EnumPropertyGetFunc
Definition RNA_types.hh:730
void(*)(PointerRNA *ptr, PropertyRNA *prop, char *value) StringPropertyGetFunc
Definition RNA_types.hh:674
void(*)(PointerRNA *ptr, PropertyRNA *prop, bool *values) BooleanArrayPropertyGetFunc
Definition RNA_types.hh:656
PropertyScaleType
Definition RNA_types.hh:191
void(*)(PointerRNA *ptr, PropertyRNA *prop, const bool *values) BooleanArrayPropertySetFunc
Definition RNA_types.hh:657
int(*)(PointerRNA *ptr, PropertyRNA *prop) StringPropertyLengthFunc
Definition RNA_types.hh:675
void(*)(PointerRNA *ptr, PropertyRNA *prop, float *values) FloatArrayPropertyGetFunc
Definition RNA_types.hh:668
void(*)(PointerRNA *ptr, PropertyRNA *prop, const char *value) StringPropertySetFunc
Definition RNA_types.hh:676
eStringPropertySearchFlag
Definition RNA_types.hh:687
void(*)(PointerRNA *ptr, PropertyRNA *prop, int *values) IntArrayPropertyGetFunc
Definition RNA_types.hh:662
void(*)(PointerRNA *ptr, PropertyRNA *prop, int value) EnumPropertySetFunc
Definition RNA_types.hh:731
void(*)(PointerRNA *ptr, PropertyRNA *prop, const int *values) IntArrayPropertySetFunc
Definition RNA_types.hh:663
PropertyType
Definition RNA_types.hh:149
void(*)(PointerRNA *ptr, PropertyRNA *prop, int *min, int *max, int *softmin, int *softmax) IntPropertyRangeFunc
Definition RNA_types.hh:664
void(*)(const bContext *C, PointerRNA *ptr, PropertyRNA *prop, const char *edit_text, blender::FunctionRef< void(StringPropertySearchVisitParams)> visit_fn) StringPropertySearchFunc
Definition RNA_types.hh:715
bool(*)(PointerRNA *ptr, PropertyRNA *prop) BooleanPropertyGetFunc
Definition RNA_types.hh:654
float(*)(PointerRNA *ptr, PropertyRNA *prop) FloatPropertyGetFunc
Definition RNA_types.hh:666
int(*)(PointerRNA *ptr, PropertyRNA *prop) IntPropertyGetFunc
Definition RNA_types.hh:660
void(*)(PointerRNA *ptr, PropertyRNA *prop, float value) FloatPropertySetFunc
Definition RNA_types.hh:667
PropertyOverrideFlag
Definition RNA_types.hh:467
void(*)( PointerRNA *ptr, PropertyRNA *prop, float *min, float *max, float *softmin, float *softmax) FloatPropertyRangeFunc
Definition RNA_types.hh:672
PropertyPathTemplateType
Definition RNA_types.hh:456
void(*)(PointerRNA *ptr, PropertyRNA *prop, int value) IntPropertySetFunc
Definition RNA_types.hh:661
void(*)(bContext *C, ReportList *reports, PointerRNA *ptr, ParameterList *parms) CallFunc
Definition RNA_types.hh:836
PropertyFlag
Definition RNA_types.hh:286
const EnumPropertyItem *(*)(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free) EnumPropertyItemFunc
Definition RNA_types.hh:733
void(*)(PointerRNA *ptr, PropertyRNA *prop, bool value) BooleanPropertySetFunc
Definition RNA_types.hh:655
void(*)(PointerRNA *ptr, PropertyRNA *prop, const float *values) FloatArrayPropertySetFunc
Definition RNA_types.hh:669
PropertySubType
Definition RNA_types.hh:220
#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
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
string name
Definition scene.h:117
struct Scene * set
max
Definition text_draw.cc:251
uint len
PointerRNA * ptr
Definition wm_files.cc:4226
uint8_t flag
Definition wm_window.cc:139