/***************************************************************************
                            kde_MouseEvent.cpp -  description
                             -------------------
    begin                : Tue Mar 19 20:11:49 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Mar 19 20:11:49 2002, 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 "kde_MouseEvent.h"
}

#include <khtml_events.h>

class MouseEventBridge : public khtml::MouseEvent
{
public:
	MouseEventBridge(const char* name, QMouseEvent* qmouseEvent, int x, int y, const DOM::DOMString& url, const DOM::DOMString& target, const DOM::Node& innerNode) : MouseEvent(name, qmouseEvent, x, y, url, target, innerNode) {}
	~MouseEventBridge() {}
};

kde_MouseEvent * kde_new_MouseEvent(char* name, qt_QMouseEvent* qmouseEvent, int x, int y, kde_DOMString* url, kde_DOMString* target, kde_DOMNode* innerNode){
	return (kde_MouseEvent *) new MouseEventBridge((char*)name, (QMouseEvent*)qmouseEvent, (int)x, (int)y, (DOM::DOMString&)* (DOM::DOMString*)url, (DOM::DOMString&)* (DOM::DOMString*)target, (DOM::Node&)* (DOM::Node*)innerNode);
}
void kde_del_MouseEvent( kde_MouseEvent* p ){
	delete (MouseEventBridge*) p;
}
int kde_MouseEvent_x( kde_MouseEvent* instPointer){
	return (int) ((MouseEventBridge*)instPointer)->x();
}
int kde_MouseEvent_y( kde_MouseEvent* instPointer){
	return (int) ((MouseEventBridge*)instPointer)->y();
}
int kde_MouseEvent_absX( kde_MouseEvent* instPointer){
	return (int) ((MouseEventBridge*)instPointer)->absX();
}
int kde_MouseEvent_absY( kde_MouseEvent* instPointer){
	return (int) ((MouseEventBridge*)instPointer)->absY();
}
//kde_DOMString* kde_MouseEvent_url( kde_MouseEvent* instPointer){
//	return (kde_DOMString*) ((MouseEventBridge*)instPointer)->url();
//}
//kde_DOMString* kde_MouseEvent_target( kde_MouseEvent* instPointer){
//	return (kde_DOMString*) ((MouseEventBridge*)instPointer)->target();
//}
//kde_DOMNode* kde_MouseEvent_innerNode( kde_MouseEvent* instPointer){
//	return (kde_DOMNode*) ((MouseEventBridge*)instPointer)->innerNode();
//}
long kde_MouseEvent_offset( kde_MouseEvent* instPointer){
	return (long) ((MouseEventBridge*)instPointer)->offset();
}
