GNU Octave  4.4.1
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)

◆ COLOR_SPACE_256

#define COLOR_SPACE_256   3

◆ COLOR_SPACE_DEFAULT

◆ COLOR_SPACE_RGB

#define COLOR_SPACE_RGB   4

◆ COLOR_SPACE_SYSTEM

◆ COLOR_SPACE_UNDEFINED

#define COLOR_SPACE_UNDEFINED   0

◆ DEFAULT_BACK_COLOR

◆ DEFAULT_FORE_COLOR

◆ INTENSITIES

#define INTENSITIES   2

Definition at line 93 of file CharacterColor.h.

◆ TABLE_COLORS

Function Documentation

◆ color256()

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

Definition at line 252 of file CharacterColor.h.

References BASE_COLORS, ColorEntry::color, and u.

Referenced by CharacterColor::color().

◆ operator!=()

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

Definition at line 247 of file CharacterColor.h.

References a, b, and operator==().

◆ operator==()

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

Definition at line 239 of file CharacterColor.h.

References a, and b.

Referenced by operator!=().

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&#39;s color palette.

Definition at line 102 of file CharacterColor.h.

Referenced by TerminalView::TerminalView().