GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
CharacterColor.h File Reference
#include <QColor>
Include dependency graph for CharacterColor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CharacterColor
 Describes the color of a single character in the terminal. More...
 
class  ColorEntry
 An entry in a terminal display's color palette. More...
 

Macros

#define BASE_COLORS   (2+8)
 
#define COLOR_SPACE_256   3
 
#define COLOR_SPACE_DEFAULT   1
 
#define COLOR_SPACE_RGB   4
 
#define COLOR_SPACE_SYSTEM   2
 
#define COLOR_SPACE_UNDEFINED   0
 
#define DEFAULT_BACK_COLOR   1
 
#define DEFAULT_FORE_COLOR   0
 
#define INTENSITIES   2
 
#define TABLE_COLORS   (INTENSITIES*BASE_COLORS)
 

Functions

const QColor color256 (quint8 u, const ColorEntry *base)
 
bool operator!= (const CharacterColor &a, const CharacterColor &b)
 
bool operator== (const CharacterColor &a, const CharacterColor &b)
 

Variables

static const ColorEntry base_color_table [(2 *(2+8))]
 

Macro Definition Documentation

◆ BASE_COLORS

#define BASE_COLORS   (2+8)

Definition at line 92 of file CharacterColor.h.

◆ COLOR_SPACE_256

#define COLOR_SPACE_256   3

Definition at line 137 of file CharacterColor.h.

◆ COLOR_SPACE_DEFAULT

#define COLOR_SPACE_DEFAULT   1

Definition at line 135 of file CharacterColor.h.

◆ COLOR_SPACE_RGB

#define COLOR_SPACE_RGB   4

Definition at line 138 of file CharacterColor.h.

◆ COLOR_SPACE_SYSTEM

#define COLOR_SPACE_SYSTEM   2

Definition at line 136 of file CharacterColor.h.

◆ COLOR_SPACE_UNDEFINED

#define COLOR_SPACE_UNDEFINED   0

Definition at line 134 of file CharacterColor.h.

◆ DEFAULT_BACK_COLOR

#define DEFAULT_BACK_COLOR   1

Definition at line 97 of file CharacterColor.h.

◆ DEFAULT_FORE_COLOR

#define DEFAULT_FORE_COLOR   0

Definition at line 96 of file CharacterColor.h.

◆ INTENSITIES

#define INTENSITIES   2

Definition at line 93 of file CharacterColor.h.

◆ TABLE_COLORS

#define TABLE_COLORS   (INTENSITIES*BASE_COLORS)

Definition at line 94 of file CharacterColor.h.

Function Documentation

◆ color256()

const QColor color256 ( quint8  u,
const ColorEntry base 
)
inline

Definition at line 252 of file CharacterColor.h.

References BASE_COLORS, and ColorEntry::color.

Referenced by CharacterColor::color().

◆ operator!=()

bool operator!= ( const CharacterColor a,
const CharacterColor b 
)
inline

Definition at line 247 of file CharacterColor.h.

◆ operator==()

bool operator== ( const CharacterColor a,
const CharacterColor b 
)
inline

Definition at line 239 of file CharacterColor.h.

Variable Documentation

◆ base_color_table

const ColorEntry base_color_table[(2 *(2+8))]
static
Initial value:
=
{
ColorEntry(QColor(0x00,0x00,0x00), 1, 0 ), ColorEntry( QColor(0xFF,0xFF,0xFF), 0, 0 ),
ColorEntry(QColor(0x00,0x00,0x00), 0, 0 ), ColorEntry( QColor(0xB2,0x18,0x18), 0, 0 ),
ColorEntry(QColor(0x18,0xB2,0x18), 0, 0 ), ColorEntry( QColor(0xB2,0x68,0x18), 0, 0 ),
ColorEntry(QColor(0x18,0x18,0xB2), 0, 0 ), ColorEntry( QColor(0xB2,0x18,0xB2), 0, 0 ),
ColorEntry(QColor(0x18,0xB2,0xB2), 0, 0 ), ColorEntry( QColor(0xB2,0xB2,0xB2), 0, 0 ),
ColorEntry(QColor(0x00,0x00,0x00), 0, 1 ), ColorEntry( QColor(0xFF,0xFF,0xFF), 1, 0 ),
ColorEntry(QColor(0x68,0x68,0x68), 0, 0 ), ColorEntry( QColor(0xFF,0x54,0x54), 0, 0 ),
ColorEntry(QColor(0x54,0xFF,0x54), 0, 0 ), ColorEntry( QColor(0xFF,0xFF,0x54), 0, 0 ),
ColorEntry(QColor(0x54,0x54,0xFF), 0, 0 ), ColorEntry( QColor(0xFF,0x54,0xFF), 0, 0 ),
ColorEntry(QColor(0x54,0xFF,0xFF), 0, 0 ), ColorEntry( QColor(0xFF,0xFF,0xFF), 0, 0 )
}
An entry in a terminal display's color palette.

Definition at line 102 of file CharacterColor.h.

Referenced by TerminalView::TerminalView().