Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_wm_api.c
| Show First 20 Lines • Show All 706 Lines • ▼ Show 20 Lines | void RNA_api_window(StructRNA *srna) | ||||
| RNA_def_function_ui_description(func, "Set the cursor"); | RNA_def_function_ui_description(func, "Set the cursor"); | ||||
| func = RNA_def_function(srna, "cursor_modal_set", "WM_cursor_modal_set"); | func = RNA_def_function(srna, "cursor_modal_set", "WM_cursor_modal_set"); | ||||
| parm = RNA_def_property(func, "cursor", PROP_ENUM, PROP_NONE); | parm = RNA_def_property(func, "cursor", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(parm, rna_enum_window_cursor_items); | RNA_def_property_enum_items(parm, rna_enum_window_cursor_items); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| RNA_def_function_ui_description(func, "Set the cursor, so the previous cursor can be restored"); | RNA_def_function_ui_description(func, "Set the cursor, so the previous cursor can be restored"); | ||||
| RNA_def_function(srna, "cursor_modal_restore", "WM_cursor_modal_restore"); | func = RNA_def_function(srna, "cursor_modal_restore", "WM_cursor_modal_restore"); | ||||
| RNA_def_function_ui_description( | RNA_def_function_ui_description( | ||||
| func, "Restore the previous cursor after calling ``cursor_modal_set``"); | func, "Restore the previous cursor after calling ``cursor_modal_set``"); | ||||
| /* Arguments match 'rna_KeyMap_item_new'. */ | /* Arguments match 'rna_KeyMap_item_new'. */ | ||||
| func = RNA_def_function(srna, "event_simulate", "rna_Window_event_add_simulate"); | func = RNA_def_function(srna, "event_simulate", "rna_Window_event_add_simulate"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| parm = RNA_def_enum(func, "type", rna_enum_event_type_items, 0, "Type", ""); | parm = RNA_def_enum(func, "type", rna_enum_event_type_items, 0, "Type", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| ▲ Show 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | void RNA_api_wm(StructRNA *srna) | ||||
| RNA_def_function_flag(func, FUNC_NO_SELF); | RNA_def_function_flag(func, FUNC_NO_SELF); | ||||
| parm = RNA_def_string(func, "operator", NULL, 0, "", ""); | parm = RNA_def_string(func, "operator", NULL, 0, "", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| /* return */ | /* return */ | ||||
| parm = RNA_def_pointer(func, "result", "OperatorProperties", "", ""); | parm = RNA_def_pointer(func, "result", "OperatorProperties", "", ""); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_RNAPTR); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| RNA_def_function(srna, "print_undo_steps", "rna_WindowManager_print_undo_steps"); | func = RNA_def_function(srna, "print_undo_steps", "rna_WindowManager_print_undo_steps"); | ||||
| /* Used by (#SCRIPT_OT_reload). */ | /* Used by (#SCRIPT_OT_reload). */ | ||||
| func = RNA_def_function(srna, "tag_script_reload", "rna_WindowManager_tag_script_reload"); | func = RNA_def_function(srna, "tag_script_reload", "rna_WindowManager_tag_script_reload"); | ||||
| RNA_def_function_ui_description( | RNA_def_function_ui_description( | ||||
| func, "Tag for refreshing the interface after scripts have been reloaded"); | func, "Tag for refreshing the interface after scripts have been reloaded"); | ||||
| RNA_def_function_flag(func, FUNC_NO_SELF); | RNA_def_function_flag(func, FUNC_NO_SELF); | ||||
| parm = RNA_def_property(srna, "is_interface_locked", PROP_BOOLEAN, PROP_NONE); | parm = RNA_def_property(srna, "is_interface_locked", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 352 Lines • ▼ Show 20 Lines | RNA_def_enum_flag( | ||||
| func, "include", rna_enum_event_type_mask_items, EVT_TYPE_MASK_ALL, "Include", ""); | func, "include", rna_enum_event_type_mask_items, EVT_TYPE_MASK_ALL, "Include", ""); | ||||
| RNA_def_enum_flag(func, "exclude", rna_enum_event_type_mask_items, 0, "Exclude", ""); | RNA_def_enum_flag(func, "exclude", rna_enum_event_type_mask_items, 0, "Exclude", ""); | ||||
| parm = RNA_def_pointer(func, "keymap", "KeyMap", "", ""); | parm = RNA_def_pointer(func, "keymap", "KeyMap", "", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_RNAPTR | PARM_OUTPUT); | RNA_def_parameter_flags(parm, 0, PARM_RNAPTR | PARM_OUTPUT); | ||||
| parm = RNA_def_pointer(func, "item", "KeyMapItem", "", ""); | parm = RNA_def_pointer(func, "item", "KeyMapItem", "", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_RNAPTR); | RNA_def_parameter_flags(parm, 0, PARM_RNAPTR); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| RNA_def_function(srna, "update", "rna_KeyConfig_update"); /* WM_keyconfig_update */ | func = RNA_def_function(srna, "update", "rna_KeyConfig_update"); /* WM_keyconfig_update */ | ||||
| } | } | ||||
| #endif | #endif | ||||