/***************************************************************************
                            QContextMenuEvent.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

public class QContextMenuEvent extends QEvent  {
	protected QContextMenuEvent(Class dummy){super((Class) null);}

	private native void newQContextMenuEvent( int reason, QPoint pos, QPoint globalPos, int state);
	public QContextMenuEvent( int reason, QPoint pos, QPoint globalPos, int state) {
		super((Class) null);
		newQContextMenuEvent( reason, pos, globalPos, state);
	}
	private native void newQContextMenuEvent( int reason, QPoint pos, int state);
	public QContextMenuEvent( int reason, QPoint pos, int state) {
		super((Class) null);
		newQContextMenuEvent( reason, pos, state);
	}
	public native int x();
	public native int y();
	public native int globalX();
	public native int globalY();
	public native QPoint pos();
	public native QPoint globalPos();
	public native int state();
	public native boolean isAccepted();
	public native boolean isConsumed();
	public native void consume();
	public native void accept();
	public native void ignore();
	public native int reason();
	public static final int Mouse = 0;
	public static final int Keyboard = 1;
	public static final int Other = 2;
}
