io.qt.gui.QInputEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.gui;
/**
* The base class for events that describe user input
* Java wrapper for Qt class QInputEvent
*/
public class QInputEvent extends io.qt.core.QEvent
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.QtPropertyMember(enabled=false)
private Object __rcDevice = null;
/**
* Overloaded constructor for {@link #QInputEvent(io.qt.core.QEvent.Type, io.qt.gui.QInputDevice, io.qt.core.Qt.KeyboardModifiers)}.
*/
public QInputEvent(io.qt.core.QEvent.Type type, io.qt.gui.QInputDevice m_dev, io.qt.core.Qt.KeyboardModifier ... modifiers){
this(type, m_dev, new io.qt.core.Qt.KeyboardModifiers(modifiers));
}
/**
* Overloaded constructor for {@link #QInputEvent(io.qt.core.QEvent.Type, io.qt.gui.QInputDevice, io.qt.core.Qt.KeyboardModifiers)}
* with modifiers = new io.qt.core.Qt.KeyboardModifiers(0)
.
*/
public QInputEvent(io.qt.core.QEvent.Type type, io.qt.gui.QInputDevice m_dev) {
this(type, m_dev, new io.qt.core.Qt.KeyboardModifiers(0));
}
public QInputEvent(io.qt.core.QEvent.Type type, io.qt.gui.QInputDevice m_dev, io.qt.core.Qt.KeyboardModifiers modifiers){
super((QPrivateConstructor)null);
initialize_native(this, type, m_dev, modifiers);
}
private native static void initialize_native(QInputEvent instance, io.qt.core.QEvent.Type type, io.qt.gui.QInputDevice m_dev, io.qt.core.Qt.KeyboardModifiers modifiers);
protected QInputEvent(io.qt.gui.QInputEvent arg__1){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
initialize_native(this, arg__1);
}
private native static void initialize_native(QInputEvent instance, io.qt.gui.QInputEvent arg__1);
/**
* See QInputEvent::device()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QInputDevice device(){
return device_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QInputDevice device_native_constfct(long __this__nativeId);
/**
* See QInputEvent::deviceType()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QInputDevice.DeviceType deviceType(){
return io.qt.gui.QInputDevice.DeviceType.resolve(deviceType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int deviceType_native_constfct(long __this__nativeId);
/**
* See QInputEvent::modifiers()const
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
public io.qt.core.Qt.KeyboardModifiers modifiers(){
return new io.qt.core.Qt.KeyboardModifiers(modifiers_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int modifiers_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
protected final void set(io.qt.gui.QInputEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
set_native_cref_QInputEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void set_native_cref_QInputEvent(long __this__nativeId, long other);
/**
* Overloaded function for {@link #setModifiers(io.qt.core.Qt.KeyboardModifiers)}.
*/
@io.qt.QtUninvokable
public final void setModifiers(io.qt.core.Qt.KeyboardModifier ... modifiers){
setModifiers(new io.qt.core.Qt.KeyboardModifiers(modifiers));
}
@io.qt.QtUninvokable
public final void setModifiers(io.qt.core.Qt.KeyboardModifiers modifiers){
setModifiers_native_QFlags_Qt_KeyboardModifier_(QtJambi_LibraryUtilities.internal.nativeId(this), modifiers.value());
}
@io.qt.QtUninvokable
private native void setModifiers_native_QFlags_Qt_KeyboardModifier_(long __this__nativeId, int modifiers);
/**
* See QInputEvent::timestamp()const
*/
@io.qt.QtUninvokable
public final long timestamp(){
return timestamp_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native long timestamp_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public io.qt.gui.QInputEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QInputEvent clone_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public void setTimestamp(long timestamp){
setTimestamp_native_unsigned_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), timestamp);
}
@io.qt.QtUninvokable
private native void setTimestamp_native_unsigned_long_long(long __this__nativeId, long timestamp);
@io.qt.QtUninvokable
protected final void setDevice(io.qt.gui.QInputDevice device){
setDevice_native_const_QInputDevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(device));
__rcDevice = device;
}
@io.qt.QtUninvokable
private native void setDevice_native_const_QInputDevice_ptr(long __this__nativeId, long device);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QInputEvent(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy