io.qt.gui.rhi.QRhiScissor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.gui.rhi;
import io.qt.*;
/**
* Specifies a scissor rectangle
* Java wrapper for Qt class QRhiScissor
* This class was introduced in Qt 6.6.
*/
public class QRhiScissor extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QRhiScissor:: QRhiScissor()
*/
public QRhiScissor(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRhiScissor instance);
/**
* See QRhiScissor:: QRhiScissor(QRhiScissor)
*/
public QRhiScissor(io.qt.gui.rhi.@StrictNonNull QRhiScissor other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QRhiScissor instance, io.qt.gui.rhi.QRhiScissor other);
/**
* See QRhiScissor:: QRhiScissor(int, int, int, int)
*/
public QRhiScissor(int x, int y, int w, int h){
super((QPrivateConstructor)null);
initialize_native(this, x, y, w, h);
}
private native static void initialize_native(QRhiScissor instance, int x, int y, int w, int h);
/**
* See operator==(QRhiScissor, QRhiScissor)
*/
@QtUninvokable
public final boolean equals(io.qt.gui.rhi.@StrictNonNull QRhiScissor b){
java.util.Objects.requireNonNull(b, "Argument 'b': null not expected.");
return equals_native_cref_QRhiScissor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(b));
}
@QtUninvokable
private native boolean equals_native_cref_QRhiScissor(long __this__nativeId, long b);
/**
* See QRhiScissor:: scissor()const
*/
@QtUninvokable
public final int @StrictNonNull[] scissor(){
return scissor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int[] scissor_native_constfct(long __this__nativeId);
/**
* See QRhiScissor:: setScissor(int, int, int, int)
*/
@QtUninvokable
public final void setScissor(int x, int y, int w, int h){
setScissor_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, w, h);
}
@QtUninvokable
private native void setScissor_native_int_int_int_int(long __this__nativeId, int x, int y, int w, int h);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRhiScissor(QPrivateConstructor p) { super(p); }
/**
* See operator==(QRhiScissor, QRhiScissor)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.gui.rhi.QRhiScissor) {
return equals((io.qt.gui.rhi.QRhiScissor) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QRhiScissor)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* See operator<<(QDebug, QRhiScissor)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QRhiScissor:: QRhiScissor(QRhiScissor)
*/
@QtUninvokable
@Override
public QRhiScissor clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QRhiScissor clone_native(long __this_nativeId);
}