216 #define WM_OP_CONTEXT_HAS_AREA(type) \
217 (CHECK_TYPE_INLINE(type, wmOperatorCallContext), \
218 !ELEM(type, WM_OP_INVOKE_SCREEN, WM_OP_EXEC_SCREEN))
219 #define WM_OP_CONTEXT_HAS_REGION(type) \
220 (WM_OP_CONTEXT_HAS_AREA(type) && !ELEM(type, WM_OP_INVOKE_AREA, WM_OP_EXEC_AREA))
226 #define OP_PROP_TAG_ADVANCED ((eOperatorPropTags)OP_PROP_TAG_ADVANCED)
253 #define KM_MOD_HELD 1
298 #define WM_UI_HANDLER_CONTINUE 0
299 #define WM_UI_HANDLER_BREAK 1
323 #define NOTE_CATEGORY 0xFF000000
324 #define NC_WM (1 << 24)
325 #define NC_WINDOW (2 << 24)
326 #define NC_WORKSPACE (3 << 24)
327 #define NC_SCREEN (4 << 24)
328 #define NC_SCENE (5 << 24)
329 #define NC_OBJECT (6 << 24)
330 #define NC_MATERIAL (7 << 24)
331 #define NC_TEXTURE (8 << 24)
332 #define NC_LAMP (9 << 24)
333 #define NC_GROUP (10 << 24)
334 #define NC_IMAGE (11 << 24)
335 #define NC_BRUSH (12 << 24)
336 #define NC_TEXT (13 << 24)
337 #define NC_WORLD (14 << 24)
338 #define NC_ANIMATION (15 << 24)
342 #define NC_SPACE (16 << 24)
343 #define NC_GEOM (17 << 24)
344 #define NC_NODE (18 << 24)
345 #define NC_ID (19 << 24)
346 #define NC_PAINTCURVE (20 << 24)
347 #define NC_MOVIECLIP (21 << 24)
348 #define NC_MASK (22 << 24)
349 #define NC_GPENCIL (23 << 24)
350 #define NC_LINESTYLE (24 << 24)
351 #define NC_CAMERA (25 << 24)
352 #define NC_LIGHTPROBE (26 << 24)
354 #define NC_ASSET (27 << 24)
357 #define NOTE_DATA 0x00FF0000
360 #define ND_FILEREAD (1 << 16)
361 #define ND_FILESAVE (2 << 16)
362 #define ND_DATACHANGED (3 << 16)
363 #define ND_HISTORY (4 << 16)
364 #define ND_JOB (5 << 16)
365 #define ND_UNDO (6 << 16)
366 #define ND_XR_DATA_CHANGED (7 << 16)
367 #define ND_LIB_OVERRIDE_CHANGED (8 << 16)
370 #define ND_LAYOUTBROWSE (1 << 16)
371 #define ND_LAYOUTDELETE (2 << 16)
372 #define ND_ANIMPLAY (4 << 16)
373 #define ND_GPENCIL (5 << 16)
374 #define ND_LAYOUTSET (6 << 16)
375 #define ND_SKETCH (7 << 16)
376 #define ND_WORKSPACE_SET (8 << 16)
377 #define ND_WORKSPACE_DELETE (9 << 16)
380 #define ND_SCENEBROWSE (1 << 16)
381 #define ND_MARKERS (2 << 16)
382 #define ND_FRAME (3 << 16)
383 #define ND_RENDER_OPTIONS (4 << 16)
384 #define ND_NODES (5 << 16)
385 #define ND_SEQUENCER (6 << 16)
388 #define ND_OB_ACTIVE (7 << 16)
390 #define ND_OB_SELECT (8 << 16)
391 #define ND_OB_VISIBLE (9 << 16)
392 #define ND_OB_RENDER (10 << 16)
393 #define ND_MODE (11 << 16)
394 #define ND_RENDER_RESULT (12 << 16)
395 #define ND_COMPO_RESULT (13 << 16)
396 #define ND_KEYINGSET (14 << 16)
397 #define ND_TOOLSETTINGS (15 << 16)
398 #define ND_LAYER (16 << 16)
399 #define ND_FRAME_RANGE (17 << 16)
400 #define ND_TRANSFORM_DONE (18 << 16)
401 #define ND_WORLD (92 << 16)
402 #define ND_LAYER_CONTENT (101 << 16)
405 #define ND_TRANSFORM (18 << 16)
406 #define ND_OB_SHADING (19 << 16)
407 #define ND_POSE (20 << 16)
408 #define ND_BONE_ACTIVE (21 << 16)
409 #define ND_BONE_SELECT (22 << 16)
410 #define ND_DRAW (23 << 16)
411 #define ND_MODIFIER (24 << 16)
412 #define ND_KEYS (25 << 16)
413 #define ND_CONSTRAINT (26 << 16)
414 #define ND_PARTICLE (27 << 16)
415 #define ND_POINTCACHE (28 << 16)
416 #define ND_PARENT (29 << 16)
417 #define ND_LOD (30 << 16)
418 #define ND_DRAW_RENDER_VIEWPORT \
420 #define ND_SHADERFX (32 << 16)
422 #define ND_DRAW_ANIMVIZ (33 << 16)
425 #define ND_SHADING (30 << 16)
426 #define ND_SHADING_DRAW (31 << 16)
427 #define ND_SHADING_LINKS (32 << 16)
428 #define ND_SHADING_PREVIEW (33 << 16)
431 #define ND_LIGHTING (40 << 16)
432 #define ND_LIGHTING_DRAW (41 << 16)
435 #define ND_WORLD_DRAW (45 << 16)
438 #define ND_CURSOR (50 << 16)
439 #define ND_DISPLAY (51 << 16)
442 #define ND_KEYFRAME (70 << 16)
443 #define ND_KEYFRAME_PROP (71 << 16)
444 #define ND_ANIMCHAN (72 << 16)
445 #define ND_NLA (73 << 16)
446 #define ND_NLA_ACTCHANGE (74 << 16)
447 #define ND_FCURVES_ORDER (75 << 16)
448 #define ND_NLA_ORDER (76 << 16)
451 #define ND_GPENCIL_EDITMODE (85 << 16)
455 #define ND_SELECT (90 << 16)
456 #define ND_DATA (91 << 16)
457 #define ND_VERTEX_GROUP (92 << 16)
462 #define ND_SPACE_CONSOLE (1 << 16)
463 #define ND_SPACE_INFO_REPORT (2 << 16)
464 #define ND_SPACE_INFO (3 << 16)
465 #define ND_SPACE_IMAGE (4 << 16)
466 #define ND_SPACE_FILE_PARAMS (5 << 16)
467 #define ND_SPACE_FILE_LIST (6 << 16)
468 #define ND_SPACE_ASSET_PARAMS (7 << 16)
469 #define ND_SPACE_NODE (8 << 16)
470 #define ND_SPACE_OUTLINER (9 << 16)
471 #define ND_SPACE_VIEW3D (10 << 16)
472 #define ND_SPACE_PROPERTIES (11 << 16)
473 #define ND_SPACE_TEXT (12 << 16)
474 #define ND_SPACE_TIME (13 << 16)
475 #define ND_SPACE_GRAPH (14 << 16)
476 #define ND_SPACE_DOPESHEET (15 << 16)
477 #define ND_SPACE_NLA (16 << 16)
478 #define ND_SPACE_SEQUENCER (17 << 16)
479 #define ND_SPACE_NODE_VIEW (18 << 16)
481 #define ND_SPACE_CHANGED (19 << 16)
482 #define ND_SPACE_CLIP (20 << 16)
483 #define ND_SPACE_FILE_PREVIEW (21 << 16)
484 #define ND_SPACE_SPREADSHEET (22 << 16)
489 #define ND_ASSET_LIST (1 << 16)
490 #define ND_ASSET_LIST_PREVIEW (2 << 16)
491 #define ND_ASSET_LIST_READING (3 << 16)
495 #define ND_ASSET_CATALOGS (4 << 16)
498 #define NOTE_SUBTYPE 0x0000FF00
501 #define NS_MODE_OBJECT (1 << 8)
503 #define NS_EDITMODE_MESH (2 << 8)
504 #define NS_EDITMODE_CURVE (3 << 8)
505 #define NS_EDITMODE_SURFACE (4 << 8)
506 #define NS_EDITMODE_TEXT (5 << 8)
507 #define NS_EDITMODE_MBALL (6 << 8)
508 #define NS_EDITMODE_LATTICE (7 << 8)
509 #define NS_EDITMODE_ARMATURE (8 << 8)
510 #define NS_MODE_POSE (9 << 8)
511 #define NS_MODE_PARTICLE (10 << 8)
512 #define NS_EDITMODE_CURVES (11 << 8)
515 #define NS_VIEW3D_GPU (16 << 8)
516 #define NS_VIEW3D_SHADING (17 << 8)
519 #define NS_LAYER_COLLECTION (24 << 8)
522 #define NOTE_ACTION (0x000000FF)
524 #define NA_EVALUATED 2
528 #define NA_SELECTED 6
529 #define NA_ACTIVATED 7
530 #define NA_PAINTING 8
531 #define NA_JOB_FINISHED 9
536 #define WM_GESTURE_LINES 1
537 #define WM_GESTURE_RECT 2
538 #define WM_GESTURE_CROSS_RECT 3
539 #define WM_GESTURE_LASSO 4
540 #define WM_GESTURE_CIRCLE 5
541 #define WM_GESTURE_STRAIGHTLINE 6
757 #define WM_EVENT_CURSOR_MOTION_THRESHOLD ((float)U.move_threshold * U.dpi_fac)
768 #ifdef WITH_INPUT_NDOF
769 typedef struct wmNDOFMotionData {
792 #ifdef WITH_XR_OPENXR
794 typedef struct wmXrPose {
797 float orientation_quat[4];
800 typedef struct wmXrActionState {
804 float state_vector2f[2];
810 typedef struct wmXrActionData {
818 char user_path_other[64];
824 float state_other[2];
827 float float_threshold;
830 float controller_loc[3];
831 float controller_rot[4];
833 float controller_loc_other[3];
834 float controller_rot_other[4];
1013 #ifdef WITH_INPUT_IME
1018 typedef struct wmIMEData {
1019 size_t result_len, composite_len;
1024 char *str_composite;
1033 bool is_ime_composing;
1043 #define WM_DRAG_ID 0
1044 #define WM_DRAG_ASSET 1
1048 #define WM_DRAG_ASSET_LIST 2
1049 #define WM_DRAG_RNA 3
1050 #define WM_DRAG_PATH 4
1051 #define WM_DRAG_NAME 5
1052 #define WM_DRAG_VALUE 6
1053 #define WM_DRAG_COLOR 7
1054 #define WM_DRAG_DATASTACK 8
1055 #define WM_DRAG_ASSET_CATALOG 9
1113 typedef char *(*WMDropboxTooltipFunc)(
struct bContext *,
1258 bool *r_exit_on_event);
#define ATTR_WARN_UNUSED_RESULT
These structs are the foundation for all linked lists in the library system.
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
struct CLG_LogRef * WM_LOG_TOOLS
@ OPTYPE_DEPENDS_ON_CURSOR
struct CLG_LogRef * WM_LOG_MSGBUS_SUB
ENUM_OPERATORS(eWM_EventFlag, WM_EVENT_FORCE_DRAG_THRESHOLD)
struct wmTabletData wmTabletData
struct CLG_LogRef * WM_LOG_EVENTS
@ WM_EVENT_FORCE_DRAG_THRESHOLD
struct wmDragActiveDropState wmDragActiveDropState
struct CLG_LogRef * WM_LOG_HANDLERS
struct wmOperatorType wmOperatorType
void(* wmPaintCursorDraw)(struct bContext *C, int, int, void *customdata)
struct wmOperatorCallParams wmOperatorCallParams
struct RecentFile RecentFile
struct wmGesture wmGesture
char *(* WMDropboxTooltipFunc)(struct bContext *, struct wmDrag *, const int xy[2], struct wmDropBox *drop)
struct wmNotifier wmNotifier
struct CLG_LogRef * WM_LOG_KEYMAPS
void(* wmGenericCallbackFn)(struct bContext *C, void *user_data)
struct wmGenericCallback wmGenericCallback
struct wmTooltipState wmTooltipState
#define OP_PROP_TAG_ADVANCED
void(* wmGenericUserDataFreeFn)(void *data)
struct wmGenericUserData wmGenericUserData
struct CLG_LogRef * WM_LOG_MSGBUS_PUB
@ WM_OP_INVOKE_REGION_WIN
@ WM_OP_EXEC_REGION_PREVIEW
@ WM_OP_INVOKE_REGION_PREVIEW
@ WM_OP_EXEC_REGION_CHANNELS
@ WM_OP_INVOKE_REGION_CHANNELS
struct wmDragAsset wmDragAsset
@ WM_TIMER_TAGGED_FOR_REMOVAL
@ WM_TIMER_NO_FREE_CUSTOM_DATA
struct wmDragAssetListItem wmDragAssetListItem
struct CLG_LogRef * WM_LOG_OPERATORS
struct wmDropBox wmDropBox
struct wmDragAssetCatalog wmDragAssetCatalog
SyclQueue void void size_t num_bytes void
SymEdge< T > * prev(const SymEdge< T > *se)
Universally Unique Identifier according to RFC4122.
struct bContextStore * ui_context
const char * disabled_info
struct ScrArea * area_from
struct wmDropBox * active_dropbox
struct ARegion * region_from
wmDragAsset * external_info
union wmDragAssetListItem::@1219 asset_data
struct wmDragAssetListItem * prev
struct wmDragAssetListItem * next
struct AssetMetaData * metadata
wmDragActiveDropState drop_state
WMDropboxTooltipFunc tooltip
void(* draw_deactivate)(struct wmDropBox *drop, struct wmDrag *drag)
void(* on_drag_start)(struct bContext *C, struct wmDrag *drag)
void(* copy)(struct bContext *C, struct wmDrag *drag, struct wmDropBox *drop)
void(* draw_droptip)(struct bContext *C, struct wmWindow *win, struct wmDrag *drag, const int xy[2])
bool(* poll)(struct bContext *C, struct wmDrag *drag, const wmEvent *event)
void(* draw_activate)(struct wmDropBox *drop, struct wmDrag *drag)
struct IDProperty * properties
void(* draw_in_view)(struct bContext *C, struct wmWindow *win, struct wmDrag *drag, const int xy[2])
void(* cancel)(struct Main *bmain, struct wmDrag *drag, struct wmDropBox *drop)
short prev_press_keymodifier
uint8_t prev_press_modifier
wmGenericUserDataFreeFn free_user_data
wmGenericUserDataFreeFn free_fn
wmGenericUserData user_data
const struct wmWindow * window
struct wmOperatorType * optype
struct PointerRNA * opptr
wmOperatorCallContext opcontext
int(* invoke)(struct bContext *, struct wmOperator *, const struct wmEvent *) ATTR_WARN_UNUSED_RESULT
struct wmKeyMap * modalkeymap
int(* modal)(struct bContext *, struct wmOperator *, const struct wmEvent *) ATTR_WARN_UNUSED_RESULT
struct IDProperty * last_properties
bool(* poll)(struct bContext *) ATTR_WARN_UNUSED_RESULT
bool(* poll_property)(const struct bContext *C, struct wmOperator *op, const PropertyRNA *prop) ATTR_WARN_UNUSED_RESULT
void(* cancel)(struct bContext *, struct wmOperator *)
const char * translation_context
void(* ui)(struct bContext *, struct wmOperator *)
bool(* check)(struct bContext *, struct wmOperator *)
bool(* pyop_poll)(struct bContext *, struct wmOperatorType *ot) ATTR_WARN_UNUSED_RESULT
int(* exec)(struct bContext *, struct wmOperator *) ATTR_WARN_UNUSED_RESULT