View2D - Initial commit of Pan-View Operator
[blender.git] / source / blender / makesdna / DNA_screen_types.h
index c49a70ee9cfae5843a18616f1af69388051cf181..2f25d96f28585a6599adf552b8b2c8a2ced5d148 100644 (file)
@@ -28,6 +28,7 @@
 #define DNA_SCREEN_TYPES_H
 
 #include "DNA_listBase.h"
+#include "DNA_view2d_types.h"
 #include "DNA_vec_types.h"
 
 #include "DNA_scriptlink_types.h"
@@ -132,7 +133,9 @@ typedef struct ScrArea {
 typedef struct ARegion {
        struct ARegion *next, *prev;
        
-       rcti winrct;
+       View2D v2d;                                     /* 2D-View scrolling/zoom info (most regions are 2d anyways) */
+       rcti winrct;                            /* coordinates of region */
+       
        short swinid;
        short regiontype;                       /* window, header, etc. identifier for drawing */
        short alignment;                        /* how it should split */