\section{KColor Class Reference}
\label{classKColor}\index{KColor@{KColor}}
A color class that preserves both RGB and HSV values.  


{\tt \#include $<$kcolordialog.h$>$}

Inheritance diagram for KColor:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=42pt]{classKColor__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KColor:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=42pt]{classKColor__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KColor} (const {\bf KColor} \&col)\label{classKColor_a1}

\item 
{\bf KColor} (const {\bf QColor} \&col)\label{classKColor_a2}

\item 
{\bf KColor} \& {\bf operator=} (const {\bf KColor} \&col)\label{classKColor_a3}

\item 
bool {\bf operator==} (const {\bf KColor} \&col) const \label{classKColor_a4}

\item 
void {\bf set\-Hsv} (int \_\-h, int \_\-s, int \_\-v)\label{classKColor_a5}

\item 
void {\bf set\-Rgb} (int \_\-r, int \_\-g, int \_\-b)\label{classKColor_a6}

\item 
void {\bf rgb} (int $\ast$\_\-r, int $\ast$\_\-g, int $\ast$\_\-b) const \label{classKColor_a7}

\item 
void {\bf hsv} (int $\ast$\_\-h, int $\ast$\_\-s, int $\ast$\_\-v) const \label{classKColor_a8}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
int {\bf h}\label{classKColor_p0}

\item 
int {\bf s}\label{classKColor_p1}

\item 
int {\bf v}\label{classKColor_p2}

\item 
int {\bf r}\label{classKColor_p3}

\item 
int {\bf g}\label{classKColor_p4}

\item 
int {\bf b}\label{classKColor_p5}

\end{CompactItemize}


\subsection{Detailed Description}
A color class that preserves both RGB and HSV values. 

This is unlike {\bf QColor} which only preserves RGB values and recalculates HSV values. The {\bf QColor} behavior leads to an accumulation of rounding errors when working in the HSV color space.

\begin{Desc}
\item[Author:]Waldo Bastian $<${\tt bastian@kde.org}$>$ \end{Desc}




Definition at line 164 of file kcolordialog.h.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kcolordialog.h\item 
kcolordialog.cpp\end{CompactItemize}
