KDEUI
#include <khuesaturationselect.h>
Public Member Functions | |
KHueSaturationSelector (QWidget *parent=0) | |
~KHueSaturationSelector () | |
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 () |
Public Member Functions inherited from KXYSelector | |
KXYSelector (QWidget *parent=0) | |
~KXYSelector () | |
QRect | contentsRect () const |
virtual QSize | minimumSizeHint () const |
void | setMarkerColor (const QColor &col) |
void | setRange (int minX, int minY, int maxX, int maxY) |
void | setValues (int xPos, int yPos) |
void | setXValue (int xPos) |
void | setYValue (int yPos) |
int | xValue () const |
int | yValue () const |
Protected Member Functions | |
virtual void | drawContents (QPainter *painter) |
virtual void | drawPalette (QPixmap *pixmap) |
virtual void | resizeEvent (QResizeEvent *) |
Protected Member Functions inherited from KXYSelector | |
virtual void | drawMarker (QPainter *p, int xp, int yp) |
virtual void | mouseMoveEvent (QMouseEvent *e) |
virtual void | mousePressEvent (QMouseEvent *e) |
virtual void | paintEvent (QPaintEvent *e) |
void | valuesFromPosition (int x, int y, int &xVal, int &yVal) const |
virtual void | wheelEvent (QWheelEvent *) |
Additional Inherited Members | |
Signals inherited from KXYSelector | |
void | valueChanged (int x, int y) |
Properties inherited from KXYSelector | |
int | xValue |
int | yValue |
Detailed Description
Definition at line 28 of file khuesaturationselect.h.
Constructor & Destructor Documentation
|
explicit |
Constructs a hue/saturation selection widget.
Definition at line 49 of file khuesaturationselect.cpp.
KHueSaturationSelector::~KHueSaturationSelector | ( | ) |
Destructor.
Definition at line 110 of file khuesaturationselect.cpp.
Member Function Documentation
KColorChooserMode KHueSaturationSelector::chooserMode | ( | ) | const |
Returns the chooser mode.
- Returns
- The chooser mode (defined in KColorChooserMode)
Definition at line 55 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 100 of file khuesaturationselect.cpp.
|
protectedvirtual |
Reimplemented from KXYSelector.
This drawing is buffered in a pixmap here. As real drawing routine, drawPalette() is used.
Reimplemented from KXYSelector.
Definition at line 125 of file khuesaturationselect.cpp.
|
protectedvirtual |
Draws the contents of the widget on a pixmap, which is used for buffering.
Definition at line 130 of file khuesaturationselect.cpp.
int KHueSaturationSelector::hue | ( | ) | const |
Returns the hue value.
- Returns
- The hue value (0-360)
Definition at line 79 of file khuesaturationselect.cpp.
|
protectedvirtual |
Definition at line 120 of file khuesaturationselect.cpp.
int KHueSaturationSelector::saturation | ( | ) | const |
Returns the saturation (0-255)
- Returns
- The saturation (0-255)
Definition at line 89 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 60 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 105 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 84 of file khuesaturationselect.cpp.
void KHueSaturationSelector::setSaturation | ( | int | saturation | ) |
Sets the saturation (0-255)
- Parameters
-
saturation The saturation (0-255)
Definition at line 95 of file khuesaturationselect.cpp.
void KHueSaturationSelector::updateContents | ( | ) |
Updates the contents.
Definition at line 115 of file khuesaturationselect.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.