Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_windowmanager_types.h
| Show First 20 Lines • Show All 524 Lines • ▼ Show 20 Lines | enum { | ||||
| OP_IS_INVOKE = (1 << 0), | OP_IS_INVOKE = (1 << 0), | ||||
| /** So we can detect if an operators exec() call is activated by adjusting the last action. */ | /** So we can detect if an operators exec() call is activated by adjusting the last action. */ | ||||
| OP_IS_REPEAT = (1 << 1), | OP_IS_REPEAT = (1 << 1), | ||||
| /** | /** | ||||
| * So we can detect if an operators exec() call is activated from #SCREEN_OT_repeat_last. | * So we can detect if an operators exec() call is activated from #SCREEN_OT_repeat_last. | ||||
| * | * | ||||
| * This difference can be important because previous settings may be used, | * This difference can be important because previous settings may be used, | ||||
| * even with #PROP_SKIP_SAVE the repeat last operator will use the previous settings. | * even with #PROP_SKIP_SAVE the repeat last operator will use the previous settings. | ||||
| * Unlike #OP_IS_REPEAT the selection (and context generally) may be be different each time. | * Unlike #OP_IS_REPEAT the selection (and context generally) may be different each time. | ||||
| * See T60777 for an example of when this is needed. | * See T60777 for an example of when this is needed. | ||||
| */ | */ | ||||
| OP_IS_REPEAT_LAST = (1 << 1), | OP_IS_REPEAT_LAST = (1 << 1), | ||||
| /** When the cursor is grabbed */ | /** When the cursor is grabbed */ | ||||
| OP_IS_MODAL_GRAB_CURSOR = (1 << 2), | OP_IS_MODAL_GRAB_CURSOR = (1 << 2), | ||||
| /** Allow modal operators to have the region under the cursor for their context | /** Allow modal operators to have the region under the cursor for their context | ||||
| * (the regiontype is maintained to prevent errors) */ | * (the regiontype is maintained to prevent errors) */ | ||||
| OP_IS_MODAL_CURSOR_REGION = (1 << 3), | OP_IS_MODAL_CURSOR_REGION = (1 << 3), | ||||
| }; | }; | ||||
| #endif /* __DNA_WINDOWMANAGER_TYPES_H__ */ | #endif /* __DNA_WINDOWMANAGER_TYPES_H__ */ | ||||