GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ui_file_style::color Class Reference

#include "ui-style.h"

Public Member Functions

 color (basic_color c)
 
 color (int c)
 
 color (uint8_t r, uint8_t g, uint8_t b)
 
bool operator== (const color &other) const
 
bool operator< (const color &other) const
 
bool is_none () const
 
bool is_basic () const
 
int get_value () const
 
void get_rgb (uint8_t *rgb) const
 
bool append_ansi (bool is_fg, std::string *str) const
 

Private Attributes

bool m_simple
 
union { 
 
   int   m_value 
 
   struct { 
 
      uint8_t   m_red 
 
      uint8_t   m_green 
 
      uint8_t   m_blue 
 
   }  
 
};  
 

Detailed Description

Definition at line 41 of file ui-style.h.

Constructor & Destructor Documentation

◆ color() [1/3]

ui_file_style::color::color ( basic_color c)
inline

Definition at line 45 of file ui-style.h.

◆ color() [2/3]

ui_file_style::color::color ( int c)
inline

Definition at line 51 of file ui-style.h.

◆ color() [3/3]

ui_file_style::color::color ( uint8_t r,
uint8_t g,
uint8_t b )
inline

Definition at line 58 of file ui-style.h.

Member Function Documentation

◆ append_ansi()

bool ui_file_style::color::append_ansi ( bool is_fg,
std::string * str ) const

Definition at line 68 of file ui-style.c.

References ui_file_style::BLACK, m_blue, m_green, m_red, m_simple, m_value, and ui_file_style::WHITE.

Referenced by ui_file_style::to_ansi().

◆ get_rgb()

void ui_file_style::color::get_rgb ( uint8_t * rgb) const

Definition at line 97 of file ui-style.c.

References bright_colors.

Referenced by get_color(), and rgb_to_16colors().

◆ get_value()

int ui_file_style::color::get_value ( ) const
inline

Definition at line 108 of file ui-style.h.

References is_basic(), and m_value.

Referenced by gdb_console_fputs(), and get_color().

◆ is_basic()

bool ui_file_style::color::is_basic ( ) const
inline

Definition at line 102 of file ui-style.h.

References ui_file_style::BLACK, m_simple, m_value, and ui_file_style::WHITE.

Referenced by gdb_console_fputs(), get_color(), and get_value().

◆ is_none()

bool ui_file_style::color::is_none ( ) const
inline

Definition at line 95 of file ui-style.h.

References m_simple, m_value, and ui_file_style::NONE.

Referenced by gdb_console_fputs(), get_color(), ui_file_style::to_ansi(), and tui_apply_style().

◆ operator<()

bool ui_file_style::color::operator< ( const color & other) const
inline

Definition at line 76 of file ui-style.h.

References m_blue, m_green, m_red, m_simple, and m_value.

◆ operator==()

bool ui_file_style::color::operator== ( const color & other) const
inline

Definition at line 66 of file ui-style.h.

References m_blue, m_green, m_red, m_simple, and m_value.

Member Data Documentation

◆ [union]

union { ... } ui_file_style::color

◆ m_blue

uint8_t ui_file_style::color::m_blue

Definition at line 134 of file ui-style.h.

Referenced by append_ansi(), operator<(), and operator==().

◆ m_green

uint8_t ui_file_style::color::m_green

Definition at line 134 of file ui-style.h.

Referenced by append_ansi(), operator<(), and operator==().

◆ m_red

uint8_t ui_file_style::color::m_red

Definition at line 134 of file ui-style.h.

Referenced by append_ansi(), operator<(), and operator==().

◆ m_simple

bool ui_file_style::color::m_simple
private

Definition at line 128 of file ui-style.h.

Referenced by append_ansi(), is_basic(), is_none(), operator<(), and operator==().

◆ m_value

int ui_file_style::color::m_value

Definition at line 131 of file ui-style.h.

Referenced by append_ansi(), get_value(), is_basic(), is_none(), operator<(), and operator==().


The documentation for this class was generated from the following files: