GDB (xrefs)
|
#include "tui-layout.h"
Classes | |
struct | size_info |
struct | split |
Public Member Functions | |
tui_layout_split (bool vertical=true) | |
DISABLE_COPY_AND_ASSIGN (tui_layout_split) | |
void | add_split (std::unique_ptr< tui_layout_split > &&layout, int weight) |
void | add_window (const char *name, int weight) |
std::unique_ptr< tui_layout_base > | clone () const override |
void | apply (int x, int y, int width, int height, bool preserve_cmd_win_size_p) override |
tui_adjust_result | set_height (const char *name, int new_height) override |
tui_adjust_result | set_width (const char *name, int new_width) override |
bool | first_edge_has_border_p () const override |
bool | last_edge_has_border_p () const override |
void | remove_windows (const char *name) override |
void | replace_window (const char *name, const char *new_window) override |
void | specification (ui_file *output, int depth) override |
std::string | layout_fingerprint () const override |
void | get_windows (std::vector< tui_win_info * > *windows) override |
![]() | |
DISABLE_COPY_AND_ASSIGN (tui_layout_base) | |
virtual | ~tui_layout_base ()=default |
virtual const char * | get_name () const |
Protected Member Functions | |
void | get_sizes (bool height, int *min_value, int *max_value) override |
![]() | |
tui_layout_base ()=default | |
Private Member Functions | |
tui_adjust_result | set_size (const char *name, int new_size, bool set_width_p) |
void | set_weights_from_sizes () |
std::string | tui_debug_weights_to_string () const |
Static Private Member Functions | |
static void | tui_debug_print_size_info (const std::vector< size_info > &info) |
Private Attributes | |
std::vector< split > | m_splits |
bool | m_vertical |
Additional Inherited Members | |
![]() | |
int | x = 0 |
int | y = 0 |
int | width = 0 |
int | height = 0 |
Definition at line 210 of file tui-layout.h.
|
inlineexplicit |
Definition at line 216 of file tui-layout.h.
Referenced by clone().
void tui_layout_split::add_split | ( | std::unique_ptr< tui_layout_split > && | layout, |
int | weight ) |
Definition at line 541 of file tui-layout.c.
References m_splits.
void tui_layout_split::add_window | ( | const char * | name, |
int | weight ) |
Definition at line 551 of file tui-layout.c.
References m_splits, and name.
Referenced by initialize_layouts().
|
overridevirtual |
Implements tui_layout_base.
Definition at line 790 of file tui-layout.c.
References debug_tui, tui_layout_base::height, m_splits, m_vertical, size, TUI_CMD_WIN, tui_debug_print_size_info(), tui_debug_printf, tui_debug_weights_to_string(), TUI_SCOPED_DEBUG_ENTER_EXIT, tui_layout_base::width, tui_layout_base::x, and tui_layout_base::y.
Referenced by set_size().
|
overridevirtual |
Implements tui_layout_base.
Definition at line 561 of file tui-layout.c.
References m_splits, m_vertical, tui_layout_split(), and tui_layout_split::split::weight.
Referenced by tui_set_layout().
tui_layout_split::DISABLE_COPY_AND_ASSIGN | ( | tui_layout_split | ) |
|
overridevirtual |
|
overrideprotectedvirtual |
Implements tui_layout_base.
Definition at line 576 of file tui-layout.c.
References tui_layout_base::height, m_splits, m_vertical, tui_debug_printf, and TUI_SCOPED_DEBUG_ENTER_EXIT.
|
inlineoverridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements tui_layout_base.
Definition at line 1099 of file tui-layout.c.
References m_splits, and m_vertical.
|
overridevirtual |
Implements tui_layout_base.
Definition at line 1041 of file tui-layout.c.
References CMD_NAME, m_splits, name, and STATUS_NAME.
|
overridevirtual |
Implements tui_layout_base.
Definition at line 1065 of file tui-layout.c.
|
inlineoverridevirtual |
Implements tui_layout_base.
Definition at line 238 of file tui-layout.h.
References name, and set_size().
|
private |
Definition at line 671 of file tui-layout.c.
References apply(), FOUND, HANDLED, tui_layout_base::height, m_splits, m_vertical, name, NOT_FOUND, set_weights_from_sizes(), tui_debug_printf, tui_debug_weights_to_string(), TUI_SCOPED_DEBUG_ENTER_EXIT, tui_layout_base::width, tui_layout_base::x, and tui_layout_base::y.
Referenced by set_height(), and set_width().
|
private |
Definition at line 629 of file tui-layout.c.
References m_splits, and m_vertical.
Referenced by set_size().
|
inlineoverridevirtual |
Implements tui_layout_base.
Definition at line 244 of file tui-layout.h.
References name, and set_size().
|
overridevirtual |
Implements tui_layout_base.
Definition at line 1074 of file tui-layout.c.
References gdb_printf(), gdb_puts(), m_splits, and m_vertical.
Referenced by add_layout_command().
|
staticprivate |
Definition at line 656 of file tui-layout.c.
References debug_tui, size, and tui_debug_printf.
Referenced by apply().
|
private |
Definition at line 639 of file tui-layout.c.
References m_splits.
Referenced by apply(), and set_size().
|
private |
Definition at line 322 of file tui-layout.h.
Referenced by add_split(), add_window(), apply(), clone(), first_edge_has_border_p(), get_sizes(), get_windows(), last_edge_has_border_p(), layout_fingerprint(), remove_windows(), replace_window(), set_size(), set_weights_from_sizes(), specification(), and tui_debug_weights_to_string().
|
private |
Definition at line 325 of file tui-layout.h.
Referenced by apply(), clone(), get_sizes(), layout_fingerprint(), set_size(), set_weights_from_sizes(), and specification().