• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Public Member Functions | Protected Attributes | List of all members
KColor Class Reference

#include <kcolordialog.h>

Inherits TQColor.

Public Member Functions

 KColor (const KColor &col)
 
 KColor (const TQColor &col)
 
KColor & operator= (const KColor &col)
 
bool operator== (const KColor &col) const
 
void setHsv (int _h, int _s, int _v)
 
void setRgb (int _r, int _g, int _b)
 
void rgb (int *_r, int *_g, int *_b) const
 
void hsv (int *_h, int *_s, int *_v) const
 

Protected Attributes

int h
 
int s
 
int v
 
int r
 
int g
 
int b
 

Detailed Description

A color class that preserves both RGB and HSV values.

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

Author
Waldo Bastian basti.nosp@m.an@k.nosp@m.de.or.nosp@m.g

Definition at line 164 of file kcolordialog.h.

Constructor & Destructor Documentation

◆ KColor() [1/3]

KColor::KColor ( )

Definition at line 119 of file kcolordialog.cpp.

◆ KColor() [2/3]

KColor::KColor ( const KColor &  col)

Definition at line 125 of file kcolordialog.cpp.

◆ KColor() [3/3]

KColor::KColor ( const TQColor &  col)

Definition at line 132 of file kcolordialog.cpp.

Member Function Documentation

◆ hsv()

void KColor::hsv ( int *  _h,
int *  _s,
int *  _v 
) const

Definition at line 176 of file kcolordialog.cpp.

◆ operator=()

KColor & KColor::operator= ( const KColor &  col)

Definition at line 145 of file kcolordialog.cpp.

◆ operator==()

bool KColor::operator== ( const KColor &  col) const

Definition at line 139 of file kcolordialog.cpp.

◆ rgb()

void KColor::rgb ( int *  _r,
int *  _g,
int *  _b 
) const

Definition at line 170 of file kcolordialog.cpp.

◆ setHsv()

void KColor::setHsv ( int  _h,
int  _s,
int  _v 
)

Definition at line 154 of file kcolordialog.cpp.

◆ setRgb()

void KColor::setRgb ( int  _r,
int  _g,
int  _b 
)

Definition at line 162 of file kcolordialog.cpp.

Member Data Documentation

◆ b

int KColor::b
protected

Definition at line 186 of file kcolordialog.h.

◆ g

int KColor::g
protected

Definition at line 185 of file kcolordialog.h.

◆ h

int KColor::h
protected

Definition at line 181 of file kcolordialog.h.

◆ r

int KColor::r
protected

Definition at line 184 of file kcolordialog.h.

◆ s

int KColor::s
protected

Definition at line 182 of file kcolordialog.h.

◆ v

int KColor::v
protected

Definition at line 183 of file kcolordialog.h.


The documentation for this class was generated from the following files:
  • kcolordialog.h
  • kcolordialog.cpp

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.