|
GDB (xrefs)
|
#include "ui-style.h"
Classes | |
| class | color |
Public Types | |
| enum | basic_color { NONE = -1 , BLACK , RED , GREEN , YELLOW , BLUE , MAGENTA , CYAN , WHITE } |
| enum | intensity { NORMAL = 0 , BOLD , DIM } |
Public Member Functions | |
| ui_file_style ()=default | |
| ui_file_style (color f, color b, intensity i=NORMAL) | |
| bool | operator== (const ui_file_style &other) const |
| bool | operator!= (const ui_file_style &other) const |
| std::string | to_ansi () const |
| bool | is_default () const |
| bool | is_reverse () const |
| void | set_reverse (bool reverse) |
| const color & | get_foreground () const |
| void | set_fg (color c) |
| const color & | get_background () const |
| void | set_bg (color c) |
| intensity | get_intensity () const |
| bool | parse (const char *buf, size_t *n_read) |
| const ui_file_style * | ptr () const |
Private Attributes | |
| color | m_foreground = NONE |
| color | m_background = NONE |
| intensity | m_intensity = NORMAL |
| bool | m_reverse = false |
Definition at line 23 of file ui-style.h.
| Enumerator | |
|---|---|
| NONE | |
| BLACK | |
| RED | |
| GREEN | |
| YELLOW | |
| BLUE | |
| MAGENTA | |
| CYAN | |
| WHITE | |
Definition at line 27 of file ui-style.h.
| Enumerator | |
|---|---|
| NORMAL | |
| BOLD | |
| DIM | |
Definition at line 140 of file ui-style.h.
|
default |
Referenced by parse().
Definition at line 149 of file ui-style.h.
|
inline |
Definition at line 208 of file ui-style.h.
References m_background.
|
inline |
Definition at line 196 of file ui-style.h.
References m_foreground.
|
inline |
Definition at line 220 of file ui-style.h.
References m_intensity.
|
inline |
Definition at line 174 of file ui-style.h.
References m_background, m_foreground, m_intensity, m_reverse, NONE, and NORMAL.
|
inline |
Definition at line 184 of file ui-style.h.
References m_reverse.
|
inline |
Definition at line 164 of file ui-style.h.
|
inline |
Definition at line 156 of file ui-style.h.
References m_background, m_foreground, m_intensity, and m_reverse.
| bool ui_file_style::parse | ( | const char * | buf, |
| size_t * | n_read | ||
| ) |
Definition at line 232 of file ui-style.c.
References ansi_regex, BOLD, DATA_SUBEXP, DIM, extended_color(), FINAL_SUBEXP, m_background, m_foreground, m_intensity, m_reverse, NORMAL, NUM_SUBEXPRESSIONS, and ui_file_style().
|
inline |
Definition at line 233 of file ui-style.h.
Referenced by c_type_print_base_1(), c_type_print_base_struct_union(), do_one_display(), rust_language::print_enum(), pascal_language::printstr(), printstr(), fortran_array_printer_impl::process_dimension(), fortran_array_printer_impl::process_element(), user_select_syms(), val_print_packed_array_elements(), and value_print_array_elements().
|
inline |
Definition at line 214 of file ui-style.h.
References m_background.
|
inline |
Definition at line 202 of file ui-style.h.
References m_foreground.
|
inline |
Definition at line 190 of file ui-style.h.
References m_reverse.
| std::string ui_file_style::to_ansi | ( | ) | const |
Definition at line 140 of file ui-style.c.
References ui_file_style::color::append_ansi(), ui_file_style::color::is_none(), m_background, m_foreground, m_intensity, m_reverse, and NORMAL.
Referenced by ui_file::emit_style_escape(), ui_file::reset_style(), and pager_file::reset_style().
Definition at line 241 of file ui-style.h.
Referenced by get_background(), is_default(), operator==(), parse(), set_bg(), and to_ansi().
Definition at line 240 of file ui-style.h.
Referenced by get_foreground(), is_default(), operator==(), parse(), set_fg(), and to_ansi().
Definition at line 242 of file ui-style.h.
Referenced by get_intensity(), is_default(), operator==(), parse(), and to_ansi().
|
private |
Definition at line 243 of file ui-style.h.
Referenced by is_default(), is_reverse(), operator==(), parse(), set_reverse(), and to_ansi().