Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/RNA_types.h
| Show First 20 Lines • Show All 349 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| typedef enum ParameterFlag { | typedef enum ParameterFlag { | ||||
| PARM_REQUIRED = (1 << 0), | PARM_REQUIRED = (1 << 0), | ||||
| PARM_OUTPUT = (1 << 1), | PARM_OUTPUT = (1 << 1), | ||||
| PARM_RNAPTR = (1 << 2), | PARM_RNAPTR = (1 << 2), | ||||
| /** | /** | ||||
| * This allows for non-breaking API updates, | * This allows for non-breaking API updates, | ||||
| * when adding non-critical new parameter to a callback function. | * when adding non-critical new parameter to a callback function. | ||||
| * This way, old py code defining funcs without that parameter would still work. | * This way, old Python code defining functions without that parameter would still work. | ||||
| * WARNING: any parameter after the first PYFUNC_OPTIONAL one will be considered as optional! | * WARNING: any parameter after the first PYFUNC_OPTIONAL one will be considered as optional! | ||||
| * \note only for input parameters! | * \note only for input parameters! | ||||
| */ | */ | ||||
| PARM_PYFUNC_OPTIONAL = (1 << 3), | PARM_PYFUNC_OPTIONAL = (1 << 3), | ||||
| } ParameterFlag; | } ParameterFlag; | ||||
| struct CollectionPropertyIterator; | struct CollectionPropertyIterator; | ||||
| struct Link; | struct Link; | ||||
| ▲ Show 20 Lines • Show All 409 Lines • Show Last 20 Lines | |||||