/***************************************************************************
                            qt_QWheelEvent.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_QWheelEvent.h"
}

#include <qevent.h>

class QWheelEventBridge : public QWheelEvent
{
public:
	QWheelEventBridge(const QPoint& pos, int delta, int state, Orientation orient) : QWheelEvent(pos, delta, state, orient) {}
	QWheelEventBridge(const QPoint& pos, const QPoint& globalPos, int delta, int state, Orientation orient) : QWheelEvent(pos, globalPos, delta, state, orient) {}
};

qt_QWheelEvent * qt_new_QWheelEvent(qt_QPoint* pos, int delta, int state, int orient){
	return (qt_QWheelEvent *) new QWheelEventBridge((QPoint&)* (QPoint*)pos, (int)delta, (int)state, (Qt::Orientation)orient);
}
qt_QWheelEvent * qt_new_QWheelEvent1(qt_QPoint* pos, qt_QPoint* globalPos, int delta, int state, int orient){
	return (qt_QWheelEvent *) new QWheelEventBridge((QPoint&)* (QPoint*)pos, (QPoint&)* (QPoint*)globalPos, (int)delta, (int)state, (Qt::Orientation)orient);
}
int qt_QWheelEvent_delta( qt_QWheelEvent* instPointer){
	return (int) ((QWheelEventBridge*)instPointer)->delta();
}
qt_QPoint* qt_QWheelEvent_pos( qt_QWheelEvent* instPointer){
	QPoint _p= ((QWheelEventBridge*)instPointer)->pos();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
qt_QPoint* qt_QWheelEvent_globalPos( qt_QWheelEvent* instPointer){
	QPoint _p= ((QWheelEventBridge*)instPointer)->globalPos();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
int qt_QWheelEvent_x( qt_QWheelEvent* instPointer){
	return (int) ((QWheelEventBridge*)instPointer)->x();
}
int qt_QWheelEvent_y( qt_QWheelEvent* instPointer){
	return (int) ((QWheelEventBridge*)instPointer)->y();
}
int qt_QWheelEvent_globalX( qt_QWheelEvent* instPointer){
	return (int) ((QWheelEventBridge*)instPointer)->globalX();
}
int qt_QWheelEvent_globalY( qt_QWheelEvent* instPointer){
	return (int) ((QWheelEventBridge*)instPointer)->globalY();
}
int qt_QWheelEvent_state( qt_QWheelEvent* instPointer){
	return (int) ((QWheelEventBridge*)instPointer)->state();
}
int qt_QWheelEvent_orientation( qt_QWheelEvent* instPointer){
	return (int) ((QWheelEventBridge*)instPointer)->orientation();
}
int qt_QWheelEvent_isAccepted( qt_QWheelEvent* instPointer){
	return (int) ((QWheelEventBridge*)instPointer)->isAccepted();
}
void qt_QWheelEvent_accept( qt_QWheelEvent* instPointer){
	((QWheelEventBridge*)instPointer)->accept();
	return;
}
void qt_QWheelEvent_ignore( qt_QWheelEvent* instPointer){
	((QWheelEventBridge*)instPointer)->ignore();
	return;
}
