|
Blender V5.0
|
#include <cstdint>Go to the source code of this file.
Macros | |
| #define | _EVT_MOUSE_MIN 0x0001 |
| #define | _EVT_MOUSE_MAX 0x0015 /* 21 */ |
| #define | _EVT_KEYBOARD_MIN 0x0020 |
| #define | _EVT_KEYBOARD_MAX 0x00ff /* 255 */ |
| #define | _NDOF_MIN NDOF_MOTION |
| #define | _NDOF_BUTTON_MIN NDOF_BUTTON_MENU |
| #define | _NDOF_MAX NDOF_BUTTON_SAVE_V3 |
| #define | _NDOF_BUTTON_MAX NDOF_BUTTON_SAVE_V3 |
| #define | _TIMER_MAX 0x011F |
| #define _EVT_KEYBOARD_MAX 0x00ff /* 255 */ |
Definition at line 222 of file wm_event_types.hh.
| #define _EVT_KEYBOARD_MIN 0x0020 |
Definition at line 101 of file wm_event_types.hh.
| #define _EVT_MOUSE_MAX 0x0015 /* 21 */ |
Definition at line 84 of file wm_event_types.hh.
| #define _EVT_MOUSE_MIN 0x0001 |
Definition at line 50 of file wm_event_types.hh.
| #define _NDOF_BUTTON_MAX NDOF_BUTTON_SAVE_V3 |
Definition at line 333 of file wm_event_types.hh.
| #define _NDOF_BUTTON_MIN NDOF_BUTTON_MENU |
Definition at line 265 of file wm_event_types.hh.
| #define _NDOF_MAX NDOF_BUTTON_SAVE_V3 |
Definition at line 332 of file wm_event_types.hh.
| #define _NDOF_MIN NDOF_MOTION |
Definition at line 264 of file wm_event_types.hh.
| #define _TIMER_MAX 0x011F |
Definition at line 354 of file wm_event_types.hh.
| #define EVT_TYPE_MASK_ALL (EVT_TYPE_MASK_KEYBOARD | EVT_TYPE_MASK_MOUSE | EVT_TYPE_MASK_NDOF | EVT_TYPE_MASK_ACTIONZONE) |
Definition at line 469 of file wm_event_types.hh.
Referenced by RNA_api_keyconfigs(), RNA_api_keymapitems(), ui_popup_context_menu_for_button(), WM_key_event_operator(), and WM_key_event_operator_from_keymap().
| #define EVT_TYPE_MASK_HOTKEY_EXCLUDE EVT_TYPE_MASK_KEYBOARD_MODIFIER |
Definition at line 474 of file wm_event_types.hh.
Referenced by menu_change_shortcut(), and remove_shortcut_func().
| #define EVT_TYPE_MASK_HOTKEY_INCLUDE (EVT_TYPE_MASK_KEYBOARD | EVT_TYPE_MASK_MOUSE | EVT_TYPE_MASK_NDOF) |
Definition at line 472 of file wm_event_types.hh.
Referenced by menu_change_shortcut(), and remove_shortcut_func().
| #define IS_EVENT_ACTIONZONE | ( | event_type | ) |
Definition at line 442 of file wm_event_types.hh.
Referenced by kmi_filter_is_visible(), and WM_event_type_mask_test().
| #define ISHOTKEY | ( | event_type | ) |
Test whether event type is acceptable as hotkey (excluding modifiers).
Definition at line 446 of file wm_event_types.hh.
Referenced by ui_do_but_HOTKEYEVT().
| #define ISKEYBOARD | ( | event_type | ) |
Test whether the event is a key on the keyboard (including modifier keys).
Definition at line 390 of file wm_event_types.hh.
Referenced by annotation_draw_modal(), ui_handle_button_return_submenu(), ui_popup_context_menu_for_button(), uiTemplateStatusBarModalItem(), WM_event_add_simulate(), wm_event_free(), WM_event_type_mask_test(), wm_eventmatch(), wm_keymap_item_equals(), and WM_keymap_item_map_type_get().
| #define ISKEYBOARD_OR_BUTTON | ( | event_type | ) |
Test whether the event is a key on the keyboard or any other kind of button that supports press & release (use for click & click-drag detection).
Definition at line 402 of file wm_event_types.hh.
Referenced by wm_event_add_ghostevent(), WM_event_add_simulate(), WM_event_consecutive_gesture_test_break(), wm_event_do_handlers(), wm_event_state_update_and_click_set_ex(), and wm_handlers_do().
| #define ISKEYMODIFIER | ( | event_type | ) |
Test whether the event is a modifier key.
Definition at line 406 of file wm_event_types.hh.
Referenced by graph_slider_modal(), ViewOpsData_Utility::ViewOpsData_Utility(), WM_event_consecutive_gesture_test_break(), wm_event_do_region_handlers(), wm_event_drag_and_drop_test(), WM_event_type_mask_test(), wm_handlers_do(), and wm_handlers_do_gizmo_handler().
| #define ISMOUSE | ( | event_type | ) |
Test whether the event is any kind: ISMOUSE_MOTION, ISMOUSE_BUTTON, ISMOUSE_WHEEL & ISMOUSE_GESTURE.
Definition at line 417 of file wm_event_types.hh.
Referenced by WM_event_type_mask_test(), wm_handlers_do_gizmo_handler(), and WM_keymap_item_map_type_get().
| #define ISMOUSE_BUTTON | ( | event_type | ) |
Test whether the event is a mouse button (excluding mouse-wheel).
Definition at line 421 of file wm_event_types.hh.
Referenced by annotation_draw_modal(), blender::ed::transform::initTransInfo(), blender::ed::space_node::node_group_enter_exit_invoke(), blender::ed::object::object_transform_axis_target_modal(), ui_handle_menu_button(), wm_event_do_handlers(), WM_event_drag_threshold(), wm_event_is_double_click(), WM_event_is_mouse_drag(), WM_event_is_mouse_drag_or_press(), and wm_handler_ui_call().
| #define ISMOUSE_GESTURE | ( | event_type | ) |
Test whether the event is a mouse (trackpad) gesture.
Definition at line 435 of file wm_event_types.hh.
Referenced by WM_event_consecutive_gesture_test(), WM_event_type_mask_test(), and wm_handlers_do().
| #define ISMOUSE_MOTION | ( | event_type | ) |
Test whether the event is a mouse button (excluding mouse-wheel).
Definition at line 419 of file wm_event_types.hh.
Referenced by annotation_draw_modal(), curve_draw_modal(), curve_pen_modal(), blender::ed::curves::curves_draw_modal(), edbm_point_normals_modal(), eyedropper_modal(), blender::ed::sculpt_paint::paint_stroke_modal(), blender::ed::transform::transformEvent(), ui_do_but_HOTKEYEVT(), ui_do_but_KEYEVT(), ui_do_button(), ui_handler_panel_region(), walkEvent(), WM_event_consecutive_gesture_test_break(), wm_event_do_handlers(), wm_event_free(), WM_generic_select_modal(), wm_handlers_do(), and wm_handlers_do_intern().
| #define ISMOUSE_WHEEL | ( | event_type | ) |
Test whether the event is a mouse wheel.
Definition at line 431 of file wm_event_types.hh.
Referenced by ui_colorpicker_wheel_cb(), WM_event_type_mask_test(), and wm_handlers_do().
| #define ISNDOF | ( | event_type | ) |
Test whether the event is a NDOF event.
Definition at line 438 of file wm_event_types.hh.
Referenced by WM_event_print(), WM_event_type_mask_test(), and WM_keymap_item_map_type_get().
| #define ISNDOF_BUTTON | ( | event_type | ) |
Definition at line 439 of file wm_event_types.hh.
Referenced by ui_popup_context_menu_for_button().
| #define ISTIMER | ( | event_type | ) |
Test whether the event is timer event.
Definition at line 387 of file wm_event_types.hh.
Referenced by wm_event_always_pass(), WM_event_timer_add(), wm_handlers_do_intern(), and WM_keymap_item_map_type_get().
| anonymous enum |
wmEvent.customdata type.
| Enumerator | |
|---|---|
| EVT_DATA_TIMER | |
| EVT_DATA_DRAGDROP | |
| EVT_DATA_NDOF_MOTION | |
| EVT_DATA_XR | |
Definition at line 19 of file wm_event_types.hh.
| anonymous enum |
Gesture Used in wmEvent.val
| Enumerator | |
|---|---|
| GESTURE_MODAL_CANCEL | |
| GESTURE_MODAL_CONFIRM | |
| GESTURE_MODAL_SELECT | Uses 'deselect' operator property. |
| GESTURE_MODAL_DESELECT | |
| GESTURE_MODAL_NOP | Circle select: when no mouse button is pressed. |
| GESTURE_MODAL_CIRCLE_ADD | Circle select: larger brush. |
| GESTURE_MODAL_CIRCLE_SUB | Circle select: smaller brush. |
| GESTURE_MODAL_BEGIN | Box select/straight line, activate, use release to detect which button. |
| GESTURE_MODAL_IN | Uses 'zoom_out' operator property. |
| GESTURE_MODAL_OUT | |
| GESTURE_MODAL_CIRCLE_SIZE | Circle select: size brush (for trackpad event). |
| GESTURE_MODAL_MOVE | Move selection area. |
| GESTURE_MODAL_SNAP | Toggle to activate snapping (angle snapping for straight line). |
| GESTURE_MODAL_FLIP | Toggle to activate flip (flip the active side of a straight line). |
Definition at line 501 of file wm_event_types.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| EVT_FILESELECT_FULL_OPEN | |
| EVT_FILESELECT_EXEC | |
| EVT_FILESELECT_CANCEL | |
| EVT_FILESELECT_EXTERNAL_CANCEL | |
Definition at line 487 of file wm_event_types.hh.
| anonymous enum |
wmTabletData.active tablet active, matches GHOST_TTabletMode.
Typically access via event->tablet.active.
| Enumerator | |
|---|---|
| EVT_TABLET_NONE | |
| EVT_TABLET_STYLUS | |
| EVT_TABLET_ERASER | |
Definition at line 31 of file wm_event_types.hh.
| enum eEventType_Mask |
Definition at line 451 of file wm_event_types.hh.
| enum wmEventType : int16_t |
| Enumerator | |
|---|---|
| EVENT_NONE | |
| LEFTMOUSE | |
| MIDDLEMOUSE | |
| RIGHTMOUSE | |
| MOUSEMOVE | |
| BUTTON4MOUSE | |
| BUTTON5MOUSE | |
| BUTTON6MOUSE | |
| BUTTON7MOUSE | |
| MOUSEPAN | |
| MOUSEZOOM | |
| MOUSEROTATE | |
| MOUSESMARTZOOM | |
| WHEELUPMOUSE | |
| WHEELDOWNMOUSE | |
| WHEELINMOUSE | |
| WHEELOUTMOUSE | |
| INBETWEEN_MOUSEMOVE | |
| WHEELLEFTMOUSE | |
| WHEELRIGHTMOUSE | |
| WM_IME_COMPOSITE_START | |
| WM_IME_COMPOSITE_EVENT | |
| WM_IME_COMPOSITE_END | |
| TABLET_STYLUS | |
| TABLET_ERASER | |
| EVT_ZEROKEY | |
| EVT_ONEKEY | |
| EVT_TWOKEY | |
| EVT_THREEKEY | |
| EVT_FOURKEY | |
| EVT_FIVEKEY | |
| EVT_SIXKEY | |
| EVT_SEVENKEY | |
| EVT_EIGHTKEY | |
| EVT_NINEKEY | |
| EVT_AKEY | |
| EVT_BKEY | |
| EVT_CKEY | |
| EVT_DKEY | |
| EVT_EKEY | |
| EVT_FKEY | |
| EVT_GKEY | |
| EVT_HKEY | |
| EVT_IKEY | |
| EVT_JKEY | |
| EVT_KKEY | |
| EVT_LKEY | |
| EVT_MKEY | |
| EVT_NKEY | |
| EVT_OKEY | |
| EVT_PKEY | |
| EVT_QKEY | |
| EVT_RKEY | |
| EVT_SKEY | |
| EVT_TKEY | |
| EVT_UKEY | |
| EVT_VKEY | |
| EVT_WKEY | |
| EVT_XKEY | |
| EVT_YKEY | |
| EVT_ZKEY | |
| EVT_LEFTARROWKEY | |
| EVT_DOWNARROWKEY | |
| EVT_RIGHTARROWKEY | |
| EVT_UPARROWKEY | |
| EVT_PAD0 | |
| EVT_PAD1 | |
| EVT_PAD2 | |
| EVT_PAD3 | |
| EVT_PAD4 | |
| EVT_PAD5 | |
| EVT_PAD6 | |
| EVT_PAD7 | |
| EVT_PAD8 | |
| EVT_PAD9 | |
| EVT_PADASTERKEY | |
| EVT_PADSLASHKEY | |
| EVT_PADMINUS | |
| EVT_PADENTER | |
| EVT_PADPLUSKEY | |
| EVT_PAUSEKEY | |
| EVT_INSERTKEY | |
| EVT_HOMEKEY | |
| EVT_PAGEUPKEY | |
| EVT_PAGEDOWNKEY | |
| EVT_ENDKEY | |
| EVT_UNKNOWNKEY | |
| EVT_OSKEY | OS modifier, see: KM_OSKEY for details. |
| EVT_GRLESSKEY | |
| EVT_MEDIAPLAY | |
| EVT_MEDIASTOP | |
| EVT_MEDIAFIRST | |
| EVT_MEDIALAST | |
| EVT_APPKEY | |
| EVT_HYPER | Additional modifier, see: KM_HYPER for details. |
| EVT_PADPERIOD | |
| EVT_CAPSLOCKKEY | |
| EVT_LEFTCTRLKEY | |
| EVT_LEFTALTKEY | |
| EVT_RIGHTALTKEY | |
| EVT_RIGHTCTRLKEY | |
| EVT_RIGHTSHIFTKEY | |
| EVT_LEFTSHIFTKEY | |
| EVT_ESCKEY | |
| EVT_TABKEY | |
| EVT_RETKEY | |
| EVT_SPACEKEY | |
| EVT_LINEFEEDKEY | |
| EVT_BACKSPACEKEY | |
| EVT_DELKEY | |
| EVT_SEMICOLONKEY | |
| EVT_PERIODKEY | |
| EVT_COMMAKEY | |
| EVT_QUOTEKEY | |
| EVT_ACCENTGRAVEKEY | |
| EVT_MINUSKEY | |
| EVT_PLUSKEY | |
| EVT_SLASHKEY | |
| EVT_BACKSLASHKEY | |
| EVT_EQUALKEY | |
| EVT_LEFTBRACKETKEY | |
| EVT_RIGHTBRACKETKEY | |
| EVT_F1KEY | |
| EVT_F2KEY | |
| EVT_F3KEY | |
| EVT_F4KEY | |
| EVT_F5KEY | |
| EVT_F6KEY | |
| EVT_F7KEY | |
| EVT_F8KEY | |
| EVT_F9KEY | |
| EVT_F10KEY | |
| EVT_F11KEY | |
| EVT_F12KEY | |
| EVT_F13KEY | |
| EVT_F14KEY | |
| EVT_F15KEY | |
| EVT_F16KEY | |
| EVT_F17KEY | |
| EVT_F18KEY | |
| EVT_F19KEY | |
| EVT_F20KEY | |
| EVT_F21KEY | |
| EVT_F22KEY | |
| EVT_F23KEY | |
| EVT_F24KEY | |
| NDOF_MOTION | Motion from 3D input (translation & rotation). Check WM_EVENT_IS_CONSECUTIVE to detect motion events. |
| NDOF_BUTTON_MENU | |
| NDOF_BUTTON_FIT | |
| NDOF_BUTTON_TOP | |
| NDOF_BUTTON_BOTTOM | |
| NDOF_BUTTON_LEFT | |
| NDOF_BUTTON_RIGHT | |
| NDOF_BUTTON_FRONT | |
| NDOF_BUTTON_BACK | |
| NDOF_BUTTON_ISO1 | |
| NDOF_BUTTON_ISO2 | |
| NDOF_BUTTON_ROLL_CW | |
| NDOF_BUTTON_ROLL_CCW | |
| NDOF_BUTTON_SPIN_CW | |
| NDOF_BUTTON_SPIN_CCW | |
| NDOF_BUTTON_TILT_CW | |
| NDOF_BUTTON_TILT_CCW | |
| NDOF_BUTTON_ROTATE | |
| NDOF_BUTTON_PANZOOM | |
| NDOF_BUTTON_DOMINANT | |
| NDOF_BUTTON_PLUS | |
| NDOF_BUTTON_MINUS | |
| NDOF_BUTTON_V1 | |
| NDOF_BUTTON_V2 | |
| NDOF_BUTTON_V3 | |
| NDOF_BUTTON_1 | |
| NDOF_BUTTON_2 | |
| NDOF_BUTTON_3 | |
| NDOF_BUTTON_4 | |
| NDOF_BUTTON_5 | |
| NDOF_BUTTON_6 | |
| NDOF_BUTTON_7 | |
| NDOF_BUTTON_8 | |
| NDOF_BUTTON_9 | |
| NDOF_BUTTON_10 | |
| NDOF_BUTTON_11 | |
| NDOF_BUTTON_12 | |
| NDOF_BUTTON_SAVE_V1 | |
| NDOF_BUTTON_SAVE_V2 | |
| NDOF_BUTTON_SAVE_V3 | |
| WINDEACTIVATE | |
| TIMER | |
| TIMER0 | |
| TIMER1 | |
| TIMER2 | |
| TIMERJOBS | |
| TIMERAUTOSAVE | |
| TIMERREPORT | |
| TIMERREGION | |
| TIMERNOTIFIER | |
| EVT_ACTIONZONE_AREA | |
| EVT_ACTIONZONE_REGION | |
| EVT_ACTIONZONE_FULLSCREEN | |
| EVT_FILESELECT | |
| EVT_BUT_OPEN | |
| EVT_MODAL_MAP | |
| EVT_DROP | |
| EVT_BUT_CANCEL | |
| EVT_GIZMO_UPDATE | |
| EVT_XR_ACTION | |
Definition at line 43 of file wm_event_types.hh.
| bool WM_event_type_mask_test | ( | int | event_type, |
| enum eEventType_Mask | mask ) |
Definition at line 192 of file wm_event_query.cc.
References EVT_TYPE_MASK_ACTIONZONE, EVT_TYPE_MASK_KEYBOARD, EVT_TYPE_MASK_KEYBOARD_MODIFIER, EVT_TYPE_MASK_MOUSE, EVT_TYPE_MASK_MOUSE_GESTURE, EVT_TYPE_MASK_MOUSE_WHEEL, EVT_TYPE_MASK_NDOF, IS_EVENT_ACTIONZONE, ISKEYBOARD, ISKEYMODIFIER, ISMOUSE, ISMOUSE_GESTURE, ISMOUSE_WHEEL, ISNDOF, and mask().
Referenced by kmi_filter_is_visible_type_mask().