Blender V5.3
WM_types.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2007 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
93
94#pragma once
95
96#include <memory>
97#include <string>
98
99#include "BLI_compiler_attrs.hh"
100#include "BLI_enum_flags.hh"
101#include "BLI_vector.hh"
102
103#include "DNA_listBase.h"
104#include "DNA_uuid_types.h"
105#include "DNA_vec_types.h"
106#include "DNA_xr_types.h"
107
108#include "BKE_wm_runtime.hh" // IWYU pragma: export
109
110#include "RNA_types.hh"
111
112/* Exported types for WM. */
113#include "gizmo/WM_gizmo_types.hh" // IWYU pragma: export
114#include "wm_cursors.hh" // IWYU pragma: export
115#include "wm_event_types.hh" // IWYU pragma: export
116
117/* Include external gizmo API's. */
118#include "gizmo/WM_gizmo_api.hh" // IWYU pragma: export
119
120struct CLG_LogRef;
121
122namespace blender {
123
124struct ID;
125struct ImBuf;
126struct bContext;
127struct bContextStore;
128struct GreasePencil;
130struct ReportList;
131struct wmDrag;
132struct wmDropBox;
133struct wmEvent;
134struct wmOperator;
136struct wmWindowManager;
137
138namespace asset_system {
140}
141
142namespace ui {
143struct View2DEdgePanData;
144}
145
146using wmGenericUserDataFreeFn = void (*)(void *data);
147
154
155using wmGenericCallbackFn = void (*)(bContext *C, void *user_data);
156
162
163/* ************** wmOperatorType ************************ */
164
166enum {
188 OPTYPE_REGISTER = (1 << 0),
190 OPTYPE_UNDO = (1 << 1),
192 OPTYPE_BLOCKING = (1 << 2),
193 OPTYPE_MACRO = (1 << 3),
194
201
203 OPTYPE_PRESET = (1 << 7),
204
210 OPTYPE_INTERNAL = (1 << 8),
211
216
229
232
234 OPTYPE_NODE_TOOL = (1 << 13),
235};
236
244
249namespace wm {
266}
267
268#define WM_OP_CONTEXT_HAS_AREA(type) \
269 (CHECK_TYPE_INLINE(type, wm::OpCallContext), \
270 !ELEM(type, wm::OpCallContext::InvokeScreen, wm::OpCallContext::ExecScreen))
271#define WM_OP_CONTEXT_HAS_REGION(type) \
272 (WM_OP_CONTEXT_HAS_AREA(type) && \
273 !ELEM(type, wm::OpCallContext::InvokeArea, wm::OpCallContext::ExecArea))
274
279#define OP_PROP_TAG_ADVANCED ((eOperatorPropTags)OP_PROP_TAG_ADVANCED)
280
281/* -------------------------------------------------------------------- */
284
291 KM_SHIFT = (1 << 0),
292 KM_CTRL = (1 << 1),
293 KM_ALT = (1 << 2),
295 KM_OSKEY = (1 << 3),
305 KM_HYPER = (1 << 4),
306};
308
310#define KM_MOD_NUM 5
311
316enum {
318};
319
321enum {
322 KM_ANY = -1,
333};
339#define KM_MOD_HELD 1
340
346enum {
355};
356
358
359/* ************** UI Handler ***************** */
360
361#define WM_UI_HANDLER_CONTINUE 0
362#define WM_UI_HANDLER_BREAK 1
363
364/* ************** Notifiers ****************** */
365
368
370
371 unsigned int category, data, subtype, action;
372
374};
375
376/* 4 levels
377 *
378 * 0xFF000000; category
379 * 0x00FF0000; data
380 * 0x0000FF00; data subtype (unused?)
381 * 0x000000FF; action
382 */
383
384/* Category. */
385#define NOTE_CATEGORY 0xFF000000
386#define NOTE_CATEGORY_TAG_CLEARED NOTE_CATEGORY
387#define NC_WM (1 << 24)
388#define NC_WINDOW (2 << 24)
389#define NC_WORKSPACE (3 << 24)
390#define NC_SCREEN (4 << 24)
391#define NC_SCENE (5 << 24)
392#define NC_OBJECT (6 << 24)
393#define NC_MATERIAL (7 << 24)
394#define NC_TEXTURE (8 << 24)
395#define NC_LAMP (9 << 24)
396#define NC_GROUP (10 << 24)
397#define NC_IMAGE (11 << 24)
398#define NC_BRUSH (12 << 24)
399#define NC_TEXT (13 << 24)
400#define NC_WORLD (14 << 24)
401#define NC_ANIMATION (15 << 24)
402/* When passing a space as reference data with this (e.g. `WM_event_add_notifier(..., space)`),
403 * the notifier will only be sent to this space. That avoids unnecessary updates for unrelated
404 * spaces. */
405#define NC_SPACE (16 << 24)
406#define NC_GEOM (17 << 24)
407#define NC_NODE (18 << 24)
408#define NC_ID (19 << 24)
409#define NC_PAINTCURVE (20 << 24)
410#define NC_MOVIECLIP (21 << 24)
411#define NC_MASK (22 << 24)
412#define NC_GPENCIL (23 << 24)
413#define NC_LINESTYLE (24 << 24)
414#define NC_CAMERA (25 << 24)
415#define NC_LIGHTPROBE (26 << 24)
416/* Changes to asset data in the current .blend. */
417#define NC_ASSET (27 << 24)
418/* Changes to the active viewer path. */
419#define NC_VIEWER_PATH (28 << 24)
420
421/* Changes that affects UI drawing. */
422#define NC_UI (29 << 24)
423
424/* Data type, 256 entries is enough, it can overlap. */
425#define NOTE_DATA 0x00FF0000
426
427/* NC_WM (window-manager). */
428#define ND_FILEREAD (1 << 16)
429#define ND_FILESAVE (2 << 16)
430#define ND_DATACHANGED (3 << 16)
431#define ND_HISTORY (4 << 16)
432#define ND_JOB (5 << 16)
433#define ND_UNDO (6 << 16)
434#define ND_XR_DATA_CHANGED (7 << 16)
435#define ND_LIB_OVERRIDE_CHANGED (8 << 16)
436#define ND_PROJECT_CHANGED (9 << 16)
437
438/* NC_SCREEN. */
439#define ND_LAYOUTBROWSE (1 << 16)
440#define ND_LAYOUTDELETE (2 << 16)
441#define ND_ANIMPLAY (4 << 16)
442#define ND_GPENCIL (5 << 16)
443#define ND_LAYOUTSET (6 << 16)
444#define ND_SKETCH (7 << 16)
445#define ND_WORKSPACE_SET (8 << 16)
446#define ND_WORKSPACE_DELETE (9 << 16)
447/* Notifies if frames changes as part of animation playback. */
448#define ND_ANIMATION_PLAYBACK (10 << 16)
449
450/* NC_SCENE Scene. */
451#define ND_SCENEBROWSE (1 << 16)
452#define ND_MARKERS (2 << 16)
453#define ND_FRAME (3 << 16)
454#define ND_RENDER_OPTIONS (4 << 16)
455#define ND_NODES (5 << 16)
456#define ND_SEQUENCER (6 << 16)
457/* NOTE: If an object was added, removed, merged/joined, ..., it is not enough to notify with
458 * this. This affects the layer so also send a layer change notifier (e.g. ND_LAYER_CONTENT)! */
459#define ND_OB_ACTIVE (7 << 16)
460/* See comment on ND_OB_ACTIVE. */
461#define ND_OB_SELECT (8 << 16)
462#define ND_OB_VISIBLE (9 << 16)
463#define ND_OB_RENDER (10 << 16)
464#define ND_MODE (11 << 16)
465#define ND_RENDER_RESULT (12 << 16)
466#define ND_COMPO_RESULT (13 << 16)
467#define ND_KEYINGSET (14 << 16)
468#define ND_TOOLSETTINGS (15 << 16)
469#define ND_LAYER (16 << 16)
470#define ND_FRAME_RANGE (17 << 16)
471#define ND_WORLD (92 << 16)
472#define ND_LAYER_CONTENT (101 << 16)
473
474/* NC_OBJECT Object. */
475#define ND_TRANSFORM (18 << 16)
476#define ND_OB_SHADING (19 << 16)
482#define ND_POSE (20 << 16)
483#define ND_BONE_ACTIVE (21 << 16)
491#define ND_BONE_SELECT (22 << 16)
501#define ND_ARMATURE_STRUCTURE ND_BONE_SELECT
502#define ND_DRAW (23 << 16)
503#define ND_MODIFIER (24 << 16)
504#define ND_KEYS (25 << 16)
505#define ND_CONSTRAINT (26 << 16)
506#define ND_PARTICLE (27 << 16)
507#define ND_POINTCACHE (28 << 16)
508#define ND_PARENT (29 << 16)
509#define ND_LOD (30 << 16)
511#define ND_DRAW_RENDER_VIEWPORT (31 << 16)
512#define ND_SHADERFX (32 << 16)
513/* For updating motion paths in 3dview. */
514#define ND_DRAW_ANIMVIZ (33 << 16)
515#define ND_BONE_COLLECTION (34 << 16)
516/* For sequencer prefetch indicator redraw. */
517#define ND_SEQUENCER_PREFETCH (35 << 16)
518
519/* NC_MATERIAL Material. */
520#define ND_SHADING (30 << 16)
521#define ND_SHADING_DRAW (31 << 16)
522#define ND_SHADING_LINKS (32 << 16)
523#define ND_SHADING_PREVIEW (33 << 16)
524
525/* NC_LAMP Light. */
526#define ND_LIGHTING (40 << 16)
527#define ND_LIGHTING_DRAW (41 << 16)
528
529/* NC_WORLD World. */
530#define ND_WORLD_DRAW (45 << 16)
531
532/* NC_TEXT Text. */
533#define ND_CURSOR (50 << 16)
534#define ND_DISPLAY (51 << 16)
535
536/* NC_ANIMATION Animato. */
537#define ND_KEYFRAME (70 << 16)
538#define ND_KEYFRAME_PROP (71 << 16)
539#define ND_ANIMCHAN (72 << 16)
540#define ND_NLA (73 << 16)
541#define ND_NLA_ACTCHANGE (74 << 16)
542#define ND_FCURVES_ORDER (75 << 16)
543#define ND_NLA_ORDER (76 << 16)
544#define ND_KEYFRAME_AUTO (77 << 16)
545
546/* NC_GPENCIL. */
547#define ND_GPENCIL_EDITMODE (85 << 16)
548
549/* NC_GEOM Geometry. */
550/* Mesh, Curve, MetaBall, Armature, etc. */
551#define ND_SELECT (90 << 16)
552#define ND_DATA (91 << 16)
553#define ND_VERTEX_GROUP (92 << 16)
554
555/* NC_NODE Nodes. */
556
557/* Influences which menus node assets are included in. */
558#define ND_NODE_ASSET_DATA (1 << 16)
559#define ND_NODE_GIZMO (2 << 16)
560
561/* NC_SPACE. */
562#define ND_SPACE_CONSOLE (1 << 16) /* General redraw. */
563#define ND_SPACE_INFO_REPORT (2 << 16) /* Update for reports, could specify type. */
564#define ND_SPACE_INFO (3 << 16)
565#define ND_SPACE_IMAGE (4 << 16)
566#define ND_SPACE_FILE_PARAMS (5 << 16)
567#define ND_SPACE_FILE_LIST (6 << 16)
568#define ND_SPACE_ASSET_PARAMS (7 << 16)
569#define ND_SPACE_NODE (8 << 16)
570#define ND_SPACE_OUTLINER (9 << 16)
571#define ND_SPACE_VIEW3D (10 << 16)
572#define ND_SPACE_PROPERTIES (11 << 16)
573#define ND_SPACE_TEXT (12 << 16)
574#define ND_SPACE_TIME (13 << 16)
575#define ND_SPACE_GRAPH (14 << 16)
576#define ND_SPACE_DOPESHEET (15 << 16)
577#define ND_SPACE_NLA (16 << 16)
578#define ND_SPACE_SEQUENCER (17 << 16)
579#define ND_SPACE_NODE_VIEW (18 << 16)
580/* Sent to a new editor type after it's replaced an old one. */
581#define ND_SPACE_CHANGED (19 << 16)
582#define ND_SPACE_CLIP (20 << 16)
583#define ND_SPACE_FILE_PREVIEW (21 << 16)
584#define ND_SPACE_SPREADSHEET (22 << 16)
585/* Not a space itself, but a part of another space. */
586#define ND_REGIONS_ASSET_SHELF (23 << 16)
587
588/* NC_ASSET. */
589/* Denotes that the AssetList is done reading some previews. NOT that the preview generation of
590 * assets is done. */
591#define ND_ASSET_LIST (1 << 16)
592#define ND_ASSET_LIST_PREVIEW (2 << 16)
593#define ND_ASSET_LIST_READING (3 << 16)
599#define ND_ASSET_CATALOGS (4 << 16)
600
601/* Changes in theme preferences that affects UI text drawing. */
602#define ND_UI_FONT (1 << 16)
603
604#define ND_UI_LANG (2 << 16)
605
606/* Subtype, 256 entries too. */
607#define NOTE_SUBTYPE 0x0000FF00
608
609/* Subtype scene mode. */
610#define NS_MODE_OBJECT (1 << 8)
611
612#define NS_EDITMODE_MESH (2 << 8)
613#define NS_EDITMODE_CURVE (3 << 8)
614#define NS_EDITMODE_SURFACE (4 << 8)
615#define NS_EDITMODE_TEXT (5 << 8)
616#define NS_EDITMODE_MBALL (6 << 8)
617#define NS_EDITMODE_LATTICE (7 << 8)
618#define NS_EDITMODE_ARMATURE (8 << 8)
619#define NS_MODE_POSE (9 << 8)
620#define NS_MODE_PARTICLE (10 << 8)
621#define NS_EDITMODE_CURVES (11 << 8)
622#define NS_EDITMODE_GREASE_PENCIL (12 << 8)
623#define NS_EDITMODE_POINTCLOUD (13 << 8)
624
625/* Subtype 3d view editing. */
626#define NS_VIEW3D_GPU (16 << 8)
627#define NS_VIEW3D_SHADING (17 << 8)
628
629/* Subtype layer editing. */
630#define NS_LAYER_COLLECTION (24 << 8)
631
632/* Action classification. */
633#define NOTE_ACTION (0x000000FF)
634#define NA_EDITED 1
635#define NA_EVALUATED 2
636#define NA_ADDED 3
637#define NA_REMOVED 4
638#define NA_RENAME 5
639#define NA_SELECTED 6
640#define NA_ACTIVATED 7
641#define NA_PAINTING 8
642#define NA_JOB_FINISHED 9
643#define NA_DOWNLOAD_FINISHED 10
644
645/* ************** Gesture Manager data ************** */
646
647namespace wm::gesture {
648constexpr float POLYLINE_CLICK_RADIUS = 15.0f;
649}
650
652#define WM_GESTURE_LINES 1
653#define WM_GESTURE_RECT 2
654#define WM_GESTURE_CROSS_RECT 3
655#define WM_GESTURE_LASSO 4
656#define WM_GESTURE_CIRCLE 5
657#define WM_GESTURE_STRAIGHTLINE 6
658#define WM_GESTURE_POLYLINE 7
659
728
729/* ************** wmEvent ************************ */
730
760
774
813struct wmEvent {
815
819 short val;
821 int xy[2];
823 int mval[2];
831 char utf8_buf[6];
832
835
838
844
847
849
850 /* Custom data. */
851
853 short custom;
868
869 /* Previous State. */
870
874 short prev_val;
880 int prev_xy[2];
881
882 /* Previous Press State (when `val == KM_PRESS`). */
883
895};
896
904#define WM_EVENT_CURSOR_MOTION_THRESHOLD ((float)U.move_threshold * UI_SCALE_FAC)
905
920
921#ifdef WITH_INPUT_NDOF
927struct wmNDOFMotionData {
934 float tvec[3];
942 float rvec[3];
949 float time_delta;
951 wmProgress progress;
952};
953#endif /* WITH_INPUT_NDOF */
954
955#ifdef WITH_XR_OPENXR
957struct wmXrPose {
958 float position[3];
960 float orientation_quat[4];
961};
962
963struct wmXrActionState {
964 union {
965 bool state_boolean;
966 float state_float;
967 float state_vector2f[2];
968 wmXrPose state_pose;
969 };
970 int type; /* #eXrActionType. */
971};
972
973struct wmXrActionData {
975 char action_set[64];
977 char action[64];
979 char user_path[64];
981 char user_path_other[64];
983 eXrActionType type;
985 float state[2];
987 float state_other[2];
988
990 float float_threshold;
991
993 float controller_loc[3];
994 float controller_rot[4];
996 float controller_loc_other[3];
997 float controller_rot_other[4];
998
1000 wmOperatorType *ot;
1001 IDProperty *op_properties;
1002
1004 bool bimanual;
1005};
1006#endif
1007
1012
1013 /* Internal flags, should not be used outside of WM code. */
1019};
1021
1051
1056
1061
1082
1089 bool stop;
1090
1093
1099};
1100
1102
1104 struct TypeData {
1105 virtual ~TypeData() = default;
1106 };
1107
1109 const char *name = nullptr;
1111 const char *idname = nullptr;
1113 const char *translation_context = nullptr;
1115 const char *description = nullptr;
1117 const char *undo_group = nullptr;
1118
1126
1133 bool (*check)(bContext *C, wmOperator *op) = nullptr;
1134
1142 wmOperator *op,
1143 const wmEvent *event) ATTR_WARN_UNUSED_RESULT = nullptr;
1144
1149 void (*cancel)(bContext *C, wmOperator *op) = nullptr;
1150
1158 wmOperator *op,
1159 const wmEvent *event) ATTR_WARN_UNUSED_RESULT = nullptr;
1160
1166
1171 bool (*poll_property)(const bContext *C,
1172 wmOperator *op,
1173 const PropertyRNA *prop) ATTR_WARN_UNUSED_RESULT = nullptr;
1174
1176 void (*ui)(bContext *C, wmOperator *op) = nullptr;
1181 bool (*ui_poll)(wmOperatorType *ot, PointerRNA *ptr) = nullptr;
1182
1191 std::string (*get_name)(wmOperatorType *ot, PointerRNA *ptr) = nullptr;
1192
1197 std::string (*get_description)(bContext *C, wmOperatorType *ot, PointerRNA *ptr) = nullptr;
1198
1200 bool (*depends_on_cursor)(bContext &C, wmOperatorType &ot, PointerRNA *ptr) = nullptr;
1201
1203 StructRNA *srna = nullptr;
1204
1207
1215 PropertyRNA *prop = nullptr;
1216
1218 ListBaseT<wmOperatorTypeMacro> macro = {};
1219
1222
1225
1227 std::unique_ptr<TypeData> custom_data;
1228
1231
1234
1236 short flag = 0;
1237};
1238
1248
1249#ifdef WITH_INPUT_IME
1250/* *********** Input Method Editor (IME) *********** */
1255struct wmIMEData {
1257 std::string result;
1259 std::string composite;
1260
1262 int cursor_pos;
1264 int sel_start;
1266 int sel_end;
1267};
1268#endif
1269
1270/* **************** Paint Cursor ******************* */
1271
1272using wmPaintCursorPoll = bool (*)(bContext *C);
1273using wmPaintCursorDraw = void (*)(bContext *C,
1274 const int2 &xy,
1275 const float2 &tilt,
1276 void *customdata);
1277
1289
1290/* *************** Drag and drop *************** */
1291
1321
1327
1328/* NOTE: structs need not exported? */
1329
1335
1340
1344
1363
1367 Vector<int> file_types; /* #eFileSel_File_Types. */
1369 int file_types_bit_flag; /* #eFileSel_File_Types. */
1370 std::string tooltip;
1371};
1372
1377
1378using WMDropboxTooltipFunc = std::string (*)(bContext *C,
1379 wmDrag *drag,
1380 const int xy[2],
1381 wmDropBox *drop);
1382
1386
1392
1403
1408 std::unique_ptr<bContextStore> ui_context;
1409
1415 std::optional<std::string> disabled_info;
1416
1417 std::string tooltip;
1418};
1419
1420struct wmDrag {
1422
1423 int icon;
1425 void *poin;
1426
1428 const ImBuf *imb;
1431 int preview_icon_id; /* BIFIconID */
1432
1434
1436
1438 ListBaseT<wmDragID> ids;
1440 ListBaseT<wmDragAssetListItem> asset_items;
1441};
1442
1454
1456 bool (*poll)(bContext *C, wmDrag *drag, const wmEvent *event);
1457
1463 void (*on_drag_start)(bContext *C, wmDrag *drag);
1464
1466 void (*on_enter)(wmDropBox *drop, wmDrag *drag);
1467
1472 void (*on_exit)(wmDropBox *drop, wmDrag *drag);
1473
1475 void (*copy)(bContext *C, wmDrag *drag, wmDropBox *drop);
1476
1481 void (*cancel)(Main *bmain, wmDrag *drag, wmDropBox *drop);
1482
1488 void (*draw_droptip)(bContext *C, wmWindow *win, wmDrag *drag, const int xy[2]);
1489
1496 void (*draw_in_view)(bContext *C, wmWindow *win, wmDrag *drag, const int xy[2]);
1497
1504 void (*on_event_while_hover)(bContext *C, wmDropBox &dropbox, const wmEvent *event);
1507
1510
1519 char opname[64];
1520
1526};
1527
1542 ARegion *(*init)(
1543 bContext *C, ARegion *region, int *pass, double *pass_delay, bool *r_exit_on_event);
1547 int event_xy[2];
1549 int pass;
1550};
1551
1552/* *************** migrated stuff, clean later? ************** */
1553
1558
1559/* Logging. */
1560/* `wm_init_exit.cc`. */
1561
1567
1568} // namespace blender
#define ENUM_OPERATORS(_enum_type)
These structs are the foundation for all linked lists in the library system.
#define C
Definition RandGen.cpp:29
#define position
const int state
ENUM_OPERATORS(Layer::Flags)
constexpr float POLYLINE_CLICK_RADIUS
Definition WM_types.hh:648
BMesh Iterators.
CLG_LogRef * WM_LOG_MSGBUS_SUB
@ KM_DIRECTION_E
Definition WM_types.hh:349
@ KM_DIRECTION_N
Definition WM_types.hh:347
@ KM_DIRECTION_SW
Definition WM_types.hh:352
@ KM_DIRECTION_S
Definition WM_types.hh:351
@ KM_DIRECTION_SE
Definition WM_types.hh:350
@ KM_DIRECTION_NW
Definition WM_types.hh:354
@ KM_DIRECTION_NE
Definition WM_types.hh:348
@ KM_DIRECTION_W
Definition WM_types.hh:353
unsigned int uint
Definition BKE_text.h:55
@ WM_POPUP_POSITION_MOUSE
Definition WM_types.hh:1058
@ WM_POPUP_POSITION_CENTER
Definition WM_types.hh:1059
std::string(*)(bContext *C, wmDrag *drag, const int xy[2], wmDropBox *drop) WMDropboxTooltipFunc
Definition WM_types.hh:1378
eWM_CursorWrapAxis
Definition WM_types.hh:238
@ WM_CURSOR_WRAP_Y
Definition WM_types.hh:241
@ WM_CURSOR_WRAP_X
Definition WM_types.hh:240
@ WM_CURSOR_WRAP_NONE
Definition WM_types.hh:239
@ WM_CURSOR_WRAP_XY
Definition WM_types.hh:242
@ WM_POPUP_SIZE_LARGE
Definition WM_types.hh:1054
@ WM_POPUP_SIZE_SMALL
Definition WM_types.hh:1053
@ WM_DRAG_NODE_TREE_INTERFACE
Definition WM_types.hh:1317
@ WM_DRAG_GREASE_PENCIL_LAYER
Definition WM_types.hh:1315
@ WM_DRAG_SHAPE_KEY
Definition WM_types.hh:1319
@ WM_DRAG_NAME
Definition WM_types.hh:1303
@ WM_DRAG_BONE_COLLECTION
Definition WM_types.hh:1318
@ WM_DRAG_DATASTACK
Definition WM_types.hh:1313
@ WM_DRAG_ASSET
Definition WM_types.hh:1294
@ WM_DRAG_RNA
Definition WM_types.hh:1301
@ WM_DRAG_STRING
Definition WM_types.hh:1311
@ WM_DRAG_ASSET_CATALOG
Definition WM_types.hh:1314
@ WM_DRAG_PATH
Definition WM_types.hh:1302
@ WM_DRAG_GREASE_PENCIL_GROUP
Definition WM_types.hh:1316
@ WM_DRAG_ASSET_LIST
Definition WM_types.hh:1300
@ WM_DRAG_COLOR
Definition WM_types.hh:1312
CLG_LogRef * WM_LOG_EVENTS
void(*)(void *data) wmGenericUserDataFreeFn
Definition WM_types.hh:146
wmEventModifierFlag
Definition WM_types.hh:290
@ WM_EVENT_SCROLL_INVERT
Definition WM_types.hh:737
@ WM_EVENT_FORCE_DRAG_THRESHOLD
Definition WM_types.hh:757
@ WM_EVENT_IS_CONSECUTIVE
Definition WM_types.hh:752
@ WM_EVENT_IS_REPEAT
Definition WM_types.hh:744
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2
BMesh const char void * data
CLG_LogRef * WM_LOG_TOOL_GIZMO
unsigned char uint8_t
Definition BKE_text.h:79
@ WM_TIMER_NO_FREE_CUSTOM_DATA
Definition WM_types.hh:1011
@ WM_TIMER_TAGGED_FOR_REMOVAL
Definition WM_types.hh:1018
eOperatorPropTags
Definition WM_types.hh:276
@ OP_PROP_TAG_ADVANCED
Definition WM_types.hh:277
@ WM_DRAG_FREE_DATA
Definition WM_types.hh:1324
@ WM_DRAG_NOP
Definition WM_types.hh:1323
bool(*)(bContext *C) wmPaintCursorPoll
Definition WM_types.hh:1272
CLG_LogRef * WM_LOG_OPERATORS
void(*)(bContext *C, const int2 &xy, const float2 &tilt, void *customdata) wmPaintCursorDraw
Definition WM_types.hh:1273
@ KM_TEXTINPUT
Definition WM_types.hh:317
@ P_FINISHED
Definition WM_types.hh:918
@ P_STARTING
Definition WM_types.hh:913
@ P_NOT_STARTED
Definition WM_types.hh:911
@ P_FINISHING
Definition WM_types.hh:917
@ P_IN_PROGRESS
Definition WM_types.hh:915
@ KM_NOTHING
Definition WM_types.hh:323
@ KM_PRESS_DRAG
Definition WM_types.hh:332
@ KM_DBL_CLICK
Definition WM_types.hh:327
@ KM_RELEASE
Definition WM_types.hh:325
@ OPTYPE_MODAL_PRIORITY
Definition WM_types.hh:231
@ OPTYPE_REGISTER
Definition WM_types.hh:188
@ OPTYPE_UNDO
Definition WM_types.hh:190
@ OPTYPE_UNDO_GROUPED
Definition WM_types.hh:215
@ OPTYPE_LOCK_BYPASS
Definition WM_types.hh:213
@ OPTYPE_NODE_TOOL
Definition WM_types.hh:234
@ OPTYPE_GRAB_CURSOR_Y
Definition WM_types.hh:200
@ OPTYPE_BLOCKING
Definition WM_types.hh:192
@ OPTYPE_PRESET
Definition WM_types.hh:203
@ OPTYPE_MACRO
Definition WM_types.hh:193
@ OPTYPE_GRAB_CURSOR_XY
Definition WM_types.hh:196
@ OPTYPE_DEPENDS_ON_CURSOR
Definition WM_types.hh:228
@ OPTYPE_INTERNAL
Definition WM_types.hh:210
@ OPTYPE_GRAB_CURSOR_X
Definition WM_types.hh:198
bool ATTR_WARN_UNUSED_RESULT
void(*)(bContext *C, void *user_data) wmGenericCallbackFn
Definition WM_types.hh:155
CLG_LogRef * WM_LOG_MSGBUS_PUB
signed char int8_t
Definition BKE_text.h:76
RecentFile * next
Definition WM_types.hh:1555
RecentFile * prev
Definition WM_types.hh:1555
Universally Unique Identifier according to RFC4122.
std::unique_ptr< bContextStore > ui_context
Definition WM_types.hh:1408
std::optional< std::string > disabled_info
Definition WM_types.hh:1415
wmDragAssetListItem * prev
Definition WM_types.hh:1354
union blender::wmDragAssetListItem::@062304063216271107026210217273137152074304244210 asset_data
wmDragAssetListItem * next
Definition WM_types.hh:1354
const asset_system::AssetRepresentation * asset
Definition WM_types.hh:1337
AssetImportSettings import_settings
Definition WM_types.hh:1338
GreasePencilLayerTreeNode * node
Definition WM_types.hh:1375
wmDragID * next
Definition WM_types.hh:1331
wmDragID * prev
Definition WM_types.hh:1331
Vector< std::string > paths
Definition WM_types.hh:1365
std::string tooltip
Definition WM_types.hh:1370
Vector< int > file_types
Definition WM_types.hh:1367
wmDragActiveDropState drop_state
Definition WM_types.hh:1433
eWM_DragFlags flags
Definition WM_types.hh:1435
eWM_DragDataType type
Definition WM_types.hh:1424
const ImBuf * imb
Definition WM_types.hh:1428
ListBaseT< wmDragID > ids
Definition WM_types.hh:1438
ListBaseT< wmDragAssetListItem > asset_items
Definition WM_types.hh:1440
void(*) draw_droptip(bContext *C, wmWindow *win, wmDrag *drag, const int xy[2])
Definition WM_types.hh:1488
void(*) on_event_while_hover(bContext *C, wmDropBox &dropbox, const wmEvent *event)
Definition WM_types.hh:1504
IDProperty * properties
Definition WM_types.hh:1522
WMDropboxTooltipFunc tooltip
Definition WM_types.hh:1509
void(*) copy(bContext *C, wmDrag *drag, wmDropBox *drop)
Definition WM_types.hh:1475
PointerRNA * ptr
Definition WM_types.hh:1524
void(*) on_enter(wmDropBox *drop, wmDrag *drag)
Definition WM_types.hh:1466
bool(*) poll(bContext *C, wmDrag *drag, const wmEvent *event)
Definition WM_types.hh:1456
void(*) cancel(Main *bmain, wmDrag *drag, wmDropBox *drop)
Definition WM_types.hh:1481
void(*) on_drag_start(bContext *C, wmDrag *drag)
Definition WM_types.hh:1463
void(*) on_exit(wmDropBox *drop, wmDrag *drag)
Definition WM_types.hh:1472
void(*) draw_in_view(bContext *C, wmWindow *win, wmDrag *drag, const int xy[2])
Definition WM_types.hh:1496
wmDropBox * prev
Definition WM_types.hh:1453
wmDropBox * next
Definition WM_types.hh:1453
wmOperatorType * ot
Definition WM_types.hh:1517
wmEventType prev_press_type
Definition WM_types.hh:885
eWM_EventFlag flag
Definition WM_types.hh:848
wmTabletData tablet
Definition WM_types.hh:846
int prev_press_xy[2]
Definition WM_types.hh:890
wmEventModifierFlag prev_press_modifier
Definition WM_types.hh:892
wmEventType keymodifier
Definition WM_types.hh:843
wmEventType type
Definition WM_types.hh:817
wmEventType prev_type
Definition WM_types.hh:872
short customdata_free
Definition WM_types.hh:854
wmEvent * prev
Definition WM_types.hh:814
wmEvent * next
Definition WM_types.hh:814
wmEventType prev_press_keymodifier
Definition WM_types.hh:894
wmEventModifierFlag modifier
Definition WM_types.hh:834
wmGenericUserDataFreeFn free_user_data
Definition WM_types.hh:160
wmGenericCallbackFn exec
Definition WM_types.hh:158
wmGenericUserDataFreeFn free_fn
Definition WM_types.hh:151
wmGesture * prev
Definition WM_types.hh:664
uint8_t event_modifier
Definition WM_types.hh:668
wmGenericUserData user_data
Definition WM_types.hh:725
ui::View2DEdgePanData * edge_pan_data
Definition WM_types.hh:726
wmGesture * next
Definition WM_types.hh:664
unsigned int action
Definition WM_types.hh:371
const wmWindow * window
Definition WM_types.hh:369
wmNotifier * prev
Definition WM_types.hh:367
unsigned int subtype
Definition WM_types.hh:371
unsigned int category
Definition WM_types.hh:371
unsigned int data
Definition WM_types.hh:371
wmNotifier * next
Definition WM_types.hh:367
wm::OpCallContext opcontext
Definition WM_types.hh:1246
const char * undo_group
Definition WM_types.hh:1117
std::unique_ptr< TypeData > custom_data
Definition WM_types.hh:1227
IDProperty * last_properties
Definition WM_types.hh:1206
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1125
bool(*) poll_property(const bContext *C, wmOperator *op, const PropertyRNA *prop) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1171
bool(*) check(bContext *C, wmOperator *op)
Definition WM_types.hh:1133
const char * description
Definition WM_types.hh:1115
void(*) cancel(bContext *C, wmOperator *op)
Definition WM_types.hh:1149
ListBaseT< wmOperatorTypeMacro > macro
Definition WM_types.hh:1218
const char * translation_context
Definition WM_types.hh:1113
bool(*) pyop_poll(bContext *C, wmOperatorType *ot) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1224
bool(*) ui_poll(wmOperatorType *ot, PointerRNA *ptr)
Definition WM_types.hh:1181
void(*) ui(bContext *C, wmOperator *op)
Definition WM_types.hh:1176
bool(*) depends_on_cursor(bContext &C, wmOperatorType &ot, PointerRNA *ptr)
Definition WM_types.hh:1200
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1165
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1141
wmOperatorStatus(*) modal(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1157
std::string(*) get_description(bContext *C, wmOperatorType *ot, PointerRNA *ptr)
Definition WM_types.hh:1197
std::string(*) get_name(wmOperatorType *ot, PointerRNA *ptr)
Definition WM_types.hh:1191
wmPaintCursorPoll poll
Definition WM_types.hh:1283
wmPaintCursor * next
Definition WM_types.hh:1279
wmPaintCursor * prev
Definition WM_types.hh:1279
wmEventType event_type
Definition WM_types.hh:1031
wmTimerFlags flags
Definition WM_types.hh:1033
wmWindow * win
Definition WM_types.hh:1026