xref: /dflybsd-src/contrib/gdb-7/gdb/tui/tui-win.h (revision de8e141f24382815c10a4012d209bbbf7abf1112)
15796c8dcSSimon Schubert /* TUI window generic functions.
25796c8dcSSimon Schubert 
3*ef5ccd6cSJohn Marino    Copyright (C) 1998-2013 Free Software Foundation, Inc.
45796c8dcSSimon Schubert 
55796c8dcSSimon Schubert    Contributed by Hewlett-Packard Company.
65796c8dcSSimon Schubert 
75796c8dcSSimon Schubert    This file is part of GDB.
85796c8dcSSimon Schubert 
95796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
105796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
115796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
125796c8dcSSimon Schubert    (at your option) any later version.
135796c8dcSSimon Schubert 
145796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
155796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
165796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
175796c8dcSSimon Schubert    GNU General Public License for more details.
185796c8dcSSimon Schubert 
195796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
205796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
215796c8dcSSimon Schubert 
225796c8dcSSimon Schubert #ifndef TUI_WIN_H
235796c8dcSSimon Schubert #define TUI_WIN_H
245796c8dcSSimon Schubert 
255796c8dcSSimon Schubert #include "tui/tui-data.h"
265796c8dcSSimon Schubert 
275796c8dcSSimon Schubert struct tui_win_info;
285796c8dcSSimon Schubert 
295796c8dcSSimon Schubert extern void tui_scroll_forward (struct tui_win_info *, int);
305796c8dcSSimon Schubert extern void tui_scroll_backward (struct tui_win_info *, int);
315796c8dcSSimon Schubert extern void tui_scroll_left (struct tui_win_info *, int);
325796c8dcSSimon Schubert extern void tui_scroll_right (struct tui_win_info *, int);
335796c8dcSSimon Schubert extern void tui_scroll (enum tui_scroll_direction,
345796c8dcSSimon Schubert 			struct tui_win_info *, int);
355796c8dcSSimon Schubert extern void tui_set_win_focus_to (struct tui_win_info *);
365796c8dcSSimon Schubert extern void tui_resize_all (void);
375796c8dcSSimon Schubert extern void tui_refresh_all_win (void);
385796c8dcSSimon Schubert 
395796c8dcSSimon Schubert extern chtype tui_border_ulcorner;
405796c8dcSSimon Schubert extern chtype tui_border_urcorner;
415796c8dcSSimon Schubert extern chtype tui_border_lrcorner;
425796c8dcSSimon Schubert extern chtype tui_border_llcorner;
435796c8dcSSimon Schubert extern chtype tui_border_vline;
445796c8dcSSimon Schubert extern chtype tui_border_hline;
455796c8dcSSimon Schubert extern int tui_border_attrs;
465796c8dcSSimon Schubert extern int tui_active_border_attrs;
475796c8dcSSimon Schubert 
485796c8dcSSimon Schubert extern int tui_update_variables (void);
495796c8dcSSimon Schubert 
505796c8dcSSimon Schubert extern void tui_initialize_win (void);
515796c8dcSSimon Schubert 
525796c8dcSSimon Schubert /* Update gdb's knowledge of the terminal size.  */
535796c8dcSSimon Schubert extern void tui_update_gdb_sizes (void);
545796c8dcSSimon Schubert 
555796c8dcSSimon Schubert /* Create or get the TUI command list.  */
565796c8dcSSimon Schubert struct cmd_list_element **tui_get_cmd_list (void);
575796c8dcSSimon Schubert 
585796c8dcSSimon Schubert #endif
59