Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_ui_api.c
| Show First 20 Lines • Show All 971 Lines • ▼ Show 20 Lines | RNA_def_function_ui_description(func, | ||||
| "Item. Places a button into the layout to call an Operator"); | "Item. Places a button into the layout to call an Operator"); | ||||
| } | } | ||||
| func = RNA_def_function(srna, "operator_enum", "uiItemsEnumO"); | func = RNA_def_function(srna, "operator_enum", "uiItemsEnumO"); | ||||
| parm = RNA_def_string(func, "operator", NULL, 0, "", "Identifier of the operator"); | parm = RNA_def_string(func, "operator", NULL, 0, "", "Identifier of the operator"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| parm = RNA_def_string(func, "property", NULL, 0, "", "Identifier of property in operator"); | parm = RNA_def_string(func, "property", NULL, 0, "", "Identifier of property in operator"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| RNA_def_boolean(func, "icon_only", false, "", "Draw only icons in buttons, no text"); | |||||
| func = RNA_def_function(srna, "operator_menu_enum", "rna_uiItemMenuEnumO"); | func = RNA_def_function(srna, "operator_menu_enum", "rna_uiItemMenuEnumO"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| api_ui_item_op(func); /* cant use api_ui_item_op_common because property must come right after */ | api_ui_item_op(func); /* cant use api_ui_item_op_common because property must come right after */ | ||||
| parm = RNA_def_string(func, "property", NULL, 0, "", "Identifier of property in operator"); | parm = RNA_def_string(func, "property", NULL, 0, "", "Identifier of property in operator"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| api_ui_item_common(func); | api_ui_item_common(func); | ||||
| ▲ Show 20 Lines • Show All 657 Lines • Show Last 20 Lines | |||||