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. */
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 ]"
return true;
}
+ bool can_box () const override
+ {
+ return true;
+ }
+
void check_and_display_highlight_if_needed ();
/* Can this window ever be highlighted? */