aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-11-05 17:12:04 -0700
committerTom Tromey <tom@tromey.com>2019-12-11 15:49:00 -0700
commit1431937bee66d6a36c377156d07856f6e469e552 (patch)
tree8faf32e50891723f541fbbe3f7f7f5726ef8dcc5 /gdb/tui
parentc8ec2f433c54dae7746db144a872da6f808e5d73 (diff)
downloadgdb-1431937bee66d6a36c377156d07856f6e469e552.zip
gdb-1431937bee66d6a36c377156d07856f6e469e552.tar.gz
gdb-1431937bee66d6a36c377156d07856f6e469e552.tar.bz2
Move can_box to tui_gen_win_info
This moves the can_box method to tui_gen_win_info, so that it will be available on the tui_locator_window class. This will be used in a subsequent patch. gdb/ChangeLog 2019-12-11 Tom Tromey <tom@tromey.com> * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method. (struct tui_win_info) <can_box>: Update. Change-Id: Idfa58af41341607932d3c39415f6a35ee9b5d3dc
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-data.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index d3b84b1..d441a38 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -85,6 +85,12 @@ public:
/* Compute the maximum height of this window. */
virtual int max_height () const = 0;
+ /* Return true if this window can be boxed. */
+ virtual bool can_box () const
+ {
+ return false;
+ }
+
/* Resize this window. The parameters are used to set the window's
size and position. */
virtual void resize (int height, int width,
@@ -203,7 +209,7 @@ public:
return true;
}
- virtual bool can_box () const
+ bool can_box () const override
{
return true;
}