diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-08-05 13:14:55 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-08-10 18:53:00 +0300 |
commit | 4375e7ff0b74f96447e27f78a0d9245353d36865 (patch) | |
tree | 24ea32717810f89f8c8ba54f2aa28aa81122a8cd /source/blender/windowmanager/WM_types.h | |
parent | 86c363a02706b1a5d3cb18d17b4b37bd78461ded (diff) |
WM: internal changes to support dragging multiple IDs.
To be used by the outliner.
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 809588b1a36..4882741680a 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -111,6 +111,7 @@ struct wmEvent; struct wmWindowManager; struct wmMsgBus; struct wmOperator; +struct ID; struct ImBuf; #include "RNA_types.h" @@ -660,6 +661,12 @@ typedef enum wmDragFlags { /* note: structs need not exported? */ +typedef struct wmDragID { + struct wmDragID *next, *prev; + struct ID *id; + struct ID *from_parent; +} wmDragID; + typedef struct wmDrag { struct wmDrag *next, *prev; @@ -674,6 +681,8 @@ typedef struct wmDrag { char opname[200]; /* if set, draws operator name*/ unsigned int flags; + + ListBase ids; /* List of wmDragIDs, all are guaranteed to have the same ID type. */ } wmDrag; /* dropboxes are like keymaps, part of the screen/area/region definition */ |