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

KDEUI

kcolorutils.cpp File Reference

#include <kcolorutils.h>
#include "kcolorspaces.h"
#include "kcolorhelpers_p.h"
#include <QColor>
#include <QImage>
#include <math.h>

Include dependency graph for kcolorutils.cpp:

Go to the source code of this file.


Functions

qreal KColorUtils::contrastRatio (const QColor &, const QColor &)
QColor KColorUtils::darken (const QColor &, qreal amount=0.5, qreal chromaGain=1.0)
QColor KColorUtils::lighten (const QColor &, qreal amount=0.5, qreal chromaInverseGain=1.0)
qreal KColorUtils::luma (const QColor &)
QColor KColorUtils::mix (const QColor &c1, const QColor &c2, qreal bias=0.5)
static qreal mixQreal (qreal a, qreal b, qreal bias)
QColor KColorUtils::overlayColors (const QColor &base, const QColor &paint, QPainter::CompositionMode comp=QPainter::CompositionMode_SourceOver)
QColor KColorUtils::shade (const QColor &, qreal lumaAmount, qreal chromaAmount=0.0)
QColor KColorUtils::tint (const QColor &base, const QColor &color, qreal amount=0.3)
QColor tintHelper (const QColor &base, const QColor &color, qreal amount)

Function Documentation

static qreal mixQreal ( qreal  a,
qreal  b,
qreal  bias 
) [inline, static]

Definition at line 31 of file kcolorutils.cpp.

QColor tintHelper ( const QColor &  base,
const QColor &  color,
qreal  amount 
)

Definition at line 75 of file kcolorutils.cpp.

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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