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

io.qt.gui.rhi.QRhiViewport Maven / Gradle / Ivy

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

import io.qt.*;


/**
 * 

Specifies a viewport rectangle

*

Java wrapper for Qt class QRhiViewport

*

This class was introduced in Qt 6.6.

*/ public class QRhiViewport extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QRhiViewport::QRhiViewport()

*/ public QRhiViewport(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QRhiViewport instance); /** *

See QRhiViewport::QRhiViewport(QRhiViewport)

*/ public QRhiViewport(io.qt.gui.rhi.@StrictNonNull QRhiViewport other){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); initialize_native(this, other); } private native static void initialize_native(QRhiViewport instance, io.qt.gui.rhi.QRhiViewport other); /** *

See QRhiViewport::QRhiViewport(float,float,float,float,float,float)

*/ public QRhiViewport(float x, float y, float w, float h, float minDepth, float maxDepth){ super((QPrivateConstructor)null); initialize_native(this, x, y, w, h, minDepth, maxDepth); } private native static void initialize_native(QRhiViewport instance, float x, float y, float w, float h, float minDepth, float maxDepth); /** *

See QRhiViewport::maxDepth()const

*/ @QtUninvokable public final float maxDepth(){ return maxDepth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float maxDepth_native_constfct(long __this__nativeId); /** *

See QRhiViewport::minDepth()const

*/ @QtUninvokable public final float minDepth(){ return minDepth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float minDepth_native_constfct(long __this__nativeId); /** *

See operator==(QRhiViewport,QRhiViewport)

*/ @QtUninvokable public final boolean equals(io.qt.gui.rhi.@StrictNonNull QRhiViewport b){ java.util.Objects.requireNonNull(b, "Argument 'b': null not expected."); return equals_native_cref_QRhiViewport(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(b)); } @QtUninvokable private native boolean equals_native_cref_QRhiViewport(long __this__nativeId, long b); /** *

See QRhiViewport::setMaxDepth(float)

*/ @QtUninvokable public final void setMaxDepth(float maxDepth){ setMaxDepth_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), maxDepth); } @QtUninvokable private native void setMaxDepth_native_float(long __this__nativeId, float maxDepth); /** *

See QRhiViewport::setMinDepth(float)

*/ @QtUninvokable public final void setMinDepth(float minDepth){ setMinDepth_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), minDepth); } @QtUninvokable private native void setMinDepth_native_float(long __this__nativeId, float minDepth); /** *

See QRhiViewport::setViewport(float,float,float,float)

*/ @QtUninvokable public final void setViewport(float x, float y, float w, float h){ setViewport_native_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, w, h); } @QtUninvokable private native void setViewport_native_float_float_float_float(long __this__nativeId, float x, float y, float w, float h); /** *

See QRhiViewport::viewport()const

*/ @QtUninvokable public final float @StrictNonNull[] viewport(){ return viewport_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float[] viewport_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QRhiViewport(QPrivateConstructor p) { super(p); } /** *

See operator==(QRhiViewport,QRhiViewport)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other==null || other instanceof io.qt.gui.rhi.QRhiViewport) { return equals((io.qt.gui.rhi.QRhiViewport) other); } return false; } /** * Returns the objects's hash code computed by qHash(QRhiViewport). */ @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,QRhiViewport)

*/ @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 QRhiViewport::QRhiViewport(QRhiViewport)

*/ @QtUninvokable @Override public QRhiViewport clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QRhiViewport clone_native(long __this_nativeId); /** *

Overloaded constructor for {@link #QRhiViewport(float, float, float, float, float, float)} * with maxDepth = 1.0f.

*/ public QRhiViewport(float x, float y, float w, float h, float minDepth) { this(x, y, w, h, minDepth, (float)1.0f); } /** *

Overloaded constructor for {@link #QRhiViewport(float, float, float, float, float, float)}

*

with:

    *
  • minDepth = 0.0f
  • *
  • maxDepth = 1.0f
  • *
*/ public QRhiViewport(float x, float y, float w, float h) { this(x, y, w, h, (float)0.0f, (float)1.0f); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy