diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-04 01:54:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-04 02:37:22 +0300 |
commit | 3c8c1841d72d8b9b13799c9a12cd8637b38be51d (patch) | |
tree | 08c0a06d79ab98d5a878051246645931d6eb6faf /source/blender/editors/include/ED_screen.h | |
parent | 55f62b94f861b3284ae813fd4d0ca9f1458f7ae5 (diff) |
UI: use shared toolbar region callbacks
Image toolbar now starts with a single column width
and snaps to button increments.
Diffstat (limited to 'source/blender/editors/include/ED_screen.h')
-rw-r--r-- | source/blender/editors/include/ED_screen.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index 8d7b723002a..2f2f4847a6f 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -342,6 +342,14 @@ void ED_region_cache_draw_background(const struct ARegion *ar); void ED_region_cache_draw_curfra_label(const int framenr, const float x, const float y); void ED_region_cache_draw_cached_segments(const struct ARegion *ar, const int num_segments, const int *points, const int sfra, const int efra); +/* area_utils.c */ +void ED_region_generic_tools_region_message_subscribe( + const struct bContext *C, + struct WorkSpace *workspace, struct Scene *scene, + struct bScreen *screen, struct ScrArea *sa, struct ARegion *ar, + struct wmMsgBus *mbus); +int ED_region_generic_tools_region_snap_size(const struct ARegion *ar, int size, int axis); + /* interface_region_hud.c */ struct ARegionType *ED_area_type_hud(int space_type); void ED_area_type_hud_clear(struct wmWindowManager *wm, ScrArea *sa_keep); |