From 6a0264896b38794ec8242040cf5104c4e06d844e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 26 Apr 2018 12:01:44 +0200 Subject: UI: toolbar single column size snapping Once a region is set to it's snapped size, zooming keeps the size. --- source/blender/blenkernel/BKE_screen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenkernel/BKE_screen.h') diff --git a/source/blender/blenkernel/BKE_screen.h b/source/blender/blenkernel/BKE_screen.h index 2736833a5ca..69b5e7ea6fe 100644 --- a/source/blender/blenkernel/BKE_screen.h +++ b/source/blender/blenkernel/BKE_screen.h @@ -140,6 +140,8 @@ typedef struct ARegionType { void (*exit)(struct wmWindowManager *, struct ARegion *); /* draw entirely, view changes should be handled here */ void (*draw)(const struct bContext *, struct ARegion *); + /* snap the size of the region (can be NULL for no snapping). */ + int (*snap_size)(const struct ARegion *ar, int size, int axis); /* contextual changes should be handled here */ void (*listener)(struct bScreen *, struct ScrArea *, struct ARegion *, struct wmNotifier *, const struct Scene *scene); -- cgit v1.2.3