.TH "KGradientSelector" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KGradientSelector \- The KGradientSelector widget allows the user to choose from a one-dimensional range of colors which is given as a gradient between two colors provided by the programmer.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kselect.h>\fP
.PP
Inherits \fBKSelector\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKGradientSelector\fP (\fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructs a horizontal color selector which contains a gradient between white and black. \fP"
.ti -1c
.RI "\fBKGradientSelector\fP (Orientation o, \fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructs a colors selector with orientation o which contains a gradient between white and black. \fP"
.ti -1c
.RI "\fB~KGradientSelector\fP ()"
.br
.RI "\fIDestructs the widget. \fP"
.ti -1c
.RI "void \fBsetColors\fP (const  \fBQColor\fP &col1, const  \fBQColor\fP &col2)"
.br
.RI "\fISets the two colors which span the gradient. \fP"
.ti -1c
.RI "void \fBsetText\fP (const  \fBQString\fP &t1, const  \fBQString\fP &t2)"
.br
.ti -1c
.RI "void \fBsetFirstColor\fP (const  \fBQColor\fP &col)"
.br
.RI "\fISet each color on its own. \fP"
.ti -1c
.RI "void \fBsetSecondColor\fP (const  \fBQColor\fP &col)"
.br
.ti -1c
.RI "void \fBsetFirstText\fP (const  \fBQString\fP &t)"
.br
.RI "\fISet each description on its own. \fP"
.ti -1c
.RI "void \fBsetSecondText\fP (const  \fBQString\fP &t)"
.br
.ti -1c
.RI "const  \fBQColor\fP \fBfirstColor\fP () const "
.br
.ti -1c
.RI "const  \fBQColor\fP \fBsecondColor\fP () const "
.br
.ti -1c
.RI "const  \fBQString\fP \fBfirstText\fP () const "
.br
.ti -1c
.RI "const  \fBQString\fP \fBsecondText\fP () const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBdrawContents\fP (\fBQPainter\fP *)"
.br
.RI "\fIOverride this function to draw the contents of the control. \fP"
.ti -1c
.RI "virtual \fBQSize\fP \fBminimumSize\fP () const "
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
The KGradientSelector widget allows the user to choose from a one-dimensional range of colors which is given as a gradient between two colors provided by the programmer. Definition at line 284 of file kselect.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KGradientSelector::KGradientSelector (\fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructs a horizontal color selector which contains a gradient between white and black. Definition at line 350 of file kselect.cpp.
.PP
References KStdAccel::name().
.SS "KGradientSelector::KGradientSelector (Orientation o, \fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructs a colors selector with orientation o which contains a gradient between white and black. Definition at line 357 of file kselect.cpp.
.PP
References KStdAccel::name().
.SS "KGradientSelector::~\fBKGradientSelector\fP ()"
.PP
Destructs the widget. Definition at line 365 of file kselect.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KGradientSelector::setColors (const \fBQColor\fP & col1, const \fBQColor\fP & col2)\fC [inline]\fP"
.PP
Sets the two colors which span the gradient. Definition at line 311 of file kselect.h.
.PP
References QWidget::update().
.SS "void KGradientSelector::setFirstColor (const \fBQColor\fP & col)\fC [inline]\fP"
.PP
Set each color on its own. Definition at line 319 of file kselect.h.
.PP
References QWidget::update().
.SS "void KGradientSelector::setFirstText (const \fBQString\fP & t)\fC [inline]\fP"
.PP
Set each description on its own. Definition at line 327 of file kselect.h.
.PP
References QWidget::update().
.SS "void KGradientSelector::drawContents (\fBQPainter\fP *)\fC [protected, virtual]\fP"
.PP
Override this function to draw the contents of the control. The default implementation does nothing.
.PP
Draw only within \fBcontentsRect()\fP. Reimplemented from \fBKSelector\fP.
.PP
Definition at line 378 of file kselect.cpp.
.PP
References QColor::blue(), QRect::bottom(), KSelector::contentsRect(), QPixmap::convertFromImage(), KImageEffect::dither(), QPainter::drawPixmap(), QPainter::drawText(), QPainter::fontMetrics(), QColor::green(), QImage::height(), QWidget::height(), QRect::left(), KSelector::orientation(), QColor::red(), QColor::rgb(), QImage::scanLine(), QPen::setColor(), QPainter::setPen(), QColor::setRgb(), QRect::top(), QRect::width(), QImage::width(), QWidget::width(), QWidget::x(), and QWidget::y().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
