GDB (xrefs)
Loading...
Searching...
No Matches
tui-command.h
Go to the documentation of this file.
1/* Specific command window processing.
2
3 Copyright (C) 1998-2023 Free Software Foundation, Inc.
4
5 Contributed by Hewlett-Packard Company.
6
7 This file is part of GDB.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21
22#ifndef TUI_TUI_COMMAND_H
23#define TUI_TUI_COMMAND_H
24
25#include "tui/tui-data.h"
26
27/* The TUI command window. */
29{
30 tui_cmd_window () = default;
31
33
34 void refresh_window () override
35 {
36 }
37
38 const char *name () const override
39 {
40 return CMD_NAME;
41 }
42
43 bool can_scroll () const override
44 {
45 return false;
46 }
47
48 bool can_box () const override
49 {
50 return false;
51 }
52
53 void resize (int height, int width, int origin_x, int origin_y) override;
54
55 void make_visible (bool visible) override
56 {
57 /* The command window can't be made invisible. */
58 }
59
60 int start_line = 0;
61
62protected:
63
64 void do_scroll_vertical (int num_to_scroll) override
65 {
66 }
67
68 void do_scroll_horizontal (int num_to_scroll) override
69 {
70 }
71};
72
73/* Refresh the command window. */
74extern void tui_refresh_cmd_win (void);
75
76#endif /* TUI_TUI_COMMAND_H */
DISABLE_COPY_AND_ASSIGN(tui_cmd_window)
bool can_box() const override
Definition tui-command.h:48
tui_cmd_window()=default
bool can_scroll() const override
Definition tui-command.h:43
void resize(int height, int width, int origin_x, int origin_y) override
Definition tui-command.c:35
void do_scroll_vertical(int num_to_scroll) override
Definition tui-command.h:64
void make_visible(bool visible) override
Definition tui-command.h:55
void refresh_window() override
Definition tui-command.h:34
void do_scroll_horizontal(int num_to_scroll) override
Definition tui-command.h:68
const char * name() const override
Definition tui-command.h:38
void tui_refresh_cmd_win(void)
Definition tui-command.c:63
#define CMD_NAME
Definition tui-data.h:187