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/editors/include/ED_screen.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/include/ED_screen.h') diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index 6d9b4af7c01..b4857051c89 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -91,6 +91,9 @@ void ED_region_grid_draw(struct ARegion *ar, float zoomx, float zoomy); float ED_region_blend_factor(struct ARegion *ar); void ED_region_visible_rect(struct ARegion *ar, struct rcti *rect); +int ED_region_snap_size_test(const struct ARegion *ar); +bool ED_region_snap_size_apply(struct ARegion *ar, int snap_flag); + /* message_bus callbacks */ void ED_region_do_msg_notify_tag_redraw( struct bContext *C, struct wmMsgSubscribeKey *msg_key, struct wmMsgSubscribeValue *msg_val); -- cgit v1.2.3