diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-26 13:01:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-26 13:08:58 +0300 |
commit | 6a0264896b38794ec8242040cf5104c4e06d844e (patch) | |
tree | a50666f77b81a77441291f27d1b1720a3a6efefe /source/blender/editors/include/ED_screen.h | |
parent | e0c088f8fb5afcb2dd70d7a6c275fd942f6e42a9 (diff) |
UI: toolbar single column size snapping
Once a region is set to it's snapped size, zooming keeps the size.
Diffstat (limited to 'source/blender/editors/include/ED_screen.h')
-rw-r--r-- | source/blender/editors/include/ED_screen.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |