diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2018-04-24 20:59:48 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2018-04-24 21:16:44 +0300 |
commit | 2cd9a0ce5c3785be3734d97446ff8470b22d6da7 (patch) | |
tree | 24339a18224f636c14ba4ba6bb8ae0aa7e913758 /source/blender/editors/include | |
parent | 34d6b48c47aae25e26e7864ff66314b37669ebcc (diff) |
Hide top-bar in fullscreen
Fullscreen as in the Alt+F10 fullscreen.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_screen.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index 0f4fb6b8cc3..6d9b4af7c01 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -133,13 +133,17 @@ int ED_area_global_size_y(const ScrArea *area); bool ED_area_is_global(const ScrArea *area); int ED_region_global_size_y(void); -/** Iterate over all areas visible in the screen (screen as in everything visible in the window, not just bScreen) */ +ScrArea *ED_screen_areas_iter_first(const struct wmWindow *win, const bScreen *screen); +ScrArea *ED_screen_areas_iter_next(const bScreen *screen, const ScrArea *area); +/** + * Iterate over all areas visible in the screen (screen as in everything + * visible in the window, not just bScreen). + * \note Skips global areas with flag GLOBAL_AREA_IS_HIDDEN. + */ #define ED_screen_areas_iter(win, screen, area_name) \ - for (ScrArea *area_name = (win)->global_areas.areabase.first ? \ - (win)->global_areas.areabase.first : \ - screen->areabase.first; \ + for (ScrArea *area_name = ED_screen_areas_iter_first(win, screen); \ area_name != NULL; \ - area_name = (area_name == (win)->global_areas.areabase.last) ? (screen)->areabase.first : area_name->next) + area_name = ED_screen_areas_iter_next(screen, area_name)) #define ED_screen_verts_iter(win, screen, vert_name) \ for (ScrVert *vert_name = (win)->global_areas.vertbase.first ? \ (win)->global_areas.vertbase.first : \ |