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

KHTML

Color.cpp File Reference

#include "config.h"
#include "wtf/Platform.h"
#include "Color.h"
#include "PlatformString.h"
#include <math.h>
#include <wtf/Assertions.h>
#include <wtf/MathExtras.h>

Include dependency graph for Color.cpp:

Go to the source code of this file.


Namespaces

namespace  WebCore

Defines

#define max(a, b)   (((a)>(b)?(a):(b)))
#define min(a, b)   (((a)<(b)?(a):(b)))

Functions

static int WebCore::blendComponent (int c, int a)
static double WebCore::calcHue (double temp1, double temp2, double hueVal)
int WebCore::differenceSquared (const Color &c1, const Color &c2)
RGBA32 WebCore::makeRGB (int r, int g, int b)
RGBA32 WebCore::makeRGBA (int r, int g, int b, int a)
RGBA32 WebCore::makeRGBAFromHSLA (double hue, double saturation, double lightness, double alpha)

Variables

const int WebCore::cAlphaIncrement = 17
const int WebCore::cEndAlpha = 204
const int WebCore::cStartAlpha = 153
const RGBA32 WebCore::darkenedWhite = 0xFFABABAB
const RGBA32 WebCore::lightenedBlack = 0xFF545454

Define Documentation

#define max ( a,
b   )     (((a)>(b)?(a):(b)))

Definition at line 47 of file Color.cpp.

#define min ( a,
b   )     (((a)<(b)?(a):(b)))

Definition at line 46 of file Color.cpp.

KHTML

Skip menu "KHTML"
  • Main Page
  • 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
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs 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