wwWidgets Home · All Classes · Main Classes · Grouped Classes · Functions

QwwHueSatPicker Class Reference

The QwwHueSatPicker class provides a widget allowing color picking in a form of a hue-saturation rectangle. More...

 #include <QwwHueSatPicker>

Inherits QFrame.


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 )

Additional Inherited Members


Detailed Description

The QwwHueSatPicker class provides a widget allowing color picking in a form of a hue-saturation rectangle.

QwwHueSatPicker


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. p painter to draw on pt point to draw the cross in

void QwwHueSatPicker::hueRangeChanged ( int min, int max )   [signal]

This signal is emitted when the Hue range changes to (min, max)

void QwwHueSatPicker::maximumHueChanged ( int )   [signal]

void QwwHueSatPicker::maximumSatChanged ( int )   [signal]

void QwwHueSatPicker::minimumHueChanged ( int )   [signal]

void QwwHueSatPicker::minimumSatChanged ( int )   [signal]

void QwwHueSatPicker::satRangeChanged ( int, int )   [signal]

void QwwHueSatPicker::setHueRange ( int mi, int ma )

mi ma

void QwwHueSatPicker::setSatRange ( int mi, int ma )

mi ma

void QwwHueSatPicker::valueChanged ( int )   [signal]


Copyright © 2007-2010 Witold Wysota Trademarks
wwWidgets 1.0.0