KDEUI
KHueSaturationSelector Class Reference
#include <khuesaturationselect.h>

Detailed Description
Definition at line 28 of file khuesaturationselect.h.
Public Member Functions | |
KColorChooserMode | chooserMode () const |
int | colorValue () const |
int | hue () const |
KHueSaturationSelector (QWidget *parent=0) | |
int | saturation () const |
void | setChooserMode (KColorChooserMode chooserMode) |
void | setColorValue (int colorValue) |
void | setHue (int hue) |
void | setSaturation (int saturation) |
void | updateContents () |
~KHueSaturationSelector () | |
Protected Member Functions | |
virtual void | drawContents (QPainter *painter) |
virtual void | drawPalette (QPixmap *pixmap) |
virtual void | resizeEvent (QResizeEvent *) |
Constructor & Destructor Documentation
KHueSaturationSelector::KHueSaturationSelector | ( | QWidget * | parent = 0 |
) | [explicit] |
Constructs a hue/saturation selection widget.
Definition at line 81 of file khuesaturationselect.cpp.
KHueSaturationSelector::~KHueSaturationSelector | ( | ) |
Member Function Documentation
KColorChooserMode KHueSaturationSelector::chooserMode | ( | ) | const |
Returns the chooser mode.
- Returns:
- The chooser mode (defined in KColorChooserMode)
Definition at line 88 of file khuesaturationselect.cpp.
int KHueSaturationSelector::colorValue | ( | ) | const |
Returns the color value (also known as lumniousity, 0-255).
- Returns:
- The color value (0-255)
Definition at line 133 of file khuesaturationselect.cpp.
void KHueSaturationSelector::drawContents | ( | QPainter * | painter | ) | [protected, virtual] |
Reimplemented from KXYSelector.
This drawing is buffered in a pixmap here. As real drawing routine, drawPalette() is used.
Reimplemented from KXYSelector.
Definition at line 158 of file khuesaturationselect.cpp.
void KHueSaturationSelector::drawPalette | ( | QPixmap * | pixmap | ) | [protected, virtual] |
Draws the contents of the widget on a pixmap, which is used for buffering.
Definition at line 163 of file khuesaturationselect.cpp.
int KHueSaturationSelector::hue | ( | ) | const |
Returns the hue value.
- Returns:
- The hue value (0-360)
Definition at line 112 of file khuesaturationselect.cpp.
void KHueSaturationSelector::resizeEvent | ( | QResizeEvent * | ) | [protected, virtual] |
int KHueSaturationSelector::saturation | ( | ) | const |
Returns the saturation (0-255).
- Returns:
- The saturation (0-255)
Definition at line 122 of file khuesaturationselect.cpp.
void KHueSaturationSelector::setChooserMode | ( | KColorChooserMode | chooserMode | ) |
Sets the chooser mode.
The allowed modes are defined in KColorChooserMode.
- Parameters:
-
The chooser mode as defined in KColorChooserMode
Definition at line 93 of file khuesaturationselect.cpp.
void KHueSaturationSelector::setColorValue | ( | int | colorValue | ) |
Sets the color value (0-255).
- Parameters:
-
colorValue The color value (0-255)
Definition at line 138 of file khuesaturationselect.cpp.
void KHueSaturationSelector::setHue | ( | int | hue | ) |
Sets the hue value (0-360).
- Parameters:
-
hue The hue value (0-360)
Definition at line 117 of file khuesaturationselect.cpp.
void KHueSaturationSelector::setSaturation | ( | int | saturation | ) |
Sets the saturation (0-255).
- Parameters:
-
saturation The saturation (0-255)
Definition at line 128 of file khuesaturationselect.cpp.
void KHueSaturationSelector::updateContents | ( | ) |
The documentation for this class was generated from the following files: