io.qt.gui.QMouseEvent Maven / Gradle / Ivy
package io.qt.gui;
/**
* Contains parameters that describe a mouse event
* Java wrapper for Qt class QMouseEvent
*/
public class QMouseEvent extends io.qt.gui.QSinglePointEvent
{
/**
* Overloaded constructor for {@link #QMouseEvent(io.qt.core.QEvent.Type, io.qt.core.QPointF, io.qt.core.Qt.MouseButton, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.gui.QPointingDevice)}
* with device = io.qt.gui.QPointingDevice.primaryPointingDevice()
.
*/
public QMouseEvent(io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers) {
this(type, localPos, button, buttons, modifiers, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
public QMouseEvent(io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.gui.QPointingDevice device){
super((QPrivateConstructor)null);
initialize_native(this, type, localPos, button, buttons, modifiers, device);
}
private native static void initialize_native(QMouseEvent instance, io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.gui.QPointingDevice device);
/**
* Overloaded constructor for {@link #QMouseEvent(io.qt.core.QEvent.Type, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.Qt.MouseButton, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.gui.QPointingDevice)}
* with device = io.qt.gui.QPointingDevice.primaryPointingDevice()
.
*/
public QMouseEvent(io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers) {
this(type, localPos, globalPos, button, buttons, modifiers, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
public QMouseEvent(io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.gui.QPointingDevice device){
super((QPrivateConstructor)null);
initialize_native(this, type, localPos, globalPos, button, buttons, modifiers, device);
}
private native static void initialize_native(QMouseEvent instance, io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.gui.QPointingDevice device);
/**
* Overloaded constructor for {@link #QMouseEvent(io.qt.core.QEvent.Type, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.Qt.MouseButton, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}
* with device = io.qt.gui.QPointingDevice.primaryPointingDevice()
.
*/
public QMouseEvent(io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.QPointF scenePos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.Qt.MouseEventSource source) {
this(type, localPos, scenePos, globalPos, button, buttons, modifiers, source, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
public QMouseEvent(io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.QPointF scenePos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.Qt.MouseEventSource source, io.qt.gui.QPointingDevice device){
super((QPrivateConstructor)null);
initialize_native(this, type, localPos, scenePos, globalPos, button, buttons, modifiers, source, device);
}
private native static void initialize_native(QMouseEvent instance, io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.QPointF scenePos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.Qt.MouseEventSource source, io.qt.gui.QPointingDevice device);
/**
* Overloaded constructor for {@link #QMouseEvent(io.qt.core.QEvent.Type, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.Qt.MouseButton, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.gui.QPointingDevice)}
* with device = io.qt.gui.QPointingDevice.primaryPointingDevice()
.
*/
public QMouseEvent(io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.QPointF scenePos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers) {
this(type, localPos, scenePos, globalPos, button, buttons, modifiers, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
public QMouseEvent(io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.QPointF scenePos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.gui.QPointingDevice device){
super((QPrivateConstructor)null);
initialize_native(this, type, localPos, scenePos, globalPos, button, buttons, modifiers, device);
}
private native static void initialize_native(QMouseEvent instance, io.qt.core.QEvent.Type type, io.qt.core.QPointF localPos, io.qt.core.QPointF scenePos, io.qt.core.QPointF globalPos, io.qt.core.Qt.MouseButton button, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.gui.QPointingDevice device);
protected QMouseEvent(io.qt.gui.QMouseEvent 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(QMouseEvent instance, io.qt.gui.QMouseEvent arg__1);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.MouseEventFlags flags(){
return new io.qt.core.Qt.MouseEventFlags(flags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int flags_native_constfct(long __this__nativeId);
/**
* @deprecated Use {@link io.qt.gui.QSinglePointEvent#globalPosition()} instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.core.QPoint globalPos(){
return globalPos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@io.qt.QtUninvokable
private native io.qt.core.QPoint globalPos_native_constfct(long __this__nativeId);
/**
* @deprecated Use {@link io.qt.gui.QSinglePointEvent#globalPosition()} instead
*/
@Deprecated
@io.qt.QtUninvokable
public final int globalX(){
return globalX_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@io.qt.QtUninvokable
private native int globalX_native_constfct(long __this__nativeId);
/**
* @deprecated Use {@link io.qt.gui.QSinglePointEvent#globalPosition()} instead
*/
@Deprecated
@io.qt.QtUninvokable
public final int globalY(){
return globalY_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@io.qt.QtUninvokable
private native int globalY_native_constfct(long __this__nativeId);
/**
* @deprecated Use {@link io.qt.gui.QSinglePointEvent#position()} instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.core.QPointF localPos(){
return localPos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@io.qt.QtUninvokable
private native io.qt.core.QPointF localPos_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
protected final void set(io.qt.gui.QMouseEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
set_native_cref_QMouseEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void set_native_cref_QMouseEvent(long __this__nativeId, long other);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint pos(){
return pos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint pos_native_constfct(long __this__nativeId);
/**
* @deprecated Use {@link io.qt.gui.QSinglePointEvent#globalPosition()} instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.core.QPointF screenPos(){
return screenPos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@io.qt.QtUninvokable
private native io.qt.core.QPointF screenPos_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public final io.qt.core.Qt.MouseEventSource source(){
return io.qt.core.Qt.MouseEventSource.resolve(source_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int source_native_constfct(long __this__nativeId);
/**
* @deprecated Use {@link io.qt.gui.QSinglePointEvent#scenePosition()} instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.core.QPointF windowPos(){
return windowPos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@io.qt.QtUninvokable
private native io.qt.core.QPointF windowPos_native_constfct(long __this__nativeId);
/**
* @deprecated Use {@link io.qt.gui.QSinglePointEvent#position()} instead
*/
@Deprecated
@io.qt.QtUninvokable
public final int x(){
return x_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@io.qt.QtUninvokable
private native int x_native_constfct(long __this__nativeId);
/**
* @deprecated Use {@link io.qt.gui.QSinglePointEvent#position()} instead
*/
@Deprecated
@io.qt.QtUninvokable
public final int y(){
return y_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@io.qt.QtUninvokable
private native int y_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public io.qt.gui.QMouseEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QMouseEvent clone_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QMouseEvent(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);
}