All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QScrollEvent Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
package io.qt.gui;


/**
 * 

Sent when scrolling

*

Java wrapper for Qt class QScrollEvent

*/ public class QScrollEvent extends io.qt.core.QEvent { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QScrollEvent::ScrollState

*/ public enum ScrollState implements io.qt.QtEnumerator { ScrollStarted(0), ScrollUpdated(1), ScrollFinished(2); private ScrollState(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static ScrollState resolve(int value) { switch (value) { case 0: return ScrollStarted; case 1: return ScrollUpdated; case 2: return ScrollFinished; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QScrollEvent::QScrollEvent(QPointF,QPointF,QScrollEvent::ScrollState)

*/ public QScrollEvent(io.qt.core.QPointF contentPos, io.qt.core.QPointF overshoot, io.qt.gui.QScrollEvent.ScrollState scrollState){ super((QPrivateConstructor)null); initialize_native(this, contentPos, overshoot, scrollState); } private native static void initialize_native(QScrollEvent instance, io.qt.core.QPointF contentPos, io.qt.core.QPointF overshoot, io.qt.gui.QScrollEvent.ScrollState scrollState); protected QScrollEvent(io.qt.gui.QScrollEvent 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(QScrollEvent instance, io.qt.gui.QScrollEvent arg__1); /** *

See QScrollEvent::contentPos()const

*/ @io.qt.QtUninvokable public final io.qt.core.QPointF contentPos(){ return contentPos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QPointF contentPos_native_constfct(long __this__nativeId); @io.qt.QtUninvokable protected final void set(io.qt.gui.QScrollEvent other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); set_native_cref_QScrollEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void set_native_cref_QScrollEvent(long __this__nativeId, long other); /** *

See QScrollEvent::overshootDistance()const

*/ @io.qt.QtUninvokable public final io.qt.core.QPointF overshootDistance(){ return overshootDistance_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QPointF overshootDistance_native_constfct(long __this__nativeId); /** *

See QScrollEvent::scrollState()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QScrollEvent.ScrollState scrollState(){ return io.qt.gui.QScrollEvent.ScrollState.resolve(scrollState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int scrollState_native_constfct(long __this__nativeId); /** *

See QEvent::clone()const

*/ @io.qt.QtUninvokable public io.qt.gui.QScrollEvent clone(){ return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QScrollEvent clone_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QScrollEvent(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