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

Konsole

  • Konsole
  • ColorEntry
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
Konsole::ColorEntry Class Reference

#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

enum Konsole::ColorEntry::FontWeight

Specifies the weight to use when drawing text with this color.

Enumerator
Bold 

Always draw text in this color with a bold weight.

Normal 

Always draw text in this color with a normal weight.

UseCurrentFormat 

Use the current font weight set by the terminal application.

This is the default behavior.

Definition at line 44 of file CharacterColor.h.

Constructor & Destructor Documentation

Konsole::ColorEntry::ColorEntry ( QColor  c,
FontWeight  weight = UseCurrentFormat 
)
inlineexplicit

Constructs a new color palette entry.

Parameters
cThe color value for this entry.
weightSpecifies the font weight to use when drawing text with this color.

Definition at line 62 of file CharacterColor.h.

Konsole::ColorEntry::ColorEntry ( )
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

void Konsole::ColorEntry::operator= ( const ColorEntry &  rhs)
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

bool operator!= ( const ColorEntry &  a,
const ColorEntry &  b 
)
friend

Compares two color entries and returns true if they represent different color and font weight.

Definition at line 106 of file CharacterColor.h.

bool operator== ( const ColorEntry &  a,
const ColorEntry &  b 
)
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:
  • 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