/***************************************************************************
                            qt_QPoint.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_QPoint.h"
}

#include <qpoint.h>

class QPointBridge : public QPoint
{
public:
	QPointBridge() : QPoint() {}
	QPointBridge(int xpos, int ypos) : QPoint(xpos, ypos) {}
};

qt_QPoint * qt_new_QPoint(){
	return (qt_QPoint *) new QPointBridge();
}
qt_QPoint * qt_new_QPoint1(int xpos, int ypos){
	return (qt_QPoint *) new QPointBridge((int)xpos, (int)ypos);
}
int qt_QPoint_isNull( qt_QPoint* instPointer){
	return (int) ((QPointBridge*)instPointer)->isNull();
}
int qt_QPoint_x( qt_QPoint* instPointer){
	return (int) ((QPointBridge*)instPointer)->x();
}
int qt_QPoint_y( qt_QPoint* instPointer){
	return (int) ((QPointBridge*)instPointer)->y();
}
void qt_QPoint_setX( qt_QPoint* instPointer,int x){
	((QPointBridge*)instPointer)->setX((int)x);
	return;
}
void qt_QPoint_setY( qt_QPoint* instPointer,int y){
	((QPointBridge*)instPointer)->setY((int)y);
	return;
}
int qt_QPoint_manhattanLength( qt_QPoint* instPointer){
	return (int) ((QPointBridge*)instPointer)->manhattanLength();
}
short qt_QPoint_rx( qt_QPoint* instPointer){
	return (short) ((QPointBridge*)instPointer)->rx();
}
short qt_QPoint_ry( qt_QPoint* instPointer){
	return (short) ((QPointBridge*)instPointer)->ry();
}
