/***************************************************************************
                            qt_QDragObject.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_QDragObject.h"
}

#include <qdragobject.h>

//qt_QDragObject * qt_new_QDragObject(qt_QWidget * dragSource, char* name){
//	return (qt_QDragObject *) new QDragObject((QWidget*)dragSource, (char*)name);
//}
void qt_del_QDragObject( qt_QDragObject* p ){
	delete (QDragObject*) p;
}
int qt_QDragObject_drag( qt_QDragObject* instPointer){
	return (int) ((QDragObject*)instPointer)->drag();
}
int qt_QDragObject_dragMove( qt_QDragObject* instPointer){
	return (int) ((QDragObject*)instPointer)->dragMove();
}
void qt_QDragObject_dragCopy( qt_QDragObject* instPointer){
	((QDragObject*)instPointer)->dragCopy();
	return;
}
void qt_QDragObject_dragLink( qt_QDragObject* instPointer){
	((QDragObject*)instPointer)->dragLink();
	return;
}
void qt_QDragObject_setPixmap( qt_QDragObject* instPointer,qt_QPixmap * arg1){
	((QDragObject*)instPointer)->setPixmap((QPixmap)* (QPixmap*)arg1);
	return;
}
void qt_QDragObject_setPixmap1( qt_QDragObject* instPointer,qt_QPixmap * arg1, qt_QPoint* hotspot){
	((QDragObject*)instPointer)->setPixmap((QPixmap)* (QPixmap*)arg1, (QPoint&)* (QPoint*)hotspot);
	return;
}
qt_QPixmap * qt_QDragObject_pixmap( qt_QDragObject* instPointer){
	return (qt_QPixmap *)new QPixmap(((QDragObject*)instPointer)->pixmap());
}
qt_QPoint* qt_QDragObject_pixmapHotSpot( qt_QDragObject* instPointer){
	QPoint _p= ((QDragObject*)instPointer)->pixmapHotSpot();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
qt_QWidget * qt_QDragObject_source( qt_QDragObject* instPointer){
	return (qt_QWidget *) ((QDragObject*)instPointer)->source();
}
qt_QWidget * qt_QDragObject_target( ){
	return (qt_QWidget *) QDragObject::target();
}
void qt_QDragObject_setTarget( qt_QWidget * arg1){
	QDragObject::setTarget((QWidget*)arg1);
	return;
}
//int qt_QDragObject_drag1( qt_QDragObject* instPointer,int arg1){
//	return (int) ((QDragObject*)instPointer)->protected_drag((QDragObject::DragMode)arg1);
//}
qt_QMimeSource* qt_QDragObject_QMimeSource(qt_QDragObject* instPointer){
	return (qt_QMimeSource*) (QMimeSource *) (QDragObject *) instPointer;
}
qt_QObject * qt_QDragObject_QObject(qt_QDragObject* instPointer){
	return (qt_QObject *) (QObject *) (QDragObject *) instPointer;
}
