Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_wm_api.c
| Show First 20 Lines • Show All 628 Lines • ▼ Show 20 Lines | static void rna_generic_op_invoke(FunctionRNA *func, int flag) | ||||
| if (flag & WM_GEN_INVOKE_EVENT) { | if (flag & WM_GEN_INVOKE_EVENT) { | ||||
| parm = RNA_def_pointer(func, "event", "Event", "", "Event"); | parm = RNA_def_pointer(func, "event", "Event", "", "Event"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| } | } | ||||
| if (flag & WM_GEN_INVOKE_SIZE) { | if (flag & WM_GEN_INVOKE_SIZE) { | ||||
| RNA_def_int(func, "width", 300, 0, INT_MAX, "", "Width of the popup", 0, INT_MAX); | RNA_def_int(func, "width", 300, 0, INT_MAX, "", "Width of the popup", 0, INT_MAX); | ||||
| RNA_def_int(func, "height", 20, 0, INT_MAX, "", "Height of the popup", 0, INT_MAX); | |||||
| } | } | ||||
| if (flag & WM_GEN_INVOKE_RETURN) { | if (flag & WM_GEN_INVOKE_RETURN) { | ||||
| parm = RNA_def_enum_flag( | parm = RNA_def_enum_flag( | ||||
| func, "result", rna_enum_operator_return_items, OPERATOR_FINISHED, "result", ""); | func, "result", rna_enum_operator_return_items, OPERATOR_FINISHED, "result", ""); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 585 Lines • Show Last 20 Lines | |||||