• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • Konsole
  • CharacterColor
Public Member Functions | Friends | List of all members
Konsole::CharacterColor Class Reference

#include <CharacterColor.h>

Public Member Functions

 CharacterColor ()
 
 CharacterColor (quint8 colorSpace, int co)
 
QColor color (const ColorEntry *palette) const
 
bool isValid () const
 
void setIntensive ()
 

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 whose 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 palette.

The palette is only used if this color is one of the 16 system colors, otherwise it is ignored.

Definition at line 277 of file CharacterColor.h.

bool Konsole::CharacterColor::isValid ( ) const
inline

Returns true if this character color entry is valid.

Definition at line 199 of file CharacterColor.h.

void Konsole::CharacterColor::setIntensive ( )
inline

Set this color as an 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 297 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 246 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 239 of file CharacterColor.h.


The documentation for this class was generated from the following file:
  • CharacterColor.h
This file is part of the KDE documentation.
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.

Konsole

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal