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

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

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

import io.qt.*;


/**
 * 

Swapchain resource

*

Java wrapper for Qt class QRhiSwapChain

*/ public abstract class QRhiSwapChain extends io.qt.gui.rhi.QRhiResource { @QtPropertyMember(enabled=false) private Object __rcDepthStencil = null; @QtPropertyMember(enabled=false) private Object __rcRenderPassDescriptor = null; @QtPropertyMember(enabled=false) private Object __rcWindow = null; @NativeAccess private static final class ConcreteWrapper extends QRhiSwapChain { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public boolean createOrResize(){ return createOrResize_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean createOrResize_native(long __this__nativeId); @Override @QtUninvokable public io.qt.gui.rhi.@Nullable QRhiCommandBuffer currentFrameCommandBuffer(){ return currentFrameCommandBuffer_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.rhi.QRhiCommandBuffer currentFrameCommandBuffer_native(long __this__nativeId); @Override @QtUninvokable public io.qt.gui.rhi.@Nullable QRhiRenderTarget currentFrameRenderTarget(){ return currentFrameRenderTarget_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.rhi.QRhiRenderTarget currentFrameRenderTarget_native(long __this__nativeId); @Override @QtUninvokable public void destroy(){ destroy_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void destroy_native(long __this__nativeId); @Override @QtUninvokable public boolean isFormatSupported(io.qt.gui.rhi.QRhiSwapChain.@NonNull Format f){ return isFormatSupported_native_QRhiSwapChain_Format(QtJambi_LibraryUtilities.internal.nativeId(this), f.value()); } @QtUninvokable private native boolean isFormatSupported_native_QRhiSwapChain_Format(long __this__nativeId, int f); @Override @QtUninvokable public io.qt.gui.rhi.@Nullable QRhiRenderPassDescriptor newCompatibleRenderPassDescriptor(){ return newCompatibleRenderPassDescriptor_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.rhi.QRhiRenderPassDescriptor newCompatibleRenderPassDescriptor_native(long __this__nativeId); @Override @QtUninvokable public io.qt.core.@NonNull QSize surfacePixelSize(){ return surfacePixelSize_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize surfacePixelSize_native(long __this__nativeId); } /** *

Java wrapper for Qt enum QRhiSwapChain::Flag

* * @see Flags */ public enum Flag implements QtFlagEnumerator { /** *

Representing QRhiSwapChain::SurfaceHasPreMulAlpha

*/ SurfaceHasPreMulAlpha(1), /** *

Representing QRhiSwapChain::SurfaceHasNonPreMulAlpha

*/ SurfaceHasNonPreMulAlpha(2), /** *

Representing QRhiSwapChain::sRGB

*/ sRGB(4), /** *

Representing QRhiSwapChain::UsedAsTransferSource

*/ UsedAsTransferSource(8), /** *

Representing QRhiSwapChain::NoVSync

*/ NoVSync(16), /** *

Representing QRhiSwapChain::MinimalBufferCount

*/ MinimalBufferCount(32); static { QtJambi_LibraryUtilities.initialize(); } private Flag(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public @NonNull Flags asFlags() { return new Flags(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull Flags combined(@NonNull Flag e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull Flags cleared(@NonNull Flag e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link Flags} from the entries. * @param values entries * @return new flag */ public static @NonNull Flags flags(@Nullable Flag @NonNull... values) { return new Flags(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Flag resolve(int value) { switch (value) { case 1: return SurfaceHasPreMulAlpha; case 2: return SurfaceHasNonPreMulAlpha; case 4: return sRGB; case 8: return UsedAsTransferSource; case 16: return NoVSync; case 32: return MinimalBufferCount; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link Flag} */ public static final class Flags extends QFlags implements Comparable { private static final long serialVersionUID = 0x92d9bce6c929c1c6L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new Flags where the flags in args are set. * @param args enum entries */ public Flags(@Nullable Flag @NonNull... args){ super(args); } /** * Creates a new Flags with given value. * @param value */ public Flags(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new Flags */ @Override public final @NonNull Flags combined(@StrictNonNull Flag e){ return new Flags(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final @NonNull Flags setFlag(@Nullable Flag e){ return setFlag(e, true); } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final @NonNull Flags setFlag(@Nullable Flag e, boolean on){ if (on) { setValue(value() | e.value()); }else { setValue(value() & ~e.value()); } return this; } /** * Returns an array of flag objects represented by this Flags. * @return array of enum entries */ @Override public final @NonNull Flag @NonNull[] flags(){ return super.flags(Flag.values()); } /** * {@inheritDoc} */ @Override public final @NonNull Flags clone(){ return new Flags(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull Flags other){ return Integer.compare(value(), other.value()); } } /** *

Java wrapper for Qt enum QRhiSwapChain::Format

*/ public enum Format implements QtEnumerator { /** *

Representing QRhiSwapChain::SDR

*/ SDR(0), /** *

Representing QRhiSwapChain::HDRExtendedSrgbLinear

*/ HDRExtendedSrgbLinear(1), /** *

Representing QRhiSwapChain::HDR10

*/ HDR10(2); static { QtJambi_LibraryUtilities.initialize(); } private Format(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 Format resolve(int value) { switch (value) { case 0: return SDR; case 1: return HDRExtendedSrgbLinear; case 2: return HDR10; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QRhiSwapChain::StereoTargetBuffer

*/ public enum StereoTargetBuffer implements QtEnumerator { /** *

Representing QRhiSwapChain::LeftBuffer

*/ LeftBuffer(0), /** *

Representing QRhiSwapChain::RightBuffer

*/ RightBuffer(1); static { QtJambi_LibraryUtilities.initialize(); } private StereoTargetBuffer(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 StereoTargetBuffer resolve(int value) { switch (value) { case 0: return LeftBuffer; case 1: return RightBuffer; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QRhiSwapChain::currentPixelSize()const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize currentPixelSize(){ return currentPixelSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize currentPixelSize_native_constfct(long __this__nativeId); /** *

See QRhiSwapChain::depthStencil()const

*/ @QtUninvokable public final io.qt.gui.rhi.@Nullable QRhiRenderBuffer depthStencil(){ return depthStencil_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.rhi.QRhiRenderBuffer depthStencil_native_constfct(long __this__nativeId); /** *

See QRhiSwapChain::flags()const

*/ @QtUninvokable public final io.qt.gui.rhi.QRhiSwapChain.@NonNull Flags flags(){ return new io.qt.gui.rhi.QRhiSwapChain.Flags(flags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int flags_native_constfct(long __this__nativeId); /** *

See QRhiSwapChain::format()const

*/ @QtUninvokable public final io.qt.gui.rhi.QRhiSwapChain.@NonNull Format format(){ return io.qt.gui.rhi.QRhiSwapChain.Format.resolve(format_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int format_native_constfct(long __this__nativeId); /** *

See QRhiSwapChain::proxyData()const

*/ @QtUninvokable public final io.qt.gui.rhi.@NonNull QRhiSwapChainProxyData proxyData(){ return proxyData_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.rhi.QRhiSwapChainProxyData proxyData_native_constfct(long __this__nativeId); /** *

See QRhiSwapChain::renderPassDescriptor()const

*/ @QtUninvokable public final io.qt.gui.rhi.@Nullable QRhiRenderPassDescriptor renderPassDescriptor(){ return renderPassDescriptor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.rhi.QRhiRenderPassDescriptor renderPassDescriptor_native_constfct(long __this__nativeId); /** *

See QRhiSwapChain::sampleCount()const

*/ @QtUninvokable public final int sampleCount(){ return sampleCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int sampleCount_native_constfct(long __this__nativeId); /** *

See QRhiSwapChain::setDepthStencil(QRhiRenderBuffer*)

*/ @QtUninvokable public final void setDepthStencil(io.qt.gui.rhi.@Nullable QRhiRenderBuffer ds){ setDepthStencil_native_QRhiRenderBuffer_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ds)); __rcDepthStencil = ds; } @QtUninvokable private native void setDepthStencil_native_QRhiRenderBuffer_ptr(long __this__nativeId, long ds); /** *

See QRhiSwapChain::setFlags(QRhiSwapChain::Flags)

*/ @QtUninvokable public final void setFlags(io.qt.gui.rhi.QRhiSwapChain.@NonNull Flags f){ setFlags_native_QRhiSwapChain_Flags(QtJambi_LibraryUtilities.internal.nativeId(this), f.value()); } @QtUninvokable private native void setFlags_native_QRhiSwapChain_Flags(long __this__nativeId, int f); /** *

See QRhiSwapChain::setFormat(QRhiSwapChain::Format)

*/ @QtUninvokable public final void setFormat(io.qt.gui.rhi.QRhiSwapChain.@NonNull Format f){ setFormat_native_QRhiSwapChain_Format(QtJambi_LibraryUtilities.internal.nativeId(this), f.value()); } @QtUninvokable private native void setFormat_native_QRhiSwapChain_Format(long __this__nativeId, int f); /** *

See QRhiSwapChain::setProxyData(QRhiSwapChainProxyData)

*/ @QtUninvokable public final void setProxyData(io.qt.gui.rhi.@StrictNonNull QRhiSwapChainProxyData d){ java.util.Objects.requireNonNull(d, "Argument 'd': null not expected."); setProxyData_native_cref_QRhiSwapChainProxyData(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(d)); } @QtUninvokable private native void setProxyData_native_cref_QRhiSwapChainProxyData(long __this__nativeId, long d); /** *

See QRhiSwapChain::setRenderPassDescriptor(QRhiRenderPassDescriptor*)

*/ @QtUninvokable public final void setRenderPassDescriptor(io.qt.gui.rhi.@Nullable QRhiRenderPassDescriptor desc){ setRenderPassDescriptor_native_QRhiRenderPassDescriptor_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(desc)); __rcRenderPassDescriptor = desc; } @QtUninvokable private native void setRenderPassDescriptor_native_QRhiRenderPassDescriptor_ptr(long __this__nativeId, long desc); /** *

See QRhiSwapChain::setSampleCount(int)

*/ @QtUninvokable public final void setSampleCount(int samples){ setSampleCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), samples); } @QtUninvokable private native void setSampleCount_native_int(long __this__nativeId, int samples); /** *

See QRhiSwapChain::setWindow(QWindow*)

*/ @QtUninvokable public final void setWindow(io.qt.gui.@Nullable QWindow window){ setWindow_native_QWindow_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(window)); __rcWindow = window; } @QtUninvokable private native void setWindow_native_QWindow_ptr(long __this__nativeId, long window); /** *

See QRhiSwapChain::window()const

*/ @QtUninvokable public final io.qt.gui.@Nullable QWindow window(){ return window_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QWindow window_native_constfct(long __this__nativeId); /** *

See QRhiSwapChain::createOrResize()

*/ @QtUninvokable public abstract boolean createOrResize(); @QtUninvokable private native boolean createOrResize_native(long __this__nativeId); /** *

See QRhiSwapChain::currentFrameCommandBuffer()

*/ @QtUninvokable public abstract io.qt.gui.rhi.@Nullable QRhiCommandBuffer currentFrameCommandBuffer(); @QtUninvokable private native io.qt.gui.rhi.QRhiCommandBuffer currentFrameCommandBuffer_native(long __this__nativeId); /** *

See QRhiSwapChain::currentFrameRenderTarget()

*/ @QtUninvokable public abstract io.qt.gui.rhi.@Nullable QRhiRenderTarget currentFrameRenderTarget(); @QtUninvokable private native io.qt.gui.rhi.QRhiRenderTarget currentFrameRenderTarget_native(long __this__nativeId); /** *

See QRhiSwapChain::currentFrameRenderTarget(QRhiSwapChain::StereoTargetBuffer)

*/ @QtUninvokable public io.qt.gui.rhi.@Nullable QRhiRenderTarget currentFrameRenderTarget(io.qt.gui.rhi.QRhiSwapChain.@NonNull StereoTargetBuffer targetBuffer){ return currentFrameRenderTarget_native_QRhiSwapChain_StereoTargetBuffer(QtJambi_LibraryUtilities.internal.nativeId(this), targetBuffer.value()); } @QtUninvokable private native io.qt.gui.rhi.QRhiRenderTarget currentFrameRenderTarget_native_QRhiSwapChain_StereoTargetBuffer(long __this__nativeId, int targetBuffer); /** *

See QRhiSwapChain::hdrInfo()

*/ @QtUninvokable public io.qt.gui.rhi.@NonNull QRhiSwapChainHdrInfo hdrInfo(){ return hdrInfo_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.rhi.QRhiSwapChainHdrInfo hdrInfo_native(long __this__nativeId); /** *

See QRhiSwapChain::isFormatSupported(QRhiSwapChain::Format)

*/ @QtUninvokable public abstract boolean isFormatSupported(io.qt.gui.rhi.QRhiSwapChain.@NonNull Format f); @QtUninvokable private native boolean isFormatSupported_native_QRhiSwapChain_Format(long __this__nativeId, int f); /** *

See QRhiSwapChain::newCompatibleRenderPassDescriptor()

*/ @QtUninvokable public abstract io.qt.gui.rhi.@Nullable QRhiRenderPassDescriptor newCompatibleRenderPassDescriptor(); @QtUninvokable private native io.qt.gui.rhi.QRhiRenderPassDescriptor newCompatibleRenderPassDescriptor_native(long __this__nativeId); /** *

See QRhiResource::resourceType()const

*/ @QtUninvokable @Override public io.qt.gui.rhi.QRhiResource.@NonNull Type resourceType(){ return io.qt.gui.rhi.QRhiResource.Type.resolve(resourceType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int resourceType_native_constfct(long __this__nativeId); /** *

See QRhiSwapChain::surfacePixelSize()

*/ @QtUninvokable public abstract io.qt.core.@NonNull QSize surfacePixelSize(); @QtUninvokable private native io.qt.core.QSize surfacePixelSize_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QRhiSwapChain(QPrivateConstructor p) { super(p); } /** *

Overloaded function for {@link #setFlags(io.qt.gui.rhi.QRhiSwapChain.Flags)}.

*/ @QtUninvokable public final void setFlags(io.qt.gui.rhi.QRhiSwapChain.@NonNull Flag @NonNull... f) { setFlags(new io.qt.gui.rhi.QRhiSwapChain.Flags(f)); } /** *

Overloaded function for {@link #setProxyData(io.qt.gui.rhi.QRhiSwapChainProxyData)}.

*/ @QtUninvokable public final void setProxyData(@StrictNonNull QNativePointer d) { setProxyData(new io.qt.gui.rhi.QRhiSwapChainProxyData(d)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy