KDEUI
#include <kcolorvalueselector.h>
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 () |
Public Member Functions inherited from KSelector | |
KSelector (QWidget *parent=0) | |
KSelector (Qt::Orientation o, QWidget *parent=0) | |
~KSelector () | |
Qt::ArrowType | arrowDirection () const |
QRect | contentsRect () const |
bool | indent () const |
void | setArrowDirection (Qt::ArrowType direction) |
void | setIndent (bool i) |
Protected Member Functions | |
virtual void | drawContents (QPainter *painter) |
virtual void | drawPalette (QPixmap *pixmap) |
virtual void | resizeEvent (QResizeEvent *) |
Protected Member Functions inherited from KSelector | |
virtual void | drawArrow (QPainter *painter, const QPoint &pos) |
virtual void | mouseMoveEvent (QMouseEvent *e) |
virtual void | mousePressEvent (QMouseEvent *e) |
virtual void | mouseReleaseEvent (QMouseEvent *e) |
virtual void | paintEvent (QPaintEvent *) |
virtual void | wheelEvent (QWheelEvent *) |
Properties | |
int | colorValue |
int | hue |
int | saturation |
Properties inherited from KSelector | |
Qt::ArrowType | arrowDirection |
bool | indent |
int | maxValue |
int | minValue |
int | value |
Detailed Description
Definition at line 28 of file kcolorvalueselector.h.
Constructor & Destructor Documentation
|
explicit |
Constructs a widget for color selection.
Definition at line 41 of file kcolorvalueselector.cpp.
|
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)
|
protectedvirtual |
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.
|
protectedvirtual |
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)
|
protectedvirtual |
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
-
chooserMode Sets 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
-
colorValue Sets 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
-
hue Sets 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
-
saturation Sets 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
|
readwrite |
Definition at line 33 of file kcolorvalueselector.h.
|
readwrite |
Definition at line 31 of file kcolorvalueselector.h.
|
readwrite |
Definition at line 32 of file kcolorvalueselector.h.
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.