/***************************************************************************
                            qt_QContextMenuEvent.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_QContextMenuEvent.h"
}

#include <qevent.h>

class QContextMenuEventBridge : public QContextMenuEvent
{
public:
	QContextMenuEventBridge(Reason reason, const QPoint& pos, const QPoint& globalPos, int state) : QContextMenuEvent(reason, pos, globalPos, state) {}
	QContextMenuEventBridge(Reason reason, const QPoint& pos, int state) : QContextMenuEvent(reason, pos, state) {}
};

qt_QContextMenuEvent * qt_new_QContextMenuEvent(int reason, qt_QPoint* pos, qt_QPoint* globalPos, int state){
	return (qt_QContextMenuEvent *) new QContextMenuEventBridge((QContextMenuEvent::Reason)reason, (QPoint&)* (QPoint*)pos, (QPoint&)* (QPoint*)globalPos, (int)state);
}
qt_QContextMenuEvent * qt_new_QContextMenuEvent1(int reason, qt_QPoint* pos, int state){
	return (qt_QContextMenuEvent *) new QContextMenuEventBridge((QContextMenuEvent::Reason)reason, (QPoint&)* (QPoint*)pos, (int)state);
}
int qt_QContextMenuEvent_x( qt_QContextMenuEvent* instPointer){
	return (int) ((QContextMenuEventBridge*)instPointer)->x();
}
int qt_QContextMenuEvent_y( qt_QContextMenuEvent* instPointer){
	return (int) ((QContextMenuEventBridge*)instPointer)->y();
}
int qt_QContextMenuEvent_globalX( qt_QContextMenuEvent* instPointer){
	return (int) ((QContextMenuEventBridge*)instPointer)->globalX();
}
int qt_QContextMenuEvent_globalY( qt_QContextMenuEvent* instPointer){
	return (int) ((QContextMenuEventBridge*)instPointer)->globalY();
}
qt_QPoint* qt_QContextMenuEvent_pos( qt_QContextMenuEvent* instPointer){
	QPoint _p= ((QContextMenuEventBridge*)instPointer)->pos();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
qt_QPoint* qt_QContextMenuEvent_globalPos( qt_QContextMenuEvent* instPointer){
	QPoint _p= ((QContextMenuEventBridge*)instPointer)->globalPos();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
int qt_QContextMenuEvent_state( qt_QContextMenuEvent* instPointer){
	return (int) ((QContextMenuEventBridge*)instPointer)->state();
}
int qt_QContextMenuEvent_isAccepted( qt_QContextMenuEvent* instPointer){
	return (int) ((QContextMenuEventBridge*)instPointer)->isAccepted();
}
int qt_QContextMenuEvent_isConsumed( qt_QContextMenuEvent* instPointer){
	return (int) ((QContextMenuEventBridge*)instPointer)->isConsumed();
}
void qt_QContextMenuEvent_consume( qt_QContextMenuEvent* instPointer){
	((QContextMenuEventBridge*)instPointer)->consume();
	return;
}
void qt_QContextMenuEvent_accept( qt_QContextMenuEvent* instPointer){
	((QContextMenuEventBridge*)instPointer)->accept();
	return;
}
void qt_QContextMenuEvent_ignore( qt_QContextMenuEvent* instPointer){
	((QContextMenuEventBridge*)instPointer)->ignore();
	return;
}
int qt_QContextMenuEvent_reason( qt_QContextMenuEvent* instPointer){
	return (int) ((QContextMenuEventBridge*)instPointer)->reason();
}
