/***************************************************************************
                            kde_KColor.cpp -  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.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_KColor.h"
}

#include <kcolordialog.h>

class KColorBridge : public KColor
{
public:
	KColorBridge() : KColor() {}
	KColorBridge(const KColor& col) : KColor(col) {}
	KColorBridge(const QColor& col) : KColor(col) {}
};

kde_KColor * kde_new_KColor(){
	return (kde_KColor *) new KColorBridge();
}
kde_KColor * kde_new_KColor1(kde_KColor* col){
	return (kde_KColor *) new KColorBridge((KColor&)* (KColor*)col);
}
kde_KColor * kde_new_KColor2(qt_QColor * col){
	return (kde_KColor *) new KColorBridge((QColor&)* (QColor*)col);
}
void kde_KColor_setHsv( kde_KColor* instPointer,int _h, int _s, int _v){
	((KColorBridge*)instPointer)->setHsv((int)_h, (int)_s, (int)_v);
	return;
}
void kde_KColor_setRgb( kde_KColor* instPointer,int _r, int _g, int _b){
	((KColorBridge*)instPointer)->setRgb((int)_r, (int)_g, (int)_b);
	return;
}
void kde_KColor_rgb( kde_KColor* instPointer,int* _r, int* _g, int* _b){
	((KColorBridge*)instPointer)->rgb((int*)_r, (int*)_g, (int*)_b);
	return;
}
void kde_KColor_hsv( kde_KColor* instPointer,int* _h, int* _s, int* _v){
	((KColorBridge*)instPointer)->hsv((int*)_h, (int*)_s, (int*)_v);
	return;
}
