Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/makesdna/DNA_screen_types.h')
-rw-r--r--source/blender/makesdna/DNA_screen_types.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h
index e0b2a337d9f..82588b19886 100644
--- a/source/blender/makesdna/DNA_screen_types.h
+++ b/source/blender/makesdna/DNA_screen_types.h
@@ -85,7 +85,8 @@ typedef struct Panel { /* the part from uiBlock that needs saved in file */
char panelname[64], tabname[64]; /* defined as UI_MAX_NAME_STR */
short ofsx, ofsy, sizex, sizey;
short flag, active; /* active= used currently by a uiBlock */
- short control, pad;
+ short control;
+ short snap;
short old_ofsx, old_ofsy; /* for stow */
int sortcounter; /* when sorting panels, it uses this to put new ones in right place */
struct Panel *paneltab; /* this panel is tabbed in *paneltab */
@@ -147,6 +148,15 @@ typedef struct ScrArea {
#define B_SCROLL 8
#define HOR_SCROLL 12
+/* Panel->snap - for snapping to screen edges */
+#define PNL_SNAP_NONE 0
+#define PNL_SNAP_TOP 1
+#define PNL_SNAP_RIGHT 2
+#define PNL_SNAP_BOTTOM 4
+#define PNL_SNAP_LEFT 8
+
+#define PNL_SNAP_DIST 9.0
+
/* screen handlers */
#define SCREEN_MAXHANDLER 8