GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
ui_file_style Struct Reference

#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 colorget_foreground () const
 
void set_fg (color c)
 
const colorget_background () const
 
void set_bg (color c)
 
intensity get_intensity () const
 
bool parse (const char *buf, size_t *n_read)
 
const ui_file_styleptr () const
 

Private Attributes

color m_foreground = NONE
 
color m_background = NONE
 
intensity m_intensity = NORMAL
 
bool m_reverse = false
 

Detailed Description

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

Member Enumeration Documentation

◆ basic_color

Enumerator
NONE 
BLACK 
RED 
GREEN 
YELLOW 
BLUE 
MAGENTA 
CYAN 
WHITE 

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

◆ intensity

Enumerator
NORMAL 
BOLD 
DIM 

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

Constructor & Destructor Documentation

◆ ui_file_style() [1/2]

ui_file_style::ui_file_style ( )
default

Referenced by parse().

◆ ui_file_style() [2/2]

ui_file_style::ui_file_style ( color f,
color b,
intensity i = NORMAL )
inline

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

Member Function Documentation

◆ get_background()

const color & ui_file_style::get_background ( ) const
inline

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

References m_background.

◆ get_foreground()

const color & ui_file_style::get_foreground ( ) const
inline

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

References m_foreground.

◆ get_intensity()

intensity ui_file_style::get_intensity ( ) const
inline

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

References m_intensity.

◆ is_default()

bool ui_file_style::is_default ( ) const
inline

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

References m_background, m_foreground, m_intensity, m_reverse, NONE, and NORMAL.

◆ is_reverse()

bool ui_file_style::is_reverse ( ) const
inline

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

References m_reverse.

◆ operator!=()

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

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

◆ operator==()

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

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

References m_background, m_foreground, m_intensity, and m_reverse.

◆ parse()

bool ui_file_style::parse ( const char * buf,
size_t * n_read )

◆ ptr()

const ui_file_style * ui_file_style::ptr ( ) const
inline

◆ set_bg()

void ui_file_style::set_bg ( color c)
inline

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

References m_background.

◆ set_fg()

void ui_file_style::set_fg ( color c)
inline

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

References m_foreground.

◆ set_reverse()

void ui_file_style::set_reverse ( bool reverse)
inline

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

References m_reverse.

◆ to_ansi()

std::string ui_file_style::to_ansi ( ) const

Member Data Documentation

◆ m_background

color ui_file_style::m_background = NONE
private

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

Referenced by get_background(), is_default(), operator==(), parse(), set_bg(), and to_ansi().

◆ m_foreground

color ui_file_style::m_foreground = NONE
private

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

Referenced by get_foreground(), is_default(), operator==(), parse(), set_fg(), and to_ansi().

◆ m_intensity

intensity ui_file_style::m_intensity = NORMAL
private

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

Referenced by get_intensity(), is_default(), operator==(), parse(), and to_ansi().

◆ m_reverse

bool ui_file_style::m_reverse = false
private

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

Referenced by is_default(), is_reverse(), operator==(), parse(), set_reverse(), and to_ansi().


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