Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_ui_api.c
| Show First 20 Lines • Show All 831 Lines • ▼ Show 20 Lines | #endif | ||||
| func = RNA_def_function(srna, "template_modifier", "uiTemplateModifier"); | func = RNA_def_function(srna, "template_modifier", "uiTemplateModifier"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| RNA_def_function_ui_description(func, "Generates the UI layout for modifiers"); | RNA_def_function_ui_description(func, "Generates the UI layout for modifiers"); | ||||
| parm = RNA_def_pointer(func, "data", "Modifier", "", "Modifier data"); | parm = RNA_def_pointer(func, "data", "Modifier", "", "Modifier data"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| parm = RNA_def_pointer(func, "layout", "UILayout", "", "Sub-layout to put items in"); | parm = RNA_def_pointer(func, "layout", "UILayout", "", "Sub-layout to put items in"); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| func = RNA_def_function(srna, "template_greasepencil_modifier", "uiTemplateGpencilModifier"); | |||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | |||||
| RNA_def_function_ui_description(func, "Generates the UI layout for grease pencil modifiers"); | |||||
| parm = RNA_def_pointer(func, "data", "GpencilModifier", "", "Modifier data"); | |||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | |||||
| parm = RNA_def_pointer(func, "layout", "UILayout", "", "Sub-layout to put items in"); | |||||
| RNA_def_function_return(func, parm); | |||||
| func = RNA_def_function(srna, "template_constraint", "uiTemplateConstraint"); | func = RNA_def_function(srna, "template_constraint", "uiTemplateConstraint"); | ||||
| RNA_def_function_ui_description(func, "Generates the UI layout for constraints"); | RNA_def_function_ui_description(func, "Generates the UI layout for constraints"); | ||||
| parm = RNA_def_pointer(func, "data", "Constraint", "", "Constraint data"); | parm = RNA_def_pointer(func, "data", "Constraint", "", "Constraint data"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| parm = RNA_def_pointer(func, "layout", "UILayout", "", "Sub-layout to put items in"); | parm = RNA_def_pointer(func, "layout", "UILayout", "", "Sub-layout to put items in"); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| func = RNA_def_function(srna, "template_preview", "uiTemplatePreview"); | func = RNA_def_function(srna, "template_preview", "uiTemplatePreview"); | ||||
| ▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines | |||||