io.qt.widgets.QGraphicsSceneWheelEvent Maven / Gradle / Ivy
package io.qt.widgets;
import io.qt.*;
/**
* Wheel events in the graphics view framework
* Java wrapper for Qt class QGraphicsSceneWheelEvent
*/
public class QGraphicsSceneWheelEvent extends io.qt.widgets.QGraphicsSceneEvent
{
/**
* See QGraphicsSceneWheelEvent:: QGraphicsSceneWheelEvent(QEvent::Type)
* @param type
*/
public QGraphicsSceneWheelEvent(io.qt.core.QEvent.@NonNull Type type){
super((QPrivateConstructor)null);
initialize_native(this, type);
}
private native static void initialize_native(QGraphicsSceneWheelEvent instance, io.qt.core.QEvent.Type type);
/**
* See QGraphicsSceneWheelEvent:: buttons()const
* @return
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull MouseButtons buttons(){
return new io.qt.core.Qt.MouseButtons(buttons_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int buttons_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneWheelEvent:: delta()const
* @return
*/
@QtUninvokable
public final int delta(){
return delta_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int delta_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneWheelEvent:: isInverted()const
* @since This function was introduced in Qt 6.2.
* @return
*/
@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 QGraphicsSceneWheelEvent:: modifiers()const
* @return
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull KeyboardModifiers modifiers(){
return new io.qt.core.Qt.KeyboardModifiers(modifiers_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int modifiers_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneWheelEvent:: orientation()const
* @return
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull Orientation orientation(){
return io.qt.core.Qt.Orientation.resolve(orientation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int orientation_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneWheelEvent:: phase()const
* @since This function was introduced in Qt 6.2.
* @return
*/
@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 QGraphicsSceneWheelEvent:: pixelDelta()const
* @since This function was introduced in Qt 6.2.
* @return
*/
@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 QGraphicsSceneWheelEvent:: pos()const
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF pos(){
return pos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF pos_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneWheelEvent:: scenePos()const
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF scenePos(){
return scenePos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF scenePos_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneWheelEvent:: screenPos()const
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QPoint screenPos(){
return screenPos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPoint screenPos_native_constfct(long __this__nativeId);
/**
* See QGraphicsSceneWheelEvent:: setButtons(Qt::MouseButtons)
* @param buttons
*/
@QtUninvokable
public final void setButtons(io.qt.core.Qt.@NonNull MouseButtons buttons){
setButtons_native_Qt_MouseButtons(QtJambi_LibraryUtilities.internal.nativeId(this), buttons.value());
}
@QtUninvokable
private native void setButtons_native_Qt_MouseButtons(long __this__nativeId, int buttons);
/**
* See QGraphicsSceneWheelEvent:: setDelta(int)
* @param delta
*/
@QtUninvokable
public final void setDelta(int delta){
setDelta_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), delta);
}
@QtUninvokable
private native void setDelta_native_int(long __this__nativeId, int delta);
/**
* See QGraphicsSceneWheelEvent:: setInverted(bool)
* @param inverted
*/
@QtUninvokable
public final void setInverted(boolean inverted){
setInverted_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), inverted);
}
@QtUninvokable
private native void setInverted_native_bool(long __this__nativeId, boolean inverted);
/**
* See QGraphicsSceneWheelEvent:: setModifiers(Qt::KeyboardModifiers)
* @param modifiers
*/
@QtUninvokable
public final void setModifiers(io.qt.core.Qt.@NonNull KeyboardModifiers modifiers){
setModifiers_native_Qt_KeyboardModifiers(QtJambi_LibraryUtilities.internal.nativeId(this), modifiers.value());
}
@QtUninvokable
private native void setModifiers_native_Qt_KeyboardModifiers(long __this__nativeId, int modifiers);
/**
* See QGraphicsSceneWheelEvent:: setOrientation(Qt::Orientation)
* @param orientation
*/
@QtUninvokable
public final void setOrientation(io.qt.core.Qt.@NonNull Orientation orientation){
setOrientation_native_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), orientation.value());
}
@QtUninvokable
private native void setOrientation_native_Qt_Orientation(long __this__nativeId, int orientation);
/**
* See QGraphicsSceneWheelEvent:: setPhase(Qt::ScrollPhase)
* @param scrollPhase
*/
@QtUninvokable
public final void setPhase(io.qt.core.Qt.@NonNull ScrollPhase scrollPhase){
setPhase_native_Qt_ScrollPhase(QtJambi_LibraryUtilities.internal.nativeId(this), scrollPhase.value());
}
@QtUninvokable
private native void setPhase_native_Qt_ScrollPhase(long __this__nativeId, int scrollPhase);
/**
* See QGraphicsSceneWheelEvent:: setPixelDelta(QPoint)
* @param delta
*/
@QtUninvokable
public final void setPixelDelta(io.qt.core.@NonNull QPoint delta){
setPixelDelta_native_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(delta));
}
@QtUninvokable
private native void setPixelDelta_native_QPoint(long __this__nativeId, long delta);
/**
* See QGraphicsSceneWheelEvent:: setPos(QPointF)
* @param pos
*/
@QtUninvokable
public final void setPos(io.qt.core.@NonNull QPointF pos){
setPos_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setPos_native_cref_QPointF(long __this__nativeId, long pos);
/**
* See QGraphicsSceneWheelEvent:: setScenePos(QPointF)
* @param pos
*/
@QtUninvokable
public final void setScenePos(io.qt.core.@NonNull QPointF pos){
setScenePos_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setScenePos_native_cref_QPointF(long __this__nativeId, long pos);
/**
* See QGraphicsSceneWheelEvent:: setScreenPos(QPoint)
* @param pos
*/
@QtUninvokable
public final void setScreenPos(io.qt.core.@NonNull QPoint pos){
setScreenPos_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setScreenPos_native_cref_QPoint(long __this__nativeId, long pos);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QGraphicsSceneWheelEvent(QPrivateConstructor p) { super(p); }
/**
* Overloaded constructor for {@link #QGraphicsSceneWheelEvent(io.qt.core.QEvent.Type)}
* with type = io.qt.core.QEvent.Type.None
.
*/
public QGraphicsSceneWheelEvent() {
this(io.qt.core.QEvent.Type.None);
}
/**
* Overloaded function for {@link #setButtons(io.qt.core.Qt.MouseButtons)}.
*/
@QtUninvokable
public final void setButtons(io.qt.core.Qt.@NonNull MouseButton @NonNull... buttons) {
setButtons(new io.qt.core.Qt.MouseButtons(buttons));
}
/**
* Overloaded function for {@link #setModifiers(io.qt.core.Qt.KeyboardModifiers)}.
*/
@QtUninvokable
public final void setModifiers(io.qt.core.Qt.@NonNull KeyboardModifier @NonNull... modifiers) {
setModifiers(new io.qt.core.Qt.KeyboardModifiers(modifiers));
}
/**
* Overloaded function for {@link #setPos(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setPos(io.qt.core.@NonNull QPoint pos) {
setPos(new io.qt.core.QPointF(pos));
}
/**
* Overloaded function for {@link #setScenePos(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setScenePos(io.qt.core.@NonNull QPoint pos) {
setScenePos(new io.qt.core.QPointF(pos));
}
}