- if (visible)
- {
- if (!is_visible)
- {
- tui_make_window (this, (tui_win_is_auxiliary (type)
- ? DONT_BOX_WINDOW : BOX_WINDOW));
- is_visible = true;
- }
- }
- else if (!visible
- && is_visible
- && handle != NULL)
- {
- is_visible = false;
- tui_delete_win (handle);
- handle = NULL;
- }
-}
-
-void
-tui_make_visible (struct tui_gen_win_info *win_info)
-{
- win_info->make_visible (true);
-}
-
-void
-tui_make_invisible (struct tui_gen_win_info *win_info)
-{
- win_info->make_visible (false);
-}
-
-/* See tui-data.h. */
-
-void
-tui_source_window_base::make_visible (bool visible)
-{
- execution_info->make_visible (visible);
- tui_win_info::make_visible (visible);
-}
-
-/* Makes all windows invisible (except the command and locator
- windows). */
-static void
-make_all_visible (bool visible)
-{
- for (tui_win_info *win_info : all_tui_windows ())
- win_info->make_visible (visible);
-}
-
-void
-tui_make_all_visible (void)
-{
- make_all_visible (true);
-}