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

KDEUI

Public Member Functions | Protected Member Functions | Properties

KColorValueSelector Class Reference

#include <kcolorvalueselector.h>

Inheritance diagram for KColorValueSelector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KColorValueSelector (QWidget *parent=0)
 KColorValueSelector (Qt::Orientation o, QWidget *parent=0)
 ~KColorValueSelector ()
KColorChooserMode chooserMode () const
int colorValue () const
int hue () const
int saturation () const
void setChooserMode (KColorChooserMode chooserMode)
void setColorValue (int colorValue)
void setHue (int hue)
void setSaturation (int saturation)
void updateContents ()

Protected Member Functions

virtual void drawContents (QPainter *painter)
virtual void drawPalette (QPixmap *pixmap)
virtual void resizeEvent (QResizeEvent *)

Properties

int colorValue
int hue
int saturation

Detailed Description

Definition at line 28 of file kcolorvalueselector.h.


Constructor & Destructor Documentation

KColorValueSelector::KColorValueSelector ( QWidget *  parent = 0) [explicit]

Constructs a widget for color selection.

Definition at line 41 of file kcolorvalueselector.cpp.

KColorValueSelector::KColorValueSelector ( Qt::Orientation  o,
QWidget *  parent = 0 
) [explicit]

Constructs a widget for color selection with a given orientation.

Definition at line 47 of file kcolorvalueselector.cpp.

KColorValueSelector::~KColorValueSelector ( )

Definition at line 53 of file kcolorvalueselector.cpp.


Member Function Documentation

KColorChooserMode KColorValueSelector::chooserMode ( ) const

Returns the current chooser mode.

Returns:
The chooser mode (one of the KColorChooserMode constants)

Definition at line 118 of file kcolorvalueselector.cpp.

int KColorValueSelector::colorValue ( ) const

Returns the current color value.

Returns:
The color value (0-255)
void KColorValueSelector::drawContents ( QPainter *  painter) [protected, virtual]

Reimplemented from KSelector.

The drawing is buffered in a pixmap here. As real drawing routine, drawPalette() is used.

Reimplemented from KSelector.

Definition at line 100 of file kcolorvalueselector.cpp.

void KColorValueSelector::drawPalette ( QPixmap *  pixmap) [protected, virtual]

Draws the contents of the widget on a pixmap, which is used for buffering.

Definition at line 123 of file kcolorvalueselector.cpp.

int KColorValueSelector::hue ( ) const

Returns the current hue value.

Returns:
The hue value (0-359)
void KColorValueSelector::resizeEvent ( QResizeEvent *  ) [protected, virtual]

Definition at line 95 of file kcolorvalueselector.cpp.

int KColorValueSelector::saturation ( ) const

Returns the current saturation value.

Returns:
The saturation value (0-255)
void KColorValueSelector::setChooserMode ( KColorChooserMode  chooserMode)

Sets the chooser mode.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters:
chooserModeSets the chooser mode (one of the KColorChooserMode constants)

Definition at line 105 of file kcolorvalueselector.cpp.

void KColorValueSelector::setColorValue ( int  colorValue)

Sets the color value.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters:
colorValueSets the color value (0-255)

Definition at line 83 of file kcolorvalueselector.cpp.

void KColorValueSelector::setHue ( int  hue)

Sets the hue value.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters:
hueSets the hue value (0-359)

Definition at line 63 of file kcolorvalueselector.cpp.

void KColorValueSelector::setSaturation ( int  saturation)

Sets the saturation value.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters:
saturationSets the saturation value (0-255)

Definition at line 73 of file kcolorvalueselector.cpp.

void KColorValueSelector::updateContents ( )

Updates the widget's contents.

Definition at line 90 of file kcolorvalueselector.cpp.


Property Documentation

int KColorValueSelector::colorValue [read, write]

Definition at line 33 of file kcolorvalueselector.h.

int KColorValueSelector::hue [read, write]

Definition at line 31 of file kcolorvalueselector.h.

int KColorValueSelector::saturation [read, write]

Definition at line 32 of file kcolorvalueselector.h.


The documentation for this class was generated from the following files:
  • kcolorvalueselector.h
  • kcolorvalueselector.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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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