io.qt.gui.QWheelEvent Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Contains parameters that describe a wheel event
* Java wrapper for Qt class QWheelEvent
*/
public class QWheelEvent extends io.qt.gui.QSinglePointEvent
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QWheelEvent.class);
/**
*
*/
public QWheelEvent(io.qt.core.@NonNull QPointF pos, io.qt.core.@NonNull QPointF globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted, io.qt.core.Qt.@NonNull MouseEventSource source, io.qt.gui.@Nullable QPointingDevice device){
super((QPrivateConstructor)null);
initialize_native(this, pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, source, device);
}
private native static void initialize_native(QWheelEvent instance, io.qt.core.QPointF pos, io.qt.core.QPointF globalPos, io.qt.core.QPoint pixelDelta, io.qt.core.QPoint angleDelta, io.qt.core.Qt.MouseButtons buttons, io.qt.core.Qt.KeyboardModifiers modifiers, io.qt.core.Qt.ScrollPhase phase, boolean inverted, io.qt.core.Qt.MouseEventSource source, io.qt.gui.QPointingDevice device);
/**
* See QWheelEvent:: QWheelEvent(QWheelEvent)
*/
protected QWheelEvent(io.qt.gui.@StrictNonNull QWheelEvent 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(QWheelEvent instance, io.qt.gui.QWheelEvent arg__1);
/**
* See QWheelEvent:: angleDelta()const
*/
@QtPropertyReader(name="angleDelta")
@QtUninvokable
public final io.qt.core.@NonNull QPoint angleDelta(){
return angleDelta_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPoint angleDelta_native_constfct(long __this__nativeId);
/**
* See QWheelEvent:: hasPixelDelta()const
*/
@QtUninvokable
public final boolean hasPixelDelta(){
return hasPixelDelta_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasPixelDelta_native_constfct(long __this__nativeId);
/**
* See QWheelEvent:: inverted()const
*/
@QtPropertyReader(name="inverted")
@QtUninvokable
public final boolean inverted(){
return inverted_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean inverted_native_constfct(long __this__nativeId);
/**
* See QWheelEvent:: isInverted()const
*/
@QtUninvokable
public final boolean isInverted(){
return isInverted_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isInverted_native_constfct(long __this__nativeId);
/**
* See QWheelEvent:: operator=(QWheelEvent)
*/
@QtUninvokable
protected final void assign(io.qt.gui.@StrictNonNull QWheelEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
assign_native_cref_QWheelEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QWheelEvent(long __this__nativeId, long other);
/**
*
*/
@QtPropertyReader(name="phase")
@QtUninvokable
public final io.qt.core.Qt.@NonNull ScrollPhase phase(){
return io.qt.core.Qt.ScrollPhase.resolve(phase_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int phase_native_constfct(long __this__nativeId);
/**
* See QWheelEvent:: pixelDelta()const
*/
@QtPropertyReader(name="pixelDelta")
@QtUninvokable
public final io.qt.core.@NonNull QPoint pixelDelta(){
return pixelDelta_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPoint pixelDelta_native_constfct(long __this__nativeId);
/**
* See QWheelEvent:: source()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull MouseEventSource source(){
return io.qt.core.Qt.MouseEventSource.resolve(source_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int source_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public io.qt.gui.@Nullable QWheelEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QWheelEvent clone_native_constfct(long __this__nativeId);
/**
* See QPointerEvent:: isBeginEvent()const
*/
@QtUninvokable
@Override
public boolean isBeginEvent(){
return isBeginEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isBeginEvent_native_constfct(long __this__nativeId);
/**
* See QPointerEvent:: isEndEvent()const
*/
@QtUninvokable
@Override
public boolean isEndEvent(){
return isEndEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isEndEvent_native_constfct(long __this__nativeId);
/**
* See QPointerEvent:: isUpdateEvent()const
*/
@QtUninvokable
@Override
public boolean isUpdateEvent(){
return isUpdateEvent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isUpdateEvent_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QWheelEvent(QPrivateConstructor p) { super(p); }
/**
* Overloaded constructor for {@link #QWheelEvent(io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.ScrollPhase, boolean, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}
* with device = io.qt.gui.QPointingDevice.primaryPointingDevice()
.
*/
public QWheelEvent(io.qt.core.@NonNull QPointF pos, io.qt.core.@NonNull QPointF globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted, io.qt.core.Qt.@NonNull MouseEventSource source) {
this(pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, source, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
/**
* Overloaded constructor for {@link #QWheelEvent(io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.ScrollPhase, boolean, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}
* with:
* source = io.qt.core.Qt.MouseEventSource.MouseEventNotSynthesized
* device = io.qt.gui.QPointingDevice.primaryPointingDevice()
*
*/
public QWheelEvent(io.qt.core.@NonNull QPointF pos, io.qt.core.@NonNull QPointF globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted) {
this(pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, io.qt.core.Qt.MouseEventSource.MouseEventNotSynthesized, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
/**
* Overloaded constructor for {@link #QWheelEvent(io.qt.core.QPoint, io.qt.core.QPointF, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.ScrollPhase, boolean, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}
* with device = io.qt.gui.QPointingDevice.primaryPointingDevice()
.
*/
public QWheelEvent(io.qt.core.@NonNull QPoint pos, io.qt.core.@NonNull QPointF globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted, io.qt.core.Qt.@NonNull MouseEventSource source) {
this(pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, source, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
/**
* Overloaded constructor for {@link #QWheelEvent(io.qt.core.QPoint, io.qt.core.QPointF, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.ScrollPhase, boolean, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}
* with:
* source = io.qt.core.Qt.MouseEventSource.MouseEventNotSynthesized
* device = io.qt.gui.QPointingDevice.primaryPointingDevice()
*
*/
public QWheelEvent(io.qt.core.@NonNull QPoint pos, io.qt.core.@NonNull QPointF globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted) {
this(pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, io.qt.core.Qt.MouseEventSource.MouseEventNotSynthesized, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
/**
* Overloaded constructor for {@link #QWheelEvent(io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.ScrollPhase, boolean, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}.
*/
public QWheelEvent(io.qt.core.@NonNull QPoint pos, io.qt.core.@NonNull QPointF globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted, io.qt.core.Qt.@NonNull MouseEventSource source, io.qt.gui.@Nullable QPointingDevice device) {
this(new io.qt.core.QPointF(pos), globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, source, device);
}
/**
* Overloaded constructor for {@link #QWheelEvent(io.qt.core.QPointF, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.ScrollPhase, boolean, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}
* with device = io.qt.gui.QPointingDevice.primaryPointingDevice()
.
*/
public QWheelEvent(io.qt.core.@NonNull QPointF pos, io.qt.core.@NonNull QPoint globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted, io.qt.core.Qt.@NonNull MouseEventSource source) {
this(pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, source, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
/**
* Overloaded constructor for {@link #QWheelEvent(io.qt.core.QPointF, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.ScrollPhase, boolean, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}
* with:
* source = io.qt.core.Qt.MouseEventSource.MouseEventNotSynthesized
* device = io.qt.gui.QPointingDevice.primaryPointingDevice()
*
*/
public QWheelEvent(io.qt.core.@NonNull QPointF pos, io.qt.core.@NonNull QPoint globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted) {
this(pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, io.qt.core.Qt.MouseEventSource.MouseEventNotSynthesized, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
/**
* Overloaded constructor for {@link #QWheelEvent(io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.ScrollPhase, boolean, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}.
*/
public QWheelEvent(io.qt.core.@NonNull QPointF pos, io.qt.core.@NonNull QPoint globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted, io.qt.core.Qt.@NonNull MouseEventSource source, io.qt.gui.@Nullable QPointingDevice device) {
this(pos, new io.qt.core.QPointF(globalPos), pixelDelta, angleDelta, buttons, modifiers, phase, inverted, source, device);
}
/**
* Overloaded constructor for {@link #QWheelEvent(io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.ScrollPhase, boolean, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}
* with device = io.qt.gui.QPointingDevice.primaryPointingDevice()
.
*/
public QWheelEvent(io.qt.core.@NonNull QPoint pos, io.qt.core.@NonNull QPoint globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted, io.qt.core.Qt.@NonNull MouseEventSource source) {
this(pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, source, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
/**
* Overloaded constructor for {@link #QWheelEvent(io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.ScrollPhase, boolean, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}
* with:
* source = io.qt.core.Qt.MouseEventSource.MouseEventNotSynthesized
* device = io.qt.gui.QPointingDevice.primaryPointingDevice()
*
*/
public QWheelEvent(io.qt.core.@NonNull QPoint pos, io.qt.core.@NonNull QPoint globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted) {
this(pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, io.qt.core.Qt.MouseEventSource.MouseEventNotSynthesized, io.qt.gui.QPointingDevice.primaryPointingDevice());
}
/**
* Overloaded constructor for {@link #QWheelEvent(io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.ScrollPhase, boolean, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)}.
*/
public QWheelEvent(io.qt.core.@NonNull QPoint pos, io.qt.core.@NonNull QPoint globalPos, io.qt.core.@NonNull QPoint pixelDelta, io.qt.core.@NonNull QPoint angleDelta, io.qt.core.Qt.@NonNull MouseButtons buttons, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers, io.qt.core.Qt.@NonNull ScrollPhase phase, boolean inverted, io.qt.core.Qt.@NonNull MouseEventSource source, io.qt.gui.@Nullable QPointingDevice device) {
this(new io.qt.core.QPointF(pos), new io.qt.core.QPointF(globalPos), pixelDelta, angleDelta, buttons, modifiers, phase, inverted, source, device);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #angleDelta()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QPoint getAngleDelta() {
return angleDelta();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #inverted()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getInverted() {
return inverted();
}
/**
* @deprecated Use {@link #assign(io.qt.gui.QWheelEvent)} instead.
*/
@Deprecated
@QtUninvokable
protected final void set(io.qt.gui.@StrictNonNull QWheelEvent other) {
assign(other);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #phase()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull ScrollPhase getPhase() {
return phase();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #pixelDelta()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QPoint getPixelDelta() {
return pixelDelta();
}
}