/***************************************************************************
                            qt_QDropEvent.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_QDropEvent.h"
}

#include <qevent.h>

class QDropEventBridge : public QDropEvent
{
public:
	QDropEventBridge(const QPoint& pos, Type typ) : QDropEvent(pos, typ) {}
};

qt_QDropEvent * qt_new_QDropEvent(qt_QPoint* pos, int typ){
	return (qt_QDropEvent *) new QDropEventBridge((QPoint&)* (QPoint*)pos, (QEvent::Type)typ);
}
qt_QPoint* qt_QDropEvent_pos( qt_QDropEvent* instPointer){
	QPoint _p= ((QDropEventBridge*)instPointer)->pos();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
int qt_QDropEvent_isAccepted( qt_QDropEvent* instPointer){
	return (int) ((QDropEventBridge*)instPointer)->isAccepted();
}
void qt_QDropEvent_accept( qt_QDropEvent* instPointer,int y){
	((QDropEventBridge*)instPointer)->accept((bool)y);
	return;
}
void qt_QDropEvent_ignore( qt_QDropEvent* instPointer){
	((QDropEventBridge*)instPointer)->ignore();
	return;
}
int qt_QDropEvent_isActionAccepted( qt_QDropEvent* instPointer){
	return (int) ((QDropEventBridge*)instPointer)->isActionAccepted();
}
void qt_QDropEvent_acceptAction( qt_QDropEvent* instPointer,int y){
	((QDropEventBridge*)instPointer)->acceptAction((bool)y);
	return;
}
void qt_QDropEvent_setAction( qt_QDropEvent* instPointer,int a){
	((QDropEventBridge*)instPointer)->setAction((QDropEvent::Action)a);
	return;
}
int qt_QDropEvent_action( qt_QDropEvent* instPointer){
	return (int) ((QDropEventBridge*)instPointer)->action();
}
qt_QWidget * qt_QDropEvent_source( qt_QDropEvent* instPointer){
	return (qt_QWidget *) ((QDropEventBridge*)instPointer)->source();
}
char* qt_QDropEvent_format( qt_QDropEvent* instPointer,int n){
	return (char*) ((QDropEventBridge*)instPointer)->format((int)n);
}
qt_QByteArray* qt_QDropEvent_encodedData( qt_QDropEvent* instPointer,char* arg1){
	return (qt_QByteArray*)new QByteArray(((QDropEventBridge*)instPointer)->encodedData((char*)arg1));
}
int qt_QDropEvent_provides( qt_QDropEvent* instPointer,char* arg1){
	return (int) ((QDropEventBridge*)instPointer)->provides((char*)arg1);
}
qt_QByteArray* qt_QDropEvent_data( qt_QDropEvent* instPointer,char* f){
	return (qt_QByteArray*)new QByteArray(((QDropEventBridge*)instPointer)->data((char*)f));
}
void qt_QDropEvent_setPoint( qt_QDropEvent* instPointer,qt_QPoint* np){
	((QDropEventBridge*)instPointer)->setPoint((QPoint&)* (QPoint*)np);
	return;
}
qt_QEvent * qt_QDropEvent_QEvent(qt_QDropEvent* instPointer){
	return (qt_QEvent *) (QEvent *) (QDropEvent *) instPointer;
}
qt_QMimeSource* qt_QDropEvent_QMimeSource(qt_QDropEvent* instPointer){
	return (qt_QMimeSource*) (QMimeSource *) (QDropEvent *) instPointer;
}
