.TH "KGradientSelector" kde3 "11 Jun 2005" "Version Version 3.4.1" "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
.ti -1c
.RI "\fBKGradientSelector\fP (Orientation o, \fBQWidget\fP *parent=0, const char *name=0)"
.br
.ti -1c
.RI "\fB~KGradientSelector\fP ()"
.br
.ti -1c
.RI "void \fBsetColors\fP (const \fBQColor\fP &col1, const \fBQColor\fP &col2)"
.br
.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
.ti -1c
.RI "void \fBsetSecondColor\fP (const \fBQColor\fP &col)"
.br
.ti -1c
.RI "void \fBsetFirstText\fP (const \fBQString\fP &t)"
.br
.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
.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
.SS "Properties"

.in +1c
.ti -1c
.RI "\fBQColor\fP \fBfirstColor\fP"
.br
.ti -1c
.RI "\fBQColor\fP \fBsecondColor\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBfirstText\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBsecondText\fP"
.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. 

KDE Gradient Selector Widget
.PP
Definition at line 293 of file kselect.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KGradientSelector::KGradientSelector (\fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Constructs a horizontal color selector which contains a gradient between white and black. 
.PP
Definition at line 379 of file kselect.cpp.
.SS "KGradientSelector::KGradientSelector (Orientation o, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Constructs a colors selector with orientation o which contains a gradient between white and black. 
.PP
Definition at line 386 of file kselect.cpp.
.SS "KGradientSelector::~\fBKGradientSelector\fP ()"
.PP
Destructs the widget. 
.PP
Definition at line 394 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. 
.PP
Definition at line 320 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. 
.PP
Definition at line 328 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. 
.PP
Definition at line 336 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. 
.PP
The default implementation does nothing.
.PP
Draw only within \fBcontentsRect()\fP. 
.PP
Reimplemented from \fBKSelector\fP.
.PP
Definition at line 407 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.
