Konsole
#include <CharacterColor.h>
Public Types | |
enum | FontWeight { Bold, Normal, UseCurrentFormat } |
Public Member Functions | |
ColorEntry (QColor c, FontWeight weight=UseCurrentFormat) | |
ColorEntry () | |
void | operator= (const ColorEntry &rhs) |
Public Attributes | |
QColor | color |
FontWeight | fontWeight |
Friends | |
bool | operator!= (const ColorEntry &a, const ColorEntry &b) |
bool | operator== (const ColorEntry &a, const ColorEntry &b) |
Detailed Description
An entry in a terminal display's color palette.
A color palette is an array of 16 ColorEntry instances which map system color indexes (from 0 to 15) into actual colors.
Each entry can be set as bold, in which case any text drawn using the color should be drawn in bold.
Definition at line 40 of file CharacterColor.h.
Member Enumeration Documentation
Specifies the weight to use when drawing text with this color.
Definition at line 44 of file CharacterColor.h.
Constructor & Destructor Documentation
|
inlineexplicit |
Constructs a new color palette entry.
- Parameters
-
c The color value for this entry. weight Specifies the font weight to use when drawing text with this color.
Definition at line 62 of file CharacterColor.h.
|
inline |
Constructs a new color palette entry with an undefined color, and with the bold flags set to false.
Definition at line 69 of file CharacterColor.h.
Member Function Documentation
|
inline |
Sets the color and boldness of this color to those of rhs
.
Definition at line 74 of file CharacterColor.h.
Friends And Related Function Documentation
|
friend |
Compares two color entries and returns true if they represent different color and font weight.
Definition at line 106 of file CharacterColor.h.
|
friend |
Compares two color entries and returns true if they represent the same color and font weight.
Definition at line 100 of file CharacterColor.h.
Member Data Documentation
QColor Konsole::ColorEntry::color |
The color value of this entry for display.
Definition at line 80 of file CharacterColor.h.
FontWeight Konsole::ColorEntry::fontWeight |
Specifies the font weight to use when drawing text with this color.
This is not applicable when the color is used to draw a character's background.
Definition at line 86 of file CharacterColor.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.