/***************************************************************************
                            qt_QColor.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, 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 "qt_QColor.h"
}

#include <qcolor.h>

class QColorBridge : public QColor
{
public:
	QColorBridge() : QColor() {}
	QColorBridge(int r, int g, int b) : QColor(r, g, b) {}
	QColorBridge(int x, int y, int z, Spec arg1) : QColor(x, y, z, arg1) {}
	QColorBridge(QRgb rgb, uint pixel) : QColor(rgb, pixel) {}
	QColorBridge(const QString& name) : QColor(name) {}
	QColorBridge(const char* name) : QColor(name) {}
	QColorBridge(const QColor& arg1) : QColor(arg1) {}
};

qt_QColor * qt_new_QColor(){
	return (qt_QColor *) new QColorBridge();
}
qt_QColor * qt_new_QColor1(int r, int g, int b){
	return (qt_QColor *) new QColorBridge((int)r, (int)g, (int)b);
}
qt_QColor * qt_new_QColor2(int x, int y, int z, int arg1){
	return (qt_QColor *) new QColorBridge((int)x, (int)y, (int)z, (QColor::Spec)arg1);
}
qt_QColor * qt_new_QColor3(unsigned int rgb, unsigned int pixel){
	return (qt_QColor *) new QColorBridge((QRgb)rgb, (uint)pixel);
}
qt_QColor * qt_new_QColor4(qt_QString * name){
	return (qt_QColor *) new QColorBridge((QString&)* (QString*)name);
}
qt_QColor * qt_new_QColor5(char* name){
	return (qt_QColor *) new QColorBridge((char*)name);
}
qt_QColor * qt_new_QColor6(qt_QColor * arg1){
	return (qt_QColor *) new QColorBridge((QColor&)* (QColor*)arg1);
}
int qt_QColor_isValid( qt_QColor* instPointer){
	return (int) ((QColorBridge*)instPointer)->isValid();
}
int qt_QColor_isDirty( qt_QColor* instPointer){
	return (int) ((QColorBridge*)instPointer)->isDirty();
}
qt_QString * qt_QColor_name( qt_QColor* instPointer){
	return (qt_QString *)new QString(((QColorBridge*)instPointer)->name());
}
void qt_QColor_setNamedColor( qt_QColor* instPointer,qt_QString * name){
	((QColorBridge*)instPointer)->setNamedColor((QString&)* (QString*)name);
	return;
}
void qt_QColor_rgb( qt_QColor* instPointer,int* r, int* g, int* b){
	((QColorBridge*)instPointer)->rgb((int*)r, (int*)g, (int*)b);
	return;
}
unsigned int qt_QColor_rgb1( qt_QColor* instPointer){
	return (unsigned int) ((QColorBridge*)instPointer)->rgb();
}
void qt_QColor_setRgb( qt_QColor* instPointer,int r, int g, int b){
	((QColorBridge*)instPointer)->setRgb((int)r, (int)g, (int)b);
	return;
}
void qt_QColor_setRgb1( qt_QColor* instPointer,unsigned int rgb){
	((QColorBridge*)instPointer)->setRgb((QRgb)rgb);
	return;
}
int qt_QColor_red( qt_QColor* instPointer){
	return (int) ((QColorBridge*)instPointer)->red();
}
int qt_QColor_green( qt_QColor* instPointer){
	return (int) ((QColorBridge*)instPointer)->green();
}
int qt_QColor_blue( qt_QColor* instPointer){
	return (int) ((QColorBridge*)instPointer)->blue();
}
void qt_QColor_hsv( qt_QColor* instPointer,int* h, int* s, int* v){
	((QColorBridge*)instPointer)->hsv((int*)h, (int*)s, (int*)v);
	return;
}
void qt_QColor_getHsv( qt_QColor* instPointer,int h, int s, int v){
	((QColorBridge*)instPointer)->getHsv((int&)h, (int&)s, (int&)v);
	return;
}
void qt_QColor_setHsv( qt_QColor* instPointer,int h, int s, int v){
	((QColorBridge*)instPointer)->setHsv((int)h, (int)s, (int)v);
	return;
}
qt_QColor * qt_QColor_light( qt_QColor* instPointer,int f){
	return (qt_QColor *)new QColor(((QColorBridge*)instPointer)->light((int)f));
}
qt_QColor * qt_QColor_dark( qt_QColor* instPointer,int f){
	return (qt_QColor *)new QColor(((QColorBridge*)instPointer)->dark((int)f));
}
unsigned int qt_QColor_alloc( qt_QColor* instPointer){
	return (unsigned int) ((QColorBridge*)instPointer)->alloc();
}
unsigned int qt_QColor_pixel( qt_QColor* instPointer){
	return (unsigned int) ((QColorBridge*)instPointer)->pixel();
}
int qt_QColor_maxColors( ){
	return (int) QColorBridge::maxColors();
}
int qt_QColor_numBitPlanes( ){
	return (int) QColorBridge::numBitPlanes();
}
int qt_QColor_enterAllocContext( ){
	return (int) QColorBridge::enterAllocContext();
}
void qt_QColor_leaveAllocContext( ){
	QColorBridge::leaveAllocContext();
	return;
}
int qt_QColor_currentAllocContext( ){
	return (int) QColorBridge::currentAllocContext();
}
void qt_QColor_destroyAllocContext( int arg1){
	QColorBridge::destroyAllocContext((int)arg1);
	return;
}
//int * qt_QColor_palette( int* numEntries){
//	return (int *) QColorBridge::palette((int*)numEntries);
//}
//int qt_QColor_setPaletteEntries( int * entries, int numEntries, int base){
//	return (int) QColorBridge::setPaletteEntries((QRgb*)entries, (int)numEntries, (int)base);
//}
//void * qt_QColor_hPal( ){
//	return (void *) QColorBridge::hPal();
//}
//unsigned int qt_QColor_realizePal( qt_QWidget * arg1){
//	return (unsigned int) QColorBridge::realizePal((QWidget*)arg1);
//}
void qt_QColor_initialize( ){
	QColorBridge::initialize();
	return;
}
void qt_QColor_cleanup( ){
	QColorBridge::cleanup();
	return;
}
