/***************************************************************************
                            kde_KValueSelector.h -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef KDE_KVALUESELECTOR
#define KDE_KVALUESELECTOR

#include <qtc/qtc_types.h>

#include <kdec/kde_types.h>

/**

 Widget for color value selection.

 @author Martin Jones (mjones@kde.org)

 @version $Id: kde_KValueSelector.h,v 1.3 2002/02/21 00:43:14 rdale Exp $
 
 @short 
 Widget for color value selection.
*/

/** 
 Constructs a widget for color selection.
   
*/
kde_KValueSelector * kde_new_KValueSelector(qt_QWidget * parent, char* name);

/** 
 Constructs a widget for color selection with a given orientation
   
*/
kde_KValueSelector * kde_new_KValueSelector1(int o, qt_QWidget * parent, char* name);
int kde_KValueSelector_hue(kde_KValueSelector* instPointer);
void kde_KValueSelector_setHue(kde_KValueSelector* instPointer,int h);
int kde_KValueSelector_saturation(kde_KValueSelector* instPointer);
void kde_KValueSelector_setSaturation(kde_KValueSelector* instPointer,int s);
void kde_KValueSelector_updateContents(kde_KValueSelector* instPointer);

/** 
 Draws the contents of the widget on a pixmap,
 which is used for buffering.
   
*/
void kde_KValueSelector_drawPalette(kde_KValueSelector* instPointer,qt_QPixmap * pixmap);

/** 
 Reimplemented from KSelector. The drawing is
 buffered in a pixmap here. As real drawing
 routine, drawPalette() is used.
   
*/
void kde_KValueSelector_drawContents(kde_KValueSelector* instPointer,qt_QPainter * painter);

#endif
