GDB (xrefs)
|
#include "tui-data.h"
Public Member Functions | |
tui_win_info (tui_win_info &&)=default | |
virtual | ~tui_win_info ()=default |
virtual void | refresh_window () |
virtual void | make_visible (bool visible) |
virtual const char * | name () const =0 |
virtual int | max_height () const |
virtual int | min_height () const |
int | max_width () const |
int | min_width () const |
virtual bool | can_box () const |
virtual void | resize (int height, int width, int origin_x, int origin_y) |
bool | is_visible () const |
virtual bool | can_focus () const |
void | no_refresh () |
virtual void | update_tab_width () |
void | set_highlight (bool highlight) |
void | forward_scroll (int num_to_scroll) |
void | backward_scroll (int num_to_scroll) |
void | left_scroll (int num_to_scroll) |
void | right_scroll (int num_to_scroll) |
virtual bool | can_scroll () const |
virtual void | click (int mouse_x, int mouse_y, int mouse_button) |
void | check_and_display_highlight_if_needed () |
void | set_title (std::string &&new_title) |
const std::string & | title () const |
Public Attributes | |
std::unique_ptr< WINDOW, curses_deleter > | handle |
int | width = 0 |
int | height = 0 |
int | x = 0 |
int | y = 0 |
bool | is_highlighted = false |
Protected Member Functions | |
tui_win_info ()=default | |
DISABLE_COPY_AND_ASSIGN (tui_win_info) | |
virtual void | rerender () |
virtual void | make_window () |
virtual void | do_scroll_vertical (int num_to_scroll)=0 |
virtual void | do_scroll_horizontal (int num_to_scroll)=0 |
Private Attributes | |
std::string | m_title |
Definition at line 41 of file tui-data.h.
|
protecteddefault |
|
default |
|
virtualdefault |
void tui_win_info::backward_scroll | ( | int | num_to_scroll | ) |
Definition at line 451 of file tui-win.c.
References do_scroll_vertical(), and height.
Referenced by tui_dispatch_ctrl_char(), and tui_scroll_backward_command().
|
inlinevirtual |
Reimplemented in tui_cmd_window, and tui_locator_window.
Definition at line 86 of file tui-data.h.
Referenced by check_and_display_highlight_if_needed(), tui_layout_window::first_edge_has_border_p(), tui_layout_window::last_edge_has_border_p(), make_window(), tui_source_window_base::show_source_content(), tui_highlight_win(), and tui_unhighlight_win().
|
inlinevirtual |
Reimplemented in tui_locator_window.
Definition at line 103 of file tui-data.h.
Referenced by tui_next_win(), tui_prev_win(), and tui_set_focus_command().
|
inlinevirtual |
Reimplemented in tui_cmd_window.
Definition at line 135 of file tui-data.h.
Referenced by tui_dispatch_ctrl_char().
void tui_win_info::check_and_display_highlight_if_needed | ( | ) |
Definition at line 154 of file tui-wingeneral.c.
References can_box(), is_highlighted, tui_highlight_win(), and tui_unhighlight_win().
Referenced by tui_source_window_base::do_erase_source_content(), tui_data_window::erase_data_content(), rerender(), set_title(), and tui_source_window_base::show_source_content().
|
inlinevirtual |
Definition at line 143 of file tui-data.h.
|
protected |
|
protectedpure virtual |
Implemented in tui_locator_window, tui_cmd_window, tui_data_window, and tui_source_window_base.
Referenced by left_scroll(), and right_scroll().
|
protectedpure virtual |
Implemented in tui_locator_window, tui_cmd_window, tui_disasm_window, tui_data_window, and tui_source_window.
Referenced by backward_scroll(), and forward_scroll().
void tui_win_info::forward_scroll | ( | int | num_to_scroll | ) |
Definition at line 442 of file tui-win.c.
References do_scroll_vertical(), and height.
Referenced by tui_dispatch_ctrl_char(), and tui_scroll_forward_command().
|
inline |
Definition at line 97 of file tui-data.h.
References handle, and tui_active.
Referenced by make_visible(), tui_source_window_base::style_changed(), tui_is_window_visible(), tui_set_focus_command(), and tui_set_win_size().
void tui_win_info::left_scroll | ( | int | num_to_scroll | ) |
Definition at line 461 of file tui-win.c.
References do_scroll_horizontal().
Referenced by tui_dispatch_ctrl_char(), and tui_scroll_left_command().
|
virtual |
Reimplemented in tui_cmd_window.
Definition at line 183 of file tui-wingeneral.c.
References handle, is_visible(), and make_window().
Referenced by tui_layout_window::replace_window().
|
protectedvirtual |
Definition at line 166 of file tui-wingeneral.c.
References box_win(), can_box(), handle, height, suppress_output, width, x, and y.
Referenced by make_visible(), resize(), and tui_cmd_window::resize().
|
virtual |
Reimplemented in tui_locator_window.
Definition at line 1018 of file tui-win.c.
References tui_term_height().
Referenced by tui_layout_window::get_sizes().
int tui_win_info::max_width | ( | ) | const |
Definition at line 1026 of file tui-win.c.
References tui_term_width().
Referenced by tui_layout_window::get_sizes().
|
inlinevirtual |
Reimplemented in tui_locator_window.
Definition at line 71 of file tui-data.h.
References MIN_WIN_HEIGHT.
Referenced by tui_layout_window::get_sizes().
|
inline |
Definition at line 80 of file tui-data.h.
Referenced by tui_layout_window::get_sizes().
|
pure virtual |
Implemented in tui_cmd_window, tui_disasm_window, tui_data_window, tui_source_window, and tui_locator_window.
Referenced by gdb.printing.FlagEnumerationPrinter::__call__(), gdb.dap.varref.BaseReference::__init__(), gdb.disassembler.Disassembler::__init__(), gdb.printing.SubPrettyPrinter::__init__(), gdb.types.TypePrinter::__init__(), gdb.xmethod.XMethod::__init__(), gdb.xmethod.XMethodMatcher::__init__(), gdb.printing.PrettyPrinter::__init__(), tui_layout_window::get_sizes(), tui_source_window_base::refresh_window(), tui_source_window_base::rerender(), tui_source_window_base::show_source_content(), gdb.dap.varref.BaseReference::to_object(), tui_adjust_window_height(), tui_adjust_window_width(), tui_partial_win_by_name(), tui_remove_some_windows(), and tui_source_window_base::validate_scroll_offsets().
|
inline |
Definition at line 109 of file tui-data.h.
References handle.
|
virtual |
Reimplemented in tui_cmd_window, and tui_source_window_base.
Definition at line 74 of file tui-wingeneral.c.
References handle, and tui_wrefresh().
Referenced by tui_data_window::display_registers_from(), tui_locator_window::rerender(), tui_highlight_win(), and tui_unhighlight_win().
|
protectedvirtual |
Reimplemented in tui_data_window, tui_locator_window, and tui_source_window_base.
Definition at line 168 of file tui-data.c.
References check_and_display_highlight_if_needed().
Referenced by resize().
|
virtual |
Reimplemented in tui_cmd_window.
Definition at line 302 of file tui-layout.c.
References handle, height, make_window(), rerender(), width, x, and y.
Referenced by tui_layout_window::apply().
void tui_win_info::right_scroll | ( | int | num_to_scroll | ) |
Definition at line 471 of file tui-win.c.
References do_scroll_horizontal().
Referenced by tui_dispatch_ctrl_char(), and tui_scroll_right_command().
|
inline |
Definition at line 121 of file tui-data.h.
References is_highlighted.
Referenced by tui_highlight_win(), and tui_unhighlight_win().
void tui_win_info::set_title | ( | std::string && | new_title | ) |
Definition at line 158 of file tui-data.c.
References check_and_display_highlight_if_needed(), and m_title.
Referenced by tui_source_window::set_contents(), and tui_data_window::show_register_group().
|
inline |
|
inlinevirtual |
Reimplemented in tui_source_window_base.
Definition at line 116 of file tui-data.h.
std::unique_ptr<WINDOW, curses_deleter> tui_win_info::handle |
Definition at line 158 of file tui-data.h.
Referenced by box_win(), tui_data_window::check_register_values(), tui_data_window::display_registers_from(), tui_source_window_base::do_erase_source_content(), tui_data_window::erase_data_content(), is_visible(), make_visible(), make_window(), no_refresh(), refresh_window(), tui_source_window_base::refresh_window(), tui_locator_window::rerender(), resize(), tui_cmd_window::resize(), tui_source_window::show_line_number(), tui_highlight_win(), tui_unhighlight_win(), tui_source_window_base::update_exec_info(), and tui_source_window_base::update_tab_width().
int tui_win_info::height = 0 |
Definition at line 162 of file tui-data.h.
Referenced by backward_scroll(), tui_data_window::display_reg_element_at_line(), tui_data_window::display_registers_from(), tui_source_window_base::do_erase_source_content(), tui_data_window::erase_data_content(), forward_scroll(), make_window(), tui_source_window::maybe_update(), resize(), tui_cmd_window::resize(), tui_disasm_window::set_contents(), tui_source_window::set_contents(), tui_get_command_dimension(), and tui_set_win_size().
bool tui_win_info::is_highlighted = false |
Definition at line 168 of file tui-data.h.
Referenced by check_and_display_highlight_if_needed(), and set_highlight().
|
private |
Definition at line 182 of file tui-data.h.
Referenced by set_title(), and title().
int tui_win_info::width = 0 |
Definition at line 160 of file tui-data.h.
Referenced by box_win(), tui_data_window::display_registers_from(), tui_source_window_base::do_erase_source_content(), tui_data_window::erase_data_content(), tui_locator_window::make_status_line(), make_window(), resize(), tui_cmd_window::resize(), tui_source_window_base::show_source_content(), tui_get_command_dimension(), tui_set_win_size(), and tui_source_window_base::view_width().
int tui_win_info::x = 0 |
Definition at line 164 of file tui-data.h.
Referenced by make_window(), tui_source_window_base::refresh_window(), resize(), and tui_cmd_window::resize().
int tui_win_info::y = 0 |
Definition at line 165 of file tui-data.h.
Referenced by tui_data_window::display_registers_from(), make_window(), tui_source_window_base::refresh_window(), resize(), and tui_cmd_window::resize().