/***************************************************************************
                            qt_QMouseEvent.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_QMouseEvent.h"
}

#include <qevent.h>

class QMouseEventBridge : public QMouseEvent
{
public:
	QMouseEventBridge(Type type, const QPoint& pos, int button, int state) : QMouseEvent(type, pos, button, state) {}
	QMouseEventBridge(Type type, const QPoint& pos, const QPoint& globalPos, int button, int state) : QMouseEvent(type, pos, globalPos, button, state) {}
};

qt_QMouseEvent * qt_new_QMouseEvent(int type, qt_QPoint* pos, int button, int state){
	return (qt_QMouseEvent *) new QMouseEventBridge((QEvent::Type)type, (QPoint&)* (QPoint*)pos, (int)button, (int)state);
}
qt_QMouseEvent * qt_new_QMouseEvent1(int type, qt_QPoint* pos, qt_QPoint* globalPos, int button, int state){
	return (qt_QMouseEvent *) new QMouseEventBridge((QEvent::Type)type, (QPoint&)* (QPoint*)pos, (QPoint&)* (QPoint*)globalPos, (int)button, (int)state);
}
qt_QPoint* qt_QMouseEvent_pos( qt_QMouseEvent* instPointer){
	QPoint _p= ((QMouseEventBridge*)instPointer)->pos();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
qt_QPoint* qt_QMouseEvent_globalPos( qt_QMouseEvent* instPointer){
	QPoint _p= ((QMouseEventBridge*)instPointer)->globalPos();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
int qt_QMouseEvent_x( qt_QMouseEvent* instPointer){
	return (int) ((QMouseEventBridge*)instPointer)->x();
}
int qt_QMouseEvent_y( qt_QMouseEvent* instPointer){
	return (int) ((QMouseEventBridge*)instPointer)->y();
}
int qt_QMouseEvent_globalX( qt_QMouseEvent* instPointer){
	return (int) ((QMouseEventBridge*)instPointer)->globalX();
}
int qt_QMouseEvent_globalY( qt_QMouseEvent* instPointer){
	return (int) ((QMouseEventBridge*)instPointer)->globalY();
}
int qt_QMouseEvent_button( qt_QMouseEvent* instPointer){
	return (int) ((QMouseEventBridge*)instPointer)->button();
}
int qt_QMouseEvent_state( qt_QMouseEvent* instPointer){
	return (int) ((QMouseEventBridge*)instPointer)->state();
}
int qt_QMouseEvent_stateAfter( qt_QMouseEvent* instPointer){
	return (int) ((QMouseEventBridge*)instPointer)->stateAfter();
}
int qt_QMouseEvent_isAccepted( qt_QMouseEvent* instPointer){
	return (int) ((QMouseEventBridge*)instPointer)->isAccepted();
}
void qt_QMouseEvent_accept( qt_QMouseEvent* instPointer){
	((QMouseEventBridge*)instPointer)->accept();
	return;
}
void qt_QMouseEvent_ignore( qt_QMouseEvent* instPointer){
	((QMouseEventBridge*)instPointer)->ignore();
	return;
}
