• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

Konsole::CharacterColor

Konsole::CharacterColor Class Reference

Describes the color of a single character in the terminal. More...

#include <CharacterColor.h>

List of all members.


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)

Detailed Description

Describes the color of a single character in the terminal.

Definition at line 147 of file CharacterColor.h.


Constructor & Destructor Documentation

Konsole::CharacterColor::CharacterColor (  )  [inline]

Constructs a new CharacterColor whoose color and color space are undefined.

Definition at line 153 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 170 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 270 of file CharacterColor.h.

bool Konsole::CharacterColor::isValid (  )  [inline]

Returns true if this character color entry is valid.

Definition at line 201 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 286 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 250 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 243 of file CharacterColor.h.


The documentation for this class was generated from the following file:
  • CharacterColor.h

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal