Konsole
Konsole::CharacterColor Class Reference
#include <CharacterColor.h>
Detailed Description
Describes the color of a single character in the terminal.Definition at line 132 of file CharacterColor.h.
Public Member Functions | |
CharacterColor (quint8 colorSpace, int co) | |
CharacterColor () | |
QColor | color (const ColorEntry *palette) const |
bool | isValid () |
void | toggleIntensive () |
Friends | |
bool | operator!= (const CharacterColor &a, const CharacterColor &b) |
bool | operator== (const CharacterColor &a, const CharacterColor &b) |
Constructor & Destructor Documentation
Konsole::CharacterColor::CharacterColor | ( | ) | [inline] |
Constructs a new CharacterColor whoose color and color space are undefined.
Definition at line 138 of file CharacterColor.h.
Konsole::CharacterColor::CharacterColor | ( | quint8 | colorSpace, | |
int | co | |||
) | [inline] |
Constructs a new CharacterColor using the specified colorSpace
and with color value co
.
The meaning of co
depends on the colorSpace
used.
TODO : Document how co
relates to colorSpace
TODO : Add documentation about available color spaces.
Definition at line 155 of file CharacterColor.h.
Member Function Documentation
QColor Konsole::CharacterColor::color | ( | const ColorEntry * | palette | ) | const [inline] |
Returns the color within the specified color .
The palette
is only used if this color is one of the 16 system colors, otherwise it is ignored.
Definition at line 255 of file CharacterColor.h.
bool Konsole::CharacterColor::isValid | ( | ) | [inline] |
Returns true if this character color entry is valid.
Definition at line 186 of file CharacterColor.h.
void Konsole::CharacterColor::toggleIntensive | ( | ) | [inline] |
Toggles the value of this color between a normal system color and the corresponding intensive system color.
This is only applicable if the color is using the COLOR_SPACE_DEFAULT or COLOR_SPACE_SYSTEM color spaces.
Definition at line 271 of file CharacterColor.h.
Friends And Related Function Documentation
bool operator!= | ( | const CharacterColor & | a, | |
const CharacterColor & | b | |||
) | [friend] |
Compares two colors and returns true if they represent different color values or use different color spaces.
Definition at line 235 of file CharacterColor.h.
bool operator== | ( | const CharacterColor & | a, | |
const CharacterColor & | b | |||
) | [friend] |
Compares two colors and returns true if they represent the same color value and use the same color space.
Definition at line 228 of file CharacterColor.h.
The documentation for this class was generated from the following file: