From 6aef124e7d2869a692dd564a4515f2304924da33 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 18 Apr 2019 12:16:03 +0200 Subject: UI: move region toggling to properties Each space had separate operators, duplicating logic. Use RNA properties instead so adding the ability to toggle other region types (floating redo region for eg) doesn't need to have an extra operator per space type. It's also nicer to show a check-box for something which can be toggled. --- source/blender/editors/include/ED_screen.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index bcf9cb3fcc0..04bbbbdf25f 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -100,7 +100,14 @@ void ED_region_header_draw(const struct bContext *C, struct ARegion *ar); void ED_region_cursor_set(struct wmWindow *win, struct ScrArea *sa, struct ARegion *ar); void ED_region_toggle_hidden(struct bContext *C, struct ARegion *ar); -void ED_region_visibility_change_update(struct bContext *C, struct ARegion *ar); +void ED_region_visibility_change_update(struct bContext *C, + struct ScrArea *sa, + struct ARegion *ar); +/* screen_ops.c */ +void ED_region_visibility_change_update_animated(struct bContext *C, + struct ScrArea *sa, + struct ARegion *ar); + void ED_region_info_draw(struct ARegion *ar, const char *text, float fill_color[4], -- cgit v1.2.3