io.qt.gui.QScrollPrepareEvent Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Sent in preparation of scrolling
* Java wrapper for Qt class QScrollPrepareEvent
*/
public class QScrollPrepareEvent extends io.qt.core.QEvent
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QScrollPrepareEvent:: QScrollPrepareEvent(QPointF)
*/
public QScrollPrepareEvent(io.qt.core.@NonNull QPointF startPos){
super((QPrivateConstructor)null);
initialize_native(this, startPos);
}
private native static void initialize_native(QScrollPrepareEvent instance, io.qt.core.QPointF startPos);
/**
* See QScrollPrepareEvent:: QScrollPrepareEvent(QScrollPrepareEvent)
*/
protected QScrollPrepareEvent(io.qt.gui.@StrictNonNull QScrollPrepareEvent 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(QScrollPrepareEvent instance, io.qt.gui.QScrollPrepareEvent arg__1);
/**
* See QScrollPrepareEvent:: contentPos()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF contentPos(){
return contentPos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF contentPos_native_constfct(long __this__nativeId);
/**
* See QScrollPrepareEvent:: contentPosRange()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QRectF contentPosRange(){
return contentPosRange_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRectF contentPosRange_native_constfct(long __this__nativeId);
/**
* See QScrollPrepareEvent:: operator=(QScrollPrepareEvent)
*/
@QtUninvokable
protected final void assign(io.qt.gui.@StrictNonNull QScrollPrepareEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
assign_native_cref_QScrollPrepareEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QScrollPrepareEvent(long __this__nativeId, long other);
/**
* See QScrollPrepareEvent:: setContentPos(QPointF)
*/
@QtUninvokable
public final void setContentPos(io.qt.core.@NonNull QPointF pos){
setContentPos_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native void setContentPos_native_cref_QPointF(long __this__nativeId, long pos);
/**
* See QScrollPrepareEvent:: setContentPosRange(QRectF)
*/
@QtUninvokable
public final void setContentPosRange(io.qt.core.@NonNull QRectF rect){
setContentPosRange_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@QtUninvokable
private native void setContentPosRange_native_cref_QRectF(long __this__nativeId, long rect);
/**
* See QScrollPrepareEvent:: setViewportSize(QSizeF)
*/
@QtUninvokable
public final void setViewportSize(io.qt.core.@NonNull QSizeF size){
setViewportSize_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
@QtUninvokable
private native void setViewportSize_native_cref_QSizeF(long __this__nativeId, long size);
/**
* See QScrollPrepareEvent:: startPos()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF startPos(){
return startPos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF startPos_native_constfct(long __this__nativeId);
/**
* See QScrollPrepareEvent:: viewportSize()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF viewportSize(){
return viewportSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSizeF viewportSize_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public io.qt.gui.@Nullable QScrollPrepareEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QScrollPrepareEvent clone_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QScrollPrepareEvent(QPrivateConstructor p) { super(p); }
/**
* Overloaded constructor for {@link #QScrollPrepareEvent(io.qt.core.QPointF)}.
*/
public QScrollPrepareEvent(io.qt.core.@NonNull QPoint startPos) {
this(new io.qt.core.QPointF(startPos));
}
/**
* @deprecated Use {@link #assign(io.qt.gui.QScrollPrepareEvent)} instead.
*/
@Deprecated
@QtUninvokable
protected final void set(io.qt.gui.@StrictNonNull QScrollPrepareEvent other) {
assign(other);
}
/**
* Overloaded function for {@link #setContentPos(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final void setContentPos(io.qt.core.@NonNull QPoint pos) {
setContentPos(new io.qt.core.QPointF(pos));
}
/**
* Overloaded function for {@link #setContentPosRange(io.qt.core.QRectF)}.
*/
@QtUninvokable
public final void setContentPosRange(io.qt.core.@NonNull QRect rect) {
setContentPosRange(new io.qt.core.QRectF(rect));
}
/**
* Overloaded function for {@link #setViewportSize(io.qt.core.QSizeF)}.
*/
@QtUninvokable
public final void setViewportSize(io.qt.core.@NonNull QSize size) {
setViewportSize(new io.qt.core.QSizeF(size));
}
}