QwwHueSatPicker Class
The QwwHueSatPicker class provides a widget allowing color picking in a form of a hue-saturation rectangle. More...
Header: | #include <QwwHueSatPicker> |
Properties
|
|
Public Functions
QwwHueSatPicker(QWidget * parent = 0) | |
QColor | color() const |
int | maximumHue() const |
int | maximumSat() const |
int | minimumHue() const |
int | minimumSat() const |
void | setHueRange(int mi, int ma) |
void | setSatRange(int mi, int ma) |
int | value() const |
Public Slots
void | setColor(const QColor & c) |
void | setMaximumHue(int h) |
void | setMaximumSat(int v) |
void | setMinimumHue(int h) |
void | setMinimumSat(int v) |
void | setValue(int v) |
Signals
void | colorPicked(QColor color) |
void | hueRangeChanged(int min, int max) |
void | maximumHueChanged(int) |
void | maximumSatChanged(int) |
void | minimumHueChanged(int) |
void | minimumSatChanged(int) |
void | satRangeChanged(int, int) |
void | valueChanged(int) |
Protected Functions
virtual void | drawCrosshair(QPainter * p, const QPoint & pt) |
Detailed Description
The QwwHueSatPicker class provides a widget allowing color picking in a form of a hue-saturation rectangle.
Property Documentation
color : QColor
This property holds this property holds the currently chosen color.
Access functions:
QColor | color() const |
void | setColor(const QColor & c) |
maximumHue : int
This property holds this property holds the maximum value of the hue component shown by the widget.
Access functions:
int | maximumHue() const |
void | setMaximumHue(int h) |
maximumSat : int
This property holds this property holds the maximum value of the saturation component shown by the widget.
Access functions:
int | maximumSat() const |
void | setMaximumSat(int v) |
minimumHue : int
This property holds this property holds the minimum value of the hue component shown by the widget.
Access functions:
int | minimumHue() const |
void | setMinimumHue(int h) |
minimumSat : int
This property holds this property holds the minimum value of the saturation component shown by the widget.
Access functions:
int | minimumSat() const |
void | setMinimumSat(int v) |
value : int
This property holds this property holds the value component of the table visible.
This property keeps the lightness component of the color table. The range of allowed values for this property is 0-255. The default value is 220.
Access functions:
int | value() const |
void | setValue(int v) |
Member Function Documentation
QwwHueSatPicker::QwwHueSatPicker(QWidget * parent = 0)
Constructs a hue sat picker with a given parent.
void QwwHueSatPicker::colorPicked(QColor color) [signal]
This signal is emitted when color is picked.
void QwwHueSatPicker::drawCrosshair(QPainter * p, const QPoint & pt) [virtual protected]
This method draws the crosshair pointing the currently chosen color at point pt on painter p.
void QwwHueSatPicker::hueRangeChanged(int min, int max) [signal]
This signal is emitted when the Hue range changes to (min, max)