Remove separate visibility flag
[deliverable/binutils-gdb.git] / gdb / tui / tui-data.h
index 6c7ab056b485ee0ac5c8fab41ec2564403904b6c..7993c639376d37f426a9aa52fd9e6e3b892428c2 100644 (file)
@@ -79,6 +79,12 @@ public:
     return false;
   }
 
+  /* Return true if this window is visible.  */
+  bool is_visible () const
+  {
+    return handle != nullptr;
+  }
+
   /* Window handle.  */
   WINDOW *handle = nullptr;
   /* Type of window.  */
@@ -91,8 +97,6 @@ public:
   struct tui_point origin = {0, 0};
   /* Viewport height.  */
   int viewport_height = 0;
-  /* Whether the window is visible or not.  */
-  bool is_visible = false;
   /* Window title to display.  */
   char *title = nullptr;
 };
This page took 0.024156 seconds and 4 git commands to generate.