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;
}
/**
* 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{bool, QRhiSwapChainHdrInfo::LimitsType, decltype{std::declval<QRhiSwapChainHdrInfo>{}.limits}}
*/
public QRhiSwapChainHdrInfo(boolean isHardCodedDefaults, io.qt.gui.rhi.QRhiSwapChainHdrInfo.@NonNull LimitsType limitsType, float @StrictNonNull[] limits){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(limits, "Argument 'limits': null not expected.");
initialize_native(this, isHardCodedDefaults, limitsType, limits);
}
private native static void initialize_native(QRhiSwapChainHdrInfo instance, boolean isHardCodedDefaults, io.qt.gui.rhi.QRhiSwapChainHdrInfo.LimitsType limitsType, float[] limits);
/**
* See QRhiSwapChainHdrInfo:: isHardCodedDefaults
*/
@QtUninvokable
public final void setIsHardCodedDefaults(boolean isHardCodedDefaults){
setIsHardCodedDefaults_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), isHardCodedDefaults);
}
@QtUninvokable
private native void setIsHardCodedDefaults_native_bool(long __this__nativeId, boolean isHardCodedDefaults);
/**
* See QRhiSwapChainHdrInfo:: isHardCodedDefaults
*/
@QtUninvokable
public final boolean isHardCodedDefaults(){
return isHardCodedDefaults_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isHardCodedDefaults_native(long __this__nativeId);
/**
* 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);
/**
* 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 #isHardCodedDefaults()} instead.
*/
@QtUninvokable
public final boolean getIsHardCodedDefaults() {
return isHardCodedDefaults();
}
/**
* @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();
}
}