com.trolltech.qt.gui
Class QInputEvent

java.lang.Object
  extended by com.trolltech.qt.QSignalEmitter
      extended by com.trolltech.qt.QtJambiObject
          extended by com.trolltech.qt.core.QEvent
              extended by com.trolltech.qt.gui.QInputEvent
All Implemented Interfaces:
QtJambiInterface
Direct Known Subclasses:
QContextMenuEvent, QKeyEvent, QMouseEvent, QTabletEvent, QWheelEvent

public class QInputEvent
extends QEvent

The QInputEvent class is the base class for events that describe user input.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trolltech.qt.core.QEvent
QEvent.Type
 
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>
 
Constructor Summary
QInputEvent(QEvent.Type type)
          Equivalent to QInputEvent(type, Qt::NoModifier).
QInputEvent(QEvent.Type type, Qt.KeyboardModifiers modifiers)
          This method is used internally by Qt Jambi.
 
Method Summary
static QInputEvent fromNativePointer(QNativePointer nativePointer)
          This function returns the QInputEvent instance pointed to by nativePointer
 Qt.KeyboardModifiers modifiers()
          Returns the keyboard modifier flags that existed immediately before the event occurred.
protected  void setModState(Qt.KeyboardModifier... modState)
          Sets this QInputEvent's keyboard modifiers to modState.
 
Methods inherited from class com.trolltech.qt.core.QEvent
accept, ignore, isAccepted, setAccepted, setT, spontaneous, t, type
 
Methods inherited from class com.trolltech.qt.QtJambiObject
dispose, disposed, finalize, reassignNativeResources, tr, tr, tr
 
Methods inherited from class com.trolltech.qt.QSignalEmitter
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership
 

Constructor Detail

QInputEvent

public QInputEvent(QEvent.Type type)

Equivalent to QInputEvent(type, Qt::NoModifier).


QInputEvent

public QInputEvent(QEvent.Type type,
                   Qt.KeyboardModifiers modifiers)

This method is used internally by Qt Jambi. Do not use it in your applications.

Method Detail

modifiers

public Qt.KeyboardModifiers modifiers()

Returns the keyboard modifier flags that existed immediately before the event occurred.

See Also:
QApplication::keyboardModifiers

setModState

protected final void setModState(Qt.KeyboardModifier... modState)
Sets this QInputEvent's keyboard modifiers to modState.


fromNativePointer

public static QInputEvent fromNativePointer(QNativePointer nativePointer)
This function returns the QInputEvent instance pointed to by nativePointer

Parameters:
nativePointer - the QNativePointer of which object should be returned.