Simplify TUI boxing
[deliverable/binutils-gdb.git] / gdb / tui / tui-data.h
index 3493b5ed68b593b4f4d27a278ea64832f572c05f..017e7a40f52bce80892bda24889e54c2d6f81018 100644 (file)
@@ -67,6 +67,12 @@ public:
   virtual void reset (int height, int width,
                      int origin_x, int origin_y);
 
+  /* Return true if this can be boxed.  */
+  virtual bool can_box () const
+  {
+    return false;
+  }
+
   /* Window handle.  */
   WINDOW *handle = nullptr;
   /* Type of window.  */
@@ -85,13 +91,6 @@ public:
   char *title = nullptr;
 };
 
-/* Whether or not a window should be drawn with a box.  */
-enum tui_box
-{
-  DONT_BOX_WINDOW = 0,
-  BOX_WINDOW
-};
-
 /* Constant definitions.  */
 #define DEFAULT_TAB_LEN         8
 #define NO_SRC_STRING           "[ No Source Available ]"
@@ -248,6 +247,11 @@ public:
     return true;
   }
 
+  bool can_box () const override
+  {
+    return true;
+  }
+
   void check_and_display_highlight_if_needed ();
 
   /* Can this window ever be highlighted?  */
This page took 0.025789 seconds and 4 git commands to generate.