Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_ui_api.c
| Show First 20 Lines • Show All 665 Lines • ▼ Show 20 Lines | #endif | ||||
| parm = RNA_def_pointer(func, "data", "AnyType", "", "Data from which to take property"); | parm = RNA_def_pointer(func, "data", "AnyType", "", "Data from which to take property"); | ||||
| 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_string(func, "property", NULL, 0, "", "Identifier of property in data"); | parm = RNA_def_string(func, "property", NULL, 0, "", "Identifier of property in data"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| parm = RNA_def_string(func, "type_property", NULL, 0, "", | parm = RNA_def_string(func, "type_property", NULL, 0, "", | ||||
| "Identifier of property in data giving the type of the ID-blocks to use"); | "Identifier of property in data giving the type of the ID-blocks to use"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| api_ui_item_common_text(func); | api_ui_item_common_text(func); | ||||
| func = RNA_def_function(srna, "template_search", "uiTemplateSearch"); | |||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | |||||
| api_ui_item_rna_common(func); | |||||
| parm = RNA_def_pointer(func, "search_data", "AnyType", "", "Data from which to take collection to search in"); | |||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | |||||
| parm = RNA_def_string(func, "search_property", NULL, 0, "", "Identifier of search collection property"); | |||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | |||||
| RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new item for the collection"); | |||||
| RNA_def_string(func, "unlink", NULL, 0, "", "Operator identifier to unlink or delete the active " | |||||
| "item from the collection"); | |||||
| func = RNA_def_function(srna, "template_search_preview", "uiTemplateSearchPreview"); | |||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | |||||
| api_ui_item_rna_common(func); | |||||
| parm = RNA_def_pointer(func, "search_data", "AnyType", "", "Data from which to take collection to search in"); | |||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | |||||
| parm = RNA_def_string(func, "search_property", NULL, 0, "", "Identifier of search collection property"); | |||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | |||||
| RNA_def_string(func, "new", NULL, 0, "", "Operator identifier to create a new item for the collection"); | |||||
| RNA_def_string(func, "unlink", NULL, 0, "", "Operator identifier to unlink or delete the active " | |||||
| "item from the collection"); | |||||
| 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); | |||||
| func = RNA_def_function(srna, "template_path_builder", "rna_uiTemplatePathBuilder"); | func = RNA_def_function(srna, "template_path_builder", "rna_uiTemplatePathBuilder"); | ||||
| parm = RNA_def_pointer(func, "data", "AnyType", "", "Data from which to take property"); | parm = RNA_def_pointer(func, "data", "AnyType", "", "Data from which to take property"); | ||||
| 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_string(func, "property", NULL, 0, "", "Identifier of property in data"); | parm = RNA_def_string(func, "property", NULL, 0, "", "Identifier of property in data"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| parm = RNA_def_pointer(func, "root", "ID", "", "ID-block from which path is evaluated from"); | parm = RNA_def_pointer(func, "root", "ID", "", "ID-block from which path is evaluated from"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED | PARM_RNAPTR); | ||||
| api_ui_item_common_text(func); | api_ui_item_common_text(func); | ||||
| ▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines | |||||