GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Functions | Variables
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

#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

Definition at line 93 of file CharacterColor.h.

#define TABLE_COLORS   (INTENSITIES*BASE_COLORS)

Function Documentation

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().

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

Definition at line 247 of file CharacterColor.h.

References operator==().

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

Variable Documentation

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().