Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_ui_api.c
| Show First 20 Lines • Show All 753 Lines • ▼ Show 20 Lines | #endif | ||||
| func = RNA_def_function(srna, "template_ID", "uiTemplateID"); | func = RNA_def_function(srna, "template_ID", "uiTemplateID"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| api_ui_item_rna_common(func); | api_ui_item_rna_common(func); | ||||
| RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new ID block"); | RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new ID block"); | ||||
| RNA_def_string(func, "open", NULL, 0, "", "Operator identifier to open a file for creating a new ID block"); | RNA_def_string(func, "open", NULL, 0, "", "Operator identifier to open a file for creating a new ID block"); | ||||
| RNA_def_string(func, "unlink", NULL, 0, "", "Operator identifier to unlink the ID block"); | RNA_def_string(func, "unlink", NULL, 0, "", "Operator identifier to unlink the ID block"); | ||||
| RNA_def_enum(func, "filter", id_template_filter_items, UI_TEMPLATE_ID_FILTER_ALL, | RNA_def_enum(func, "filter", id_template_filter_items, UI_TEMPLATE_ID_FILTER_ALL, | ||||
| "", "Optionally limit the items which can be selected"); | "", "Optionally limit the items which can be selected"); | ||||
| RNA_def_boolean(func, "live_icon", false, "", "Show preview instead of fixed icon"); | |||||
| func = RNA_def_function(srna, "template_ID_preview", "uiTemplateIDPreview"); | func = RNA_def_function(srna, "template_ID_preview", "uiTemplateIDPreview"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| api_ui_item_rna_common(func); | api_ui_item_rna_common(func); | ||||
| RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new ID block"); | RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new ID block"); | ||||
| RNA_def_string(func, "open", NULL, 0, "", "Operator identifier to open a file for creating a new ID block"); | RNA_def_string(func, "open", NULL, 0, "", "Operator identifier to open a file for creating a new ID block"); | ||||
| RNA_def_string(func, "unlink", NULL, 0, "", "Operator identifier to unlink the ID block"); | RNA_def_string(func, "unlink", NULL, 0, "", "Operator identifier to unlink the ID block"); | ||||
| RNA_def_int(func, "rows", 0, 0, INT_MAX, "Number of thumbnail preview rows to display", "", 0, INT_MAX); | RNA_def_int(func, "rows", 0, 0, INT_MAX, "Number of thumbnail preview rows to display", "", 0, INT_MAX); | ||||
| ▲ Show 20 Lines • Show All 56 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_shaderfx", "uiTemplateShaderFx"); | |||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | |||||
| RNA_def_function_ui_description(func, "Generates the UI layout for shader effect"); | |||||
| parm = RNA_def_pointer(func, "data", "ShaderFx", "", "Shader 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_greasepencil_color", "uiTemplateGpencilColorPreview"); | |||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | |||||
| api_ui_item_rna_common(func); | |||||
| RNA_def_int(func, "rows", 0, 0, INT_MAX, "Number of thumbnail preview rows to display", "", 0, INT_MAX); | |||||
| RNA_def_int(func, "cols", 0, 0, INT_MAX, "Number of thumbnail preview columns to display", "", 0, INT_MAX); | |||||
| RNA_def_float(func, "scale", 1.0f, 0.1f, 1.5f, "Scale of the image thumbnails", "", 0.5f, 1.0f); | |||||
| RNA_def_enum(func, "filter", id_template_filter_items, UI_TEMPLATE_ID_FILTER_ALL, | |||||
| "", "Optionally limit the items which can be selected"); | |||||
| 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 235 Lines • Show Last 20 Lines | |||||