io.qt.gui.rhi.QRhiSwapChainHdrInfo Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui.rhi;
import io.qt.*;
/**
* Describes the high dynamic range related information of the swapchain's associated output
* Java wrapper for Qt class QRhiSwapChainHdrInfo
*/
public class QRhiSwapChainHdrInfo extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QRhiSwapChainHdrInfo::LimitsType
*/
public enum LimitsType implements QtEnumerator {
/**
* Representing QRhiSwapChainHdrInfo:: LuminanceInNits
*/
LuminanceInNits(0),
/**
* Representing QRhiSwapChainHdrInfo:: ColorComponentValue
*/
ColorComponentValue(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private LimitsType(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 @NonNull LimitsType resolve(int value) {
switch (value) {
case 0: return LuminanceInNits;
case 1: return ColorComponentValue;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QRhiSwapChainHdrInfo::LuminanceBehavior
*/
public enum LuminanceBehavior implements QtEnumerator {
/**
* Representing QRhiSwapChainHdrInfo:: SceneReferred
*/
SceneReferred(0),
/**
* Representing QRhiSwapChainHdrInfo:: DisplayReferred
*/
DisplayReferred(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private LuminanceBehavior(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 @NonNull LuminanceBehavior resolve(int value) {
switch (value) {
case 0: return SceneReferred;
case 1: return DisplayReferred;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QRhiSwapChainHdrInfo:: QRhiSwapChainHdrInfo()
*/
public QRhiSwapChainHdrInfo(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRhiSwapChainHdrInfo instance);
/**
* See QRhiSwapChainHdrInfo:: QRhiSwapChainHdrInfo(QRhiSwapChainHdrInfo)
*/
public QRhiSwapChainHdrInfo(io.qt.gui.rhi.@StrictNonNull QRhiSwapChainHdrInfo other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QRhiSwapChainHdrInfo instance, io.qt.gui.rhi.QRhiSwapChainHdrInfo other);
/**
* See QRhiSwapChainHdrInfo:: QRhiSwapChainHdrInfo{QRhiSwapChainHdrInfo::LimitsType, decltype{std::declval<QRhiSwapChainHdrInfo>{}.limits}, QRhiSwapChainHdrInfo::LuminanceBehavior, float}
*/
public QRhiSwapChainHdrInfo(io.qt.gui.rhi.QRhiSwapChainHdrInfo.@NonNull LimitsType limitsType, float @StrictNonNull[] limits, io.qt.gui.rhi.QRhiSwapChainHdrInfo.@NonNull LuminanceBehavior luminanceBehavior, float sdrWhiteLevel){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(limits, "Argument 'limits': null not expected.");
initialize_native(this, limitsType, limits, luminanceBehavior, sdrWhiteLevel);
}
private native static void initialize_native(QRhiSwapChainHdrInfo instance, io.qt.gui.rhi.QRhiSwapChainHdrInfo.LimitsType limitsType, float[] limits, io.qt.gui.rhi.QRhiSwapChainHdrInfo.LuminanceBehavior luminanceBehavior, float sdrWhiteLevel);
/**
* See QRhiSwapChainHdrInfo:: limits
*/
@QtUninvokable
public final void setLimits(float @StrictNonNull[] limits){
java.util.Objects.requireNonNull(limits, "Argument 'limits': null not expected.");
setLimits_native_cref_decltype_std_declval_QRhiSwapChainHdrInfo____limits_(QtJambi_LibraryUtilities.internal.nativeId(this), limits);
}
@QtUninvokable
private native void setLimits_native_cref_decltype_std_declval_QRhiSwapChainHdrInfo____limits_(long __this__nativeId, float[] limits);
/**
* See QRhiSwapChainHdrInfo:: limits
*/
@QtUninvokable
public final float[] limits(){
return limits_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float[] limits_native(long __this__nativeId);
/**
* See QRhiSwapChainHdrInfo:: limitsType
*/
@QtUninvokable
public final void setLimitsType(io.qt.gui.rhi.QRhiSwapChainHdrInfo.@NonNull LimitsType limitsType){
setLimitsType_native_cref_QRhiSwapChainHdrInfo_LimitsType(QtJambi_LibraryUtilities.internal.nativeId(this), limitsType.value());
}
@QtUninvokable
private native void setLimitsType_native_cref_QRhiSwapChainHdrInfo_LimitsType(long __this__nativeId, int limitsType);
/**
* See QRhiSwapChainHdrInfo:: limitsType
*/
@QtUninvokable
public final io.qt.gui.rhi.QRhiSwapChainHdrInfo.@NonNull LimitsType limitsType(){
return io.qt.gui.rhi.QRhiSwapChainHdrInfo.LimitsType.resolve(limitsType_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int limitsType_native(long __this__nativeId);
/**
* See QRhiSwapChainHdrInfo:: luminanceBehavior
*/
@QtUninvokable
public final void setLuminanceBehavior(io.qt.gui.rhi.QRhiSwapChainHdrInfo.@NonNull LuminanceBehavior luminanceBehavior){
setLuminanceBehavior_native_cref_QRhiSwapChainHdrInfo_LuminanceBehavior(QtJambi_LibraryUtilities.internal.nativeId(this), luminanceBehavior.value());
}
@QtUninvokable
private native void setLuminanceBehavior_native_cref_QRhiSwapChainHdrInfo_LuminanceBehavior(long __this__nativeId, int luminanceBehavior);
/**
* See QRhiSwapChainHdrInfo:: luminanceBehavior
*/
@QtUninvokable
public final io.qt.gui.rhi.QRhiSwapChainHdrInfo.@NonNull LuminanceBehavior luminanceBehavior(){
return io.qt.gui.rhi.QRhiSwapChainHdrInfo.LuminanceBehavior.resolve(luminanceBehavior_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int luminanceBehavior_native(long __this__nativeId);
/**
* See QRhiSwapChainHdrInfo:: sdrWhiteLevel
*/
@QtUninvokable
public final void setSdrWhiteLevel(float sdrWhiteLevel){
setSdrWhiteLevel_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), sdrWhiteLevel);
}
@QtUninvokable
private native void setSdrWhiteLevel_native_float(long __this__nativeId, float sdrWhiteLevel);
/**
* See QRhiSwapChainHdrInfo:: sdrWhiteLevel
*/
@QtUninvokable
public final float sdrWhiteLevel(){
return sdrWhiteLevel_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float sdrWhiteLevel_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRhiSwapChainHdrInfo(QPrivateConstructor p) { super(p); }
@QtUninvokable
public final void setColorComponentValue(float maxColorComponentValue, float maxPotentialColorComponentValue) {
setLimits(new float[] {maxColorComponentValue, maxPotentialColorComponentValue});
setLimitsType(LimitsType.ColorComponentValue);
}
@QtUninvokable
public final void setLuminanceInNits(float minLuminance, float maxLuminance) {
setLimits(new float[] {minLuminance, maxLuminance});
setLimitsType(LimitsType.LuminanceInNits);
}
/**
* See operator<<(QDebug, QRhiSwapChainHdrInfo)
*/
@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 QRhiSwapChainHdrInfo:: QRhiSwapChainHdrInfo(QRhiSwapChainHdrInfo)
*/
@QtUninvokable
@Override
public QRhiSwapChainHdrInfo clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QRhiSwapChainHdrInfo clone_native(long __this_nativeId);
/**
* @hidden
* Kotlin property getter. In Java use {@link #limits()} instead.
*/
@QtUninvokable
public final float[] getLimits() {
return limits();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #limitsType()} instead.
*/
@QtUninvokable
public final io.qt.gui.rhi.QRhiSwapChainHdrInfo.@NonNull LimitsType getLimitsType() {
return limitsType();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #luminanceBehavior()} instead.
*/
@QtUninvokable
public final io.qt.gui.rhi.QRhiSwapChainHdrInfo.@NonNull LuminanceBehavior getLuminanceBehavior() {
return luminanceBehavior();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #sdrWhiteLevel()} instead.
*/
@QtUninvokable
public final float getSdrWhiteLevel() {
return sdrWhiteLevel();
}
}