|
| DHueSaturationSelector (QWidget *const parent=nullptr) |
| Constructs a hue/saturation selection widget.
|
|
| ~DHueSaturationSelector () override |
| Destructor.
|
|
DColorChooserMode | chooserMode () const |
| Returns the chooser mode.
|
|
int | colorValue () const |
| Returns the color value (also known as luminosity, 0-255)
|
|
int | hue () const |
| Returns the hue value.
|
|
int | saturation () const |
| Returns the saturation (0-255)
|
|
void | setChooserMode (DColorChooserMode chooserMode) |
| Sets the chooser mode.
|
|
void | setColorValue (int color) |
| Sets the color value (0-255)
|
|
void | setHue (int hue) |
| Sets the hue value (0-360)
|
|
void | setSaturation (int saturation) |
| Sets the saturation (0-255)
|
|
void | updateContents () |
| Updates the contents.
|
|
| DPointSelect (QWidget *const parent) |
| Constructs a two-dimensional selector widget which has a value range of [0..100] in both directions.
|
|
QRect | contentsRect () const |
|
QSize | minimumSizeHint () const override |
| Reimplemented to give the widget a minimum size.
|
|
void | setMarkerColor (const QColor &col) |
| Sets the color used to draw the marker.
|
|
void | setRange (int minX, int minY, int maxX, int maxY) |
| Sets the range of possible values.
|
|
void | setValues (int xPos, int yPos) |
| Sets the current values in horizontal and vertical direction.
|
|
void | setXValue (int xPos) |
| Sets the current horizontal value.
|
|
void | setYValue (int yPos) |
| Sets the current vertical value.
|
|
int | xValue () const |
|
int | yValue () const |
|
|
void | drawContents (QPainter *painter) override |
| Reimplemented from DPointSelect.
|
|
virtual void | drawPalette (QPixmap *pixmap) |
| Draws the contents of the widget on a pixmap, which is used for buffering.
|
|
void | resizeEvent (QResizeEvent *) override |
|
virtual void | drawMarker (QPainter *p, int xp, int yp) |
| Override this function to draw the marker which indicates the currently selected value pair.
|
|
void | mouseMoveEvent (QMouseEvent *e) override |
|
void | mousePressEvent (QMouseEvent *e) override |
|
void | paintEvent (QPaintEvent *e) override |
|
void | valuesFromPosition (int x, int y, int &xVal, int &yVal) const |
| Converts a pixel position to its corresponding values.
|
|
void | wheelEvent (QWheelEvent *) override |
|