io.qt.widgets.QRhiWidget Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Java wrapper for Qt class QRhiWidget
*/
public class QRhiWidget extends io.qt.widgets.QWidget
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QRhiWidget.class);
/**
* Java wrapper for Qt enum QRhiWidget::Api
*/
public enum Api implements QtEnumerator {
/**
* Representing QRhiWidget:: Api:: Null
*/
Null(0),
/**
* Representing QRhiWidget:: Api:: OpenGL
*/
OpenGL(1),
/**
* Representing QRhiWidget:: Api:: Metal
*/
Metal(2),
/**
* Representing QRhiWidget:: Api:: Vulkan
*/
Vulkan(3),
/**
* Representing QRhiWidget:: Api:: Direct3D11
*/
Direct3D11(4),
/**
* Representing QRhiWidget:: Api:: Direct3D12
*/
Direct3D12(5);
static {
QtJambi_LibraryUtilities.initialize();
}
private Api(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 Api resolve(int value) {
switch (value) {
case 0: return Null;
case 1: return OpenGL;
case 2: return Metal;
case 3: return Vulkan;
case 4: return Direct3D11;
case 5: return Direct3D12;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QRhiWidget::TextureFormat
*/
public enum TextureFormat implements QtEnumerator {
/**
* Representing QRhiWidget:: TextureFormat:: RGBA8
*/
RGBA8(0),
/**
* Representing QRhiWidget:: TextureFormat:: RGBA16F
*/
RGBA16F(1),
/**
* Representing QRhiWidget:: TextureFormat:: RGBA32F
*/
RGBA32F(2),
/**
* Representing QRhiWidget:: TextureFormat:: RGB10A2
*/
RGB10A2(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private TextureFormat(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 TextureFormat resolve(int value) {
switch (value) {
case 0: return RGBA8;
case 1: return RGBA16F;
case 2: return RGBA32F;
case 3: return RGB10A2;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QRhiWidget:: colorBufferFormatChanged(QRhiWidget::TextureFormat)
*/
@QtPropertyNotify(name="colorBufferFormat")
public final @NonNull Signal1 colorBufferFormatChanged = new Signal1<>();
/**
* See QRhiWidget:: fixedColorBufferSizeChanged(QSize)
*/
@QtPropertyNotify(name="fixedColorBufferSize")
public final @NonNull Signal1 fixedColorBufferSizeChanged = new Signal1<>();
/**
* See QRhiWidget:: frameSubmitted()
*/
public final @NonNull Signal0 frameSubmitted = new Signal0();
/**
* See QRhiWidget:: mirrorVerticallyChanged(bool)
*/
@QtPropertyNotify(name="mirrorVertically")
public final @NonNull Signal1 mirrorVerticallyChanged = new Signal1<>();
/**
* See QRhiWidget:: renderFailed()
*/
public final @NonNull Signal0 renderFailed = new Signal0();
/**
* See QRhiWidget:: sampleCountChanged(int)
*/
@QtPropertyNotify(name="sampleCount")
public final @NonNull Signal1 sampleCountChanged = new Signal1<>();
/**
* See QRhiWidget:: QRhiWidget(QWidget*, Qt::WindowFlags)
*/
public QRhiWidget(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowFlags f){
super((QPrivateConstructor)null);
initialize_native(this, parent, f);
}
private native static void initialize_native(QRhiWidget instance, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags f);
/**
* See QRhiWidget:: api()const
*/
@QtUninvokable
public final io.qt.widgets.QRhiWidget.@NonNull Api api(){
return io.qt.widgets.QRhiWidget.Api.resolve(api_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int api_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: colorBufferFormat()const
*/
@QtPropertyReader(name="colorBufferFormat")
@QtUninvokable
public final io.qt.widgets.QRhiWidget.@NonNull TextureFormat colorBufferFormat(){
return io.qt.widgets.QRhiWidget.TextureFormat.resolve(colorBufferFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int colorBufferFormat_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: colorTexture()const
*/
@QtUninvokable
protected final io.qt.gui.rhi.@Nullable QRhiTexture colorTexture(){
return colorTexture_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiTexture colorTexture_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: depthStencilBuffer()const
*/
@QtUninvokable
protected final io.qt.gui.rhi.@Nullable QRhiRenderBuffer depthStencilBuffer(){
return depthStencilBuffer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiRenderBuffer depthStencilBuffer_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: fixedColorBufferSize()const
*/
@QtPropertyReader(name="fixedColorBufferSize")
@QtUninvokable
public final io.qt.core.@NonNull QSize fixedColorBufferSize(){
return fixedColorBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize fixedColorBufferSize_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: grabFramebuffer()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QImage grabFramebuffer(){
return grabFramebuffer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QImage grabFramebuffer_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: isAutoRenderTargetEnabled()const
*/
@QtUninvokable
protected final boolean isAutoRenderTargetEnabled(){
return isAutoRenderTargetEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isAutoRenderTargetEnabled_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: isDebugLayerEnabled()const
*/
@QtUninvokable
public final boolean isDebugLayerEnabled(){
return isDebugLayerEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDebugLayerEnabled_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: isMirrorVerticallyEnabled()const
*/
@QtPropertyReader(name="mirrorVertically")
@QtUninvokable
public final boolean isMirrorVerticallyEnabled(){
return isMirrorVerticallyEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isMirrorVerticallyEnabled_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: msaaColorBuffer()const
*/
@QtUninvokable
protected final io.qt.gui.rhi.@Nullable QRhiRenderBuffer msaaColorBuffer(){
return msaaColorBuffer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiRenderBuffer msaaColorBuffer_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: renderTarget()const
*/
@QtUninvokable
protected final io.qt.gui.rhi.@Nullable QRhiRenderTarget renderTarget(){
return renderTarget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiRenderTarget renderTarget_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: resolveTexture()const
*/
@QtUninvokable
protected final io.qt.gui.rhi.@Nullable QRhiTexture resolveTexture(){
return resolveTexture_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiTexture resolveTexture_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: rhi()const
*/
@QtUninvokable
protected final io.qt.gui.rhi.@Nullable QRhi rhi(){
return rhi_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhi rhi_native_constfct(long __this__nativeId);
/**
* See QRhiWidget:: sampleCount()const
*/
@QtPropertyReader(name="sampleCount")
@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 QRhiWidget:: setApi(QRhiWidget::Api)
*/
@QtUninvokable
public final void setApi(io.qt.widgets.QRhiWidget.@NonNull Api api){
setApi_native_QRhiWidget_Api(QtJambi_LibraryUtilities.internal.nativeId(this), api.value());
}
@QtUninvokable
private native void setApi_native_QRhiWidget_Api(long __this__nativeId, int api);
/**
* See QRhiWidget:: setAutoRenderTarget(bool)
*/
@QtUninvokable
protected final void setAutoRenderTarget(boolean enabled){
setAutoRenderTarget_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@QtUninvokable
private native void setAutoRenderTarget_native_bool(long __this__nativeId, boolean enabled);
/**
* See QRhiWidget:: setColorBufferFormat(QRhiWidget::TextureFormat)
*/
@QtPropertyWriter(name="colorBufferFormat")
@QtUninvokable
public final void setColorBufferFormat(io.qt.widgets.QRhiWidget.@NonNull TextureFormat format){
setColorBufferFormat_native_QRhiWidget_TextureFormat(QtJambi_LibraryUtilities.internal.nativeId(this), format.value());
}
@QtUninvokable
private native void setColorBufferFormat_native_QRhiWidget_TextureFormat(long __this__nativeId, int format);
/**
* See QRhiWidget:: setDebugLayerEnabled(bool)
*/
@QtUninvokable
public final void setDebugLayerEnabled(boolean enable){
setDebugLayerEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable);
}
@QtUninvokable
private native void setDebugLayerEnabled_native_bool(long __this__nativeId, boolean enable);
/**
* See QRhiWidget:: setFixedColorBufferSize(QSize)
*/
@QtPropertyWriter(name="fixedColorBufferSize")
@QtUninvokable
public final void setFixedColorBufferSize(io.qt.core.@NonNull QSize pixelSize){
setFixedColorBufferSize_native_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pixelSize));
}
@QtUninvokable
private native void setFixedColorBufferSize_native_QSize(long __this__nativeId, long pixelSize);
/**
* See QRhiWidget:: setFixedColorBufferSize(int, int)
*/
@QtPropertyWriter(name="fixedColorBufferSize")
@QtUninvokable
public final void setFixedColorBufferSize(int w, int h){
setFixedColorBufferSize_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), w, h);
}
@QtUninvokable
private native void setFixedColorBufferSize_native_int_int(long __this__nativeId, int w, int h);
/**
* See QRhiWidget:: setMirrorVertically(bool)
*/
@QtPropertyWriter(name="mirrorVertically")
@QtUninvokable
public final void setMirrorVertically(boolean enabled){
setMirrorVertically_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@QtUninvokable
private native void setMirrorVertically_native_bool(long __this__nativeId, boolean enabled);
/**
* See QRhiWidget:: setSampleCount(int)
*/
@QtPropertyWriter(name="sampleCount")
@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 QObject:: event(QEvent*)
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent e){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QRhiWidget:: initialize(QRhiCommandBuffer*)
*/
@QtUninvokable
protected void initialize(io.qt.gui.rhi.@Nullable QRhiCommandBuffer cb){
initialize_native_QRhiCommandBuffer_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(cb));
}
@QtUninvokable
private native void initialize_native_QRhiCommandBuffer_ptr(long __this__nativeId, long cb);
/**
* See QWidget:: paintEvent(QPaintEvent*)
*/
@QtUninvokable
@Override
protected void paintEvent(io.qt.gui.@Nullable QPaintEvent e){
paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long e);
/**
* See QRhiWidget:: releaseResources()
*/
@QtUninvokable
protected void releaseResources(){
releaseResources_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void releaseResources_native(long __this__nativeId);
/**
* See QRhiWidget:: render(QRhiCommandBuffer*)
*/
@QtUninvokable
protected void render(io.qt.gui.rhi.@Nullable QRhiCommandBuffer cb){
render_native_QRhiCommandBuffer_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(cb));
}
@QtUninvokable
private native void render_native_QRhiCommandBuffer_ptr(long __this__nativeId, long cb);
/**
* See QWidget:: resizeEvent(QResizeEvent*)
*/
@QtUninvokable
@Override
protected void resizeEvent(io.qt.gui.@Nullable QResizeEvent e){
resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void resizeEvent_native_QResizeEvent_ptr(long __this__nativeId, long e);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRhiWidget(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QRhiWidget(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QRhiWidget instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QRhiWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with f = new io.qt.core.Qt.WindowFlags(0)
.
*/
public QRhiWidget(io.qt.widgets.@Nullable QWidget parent) {
this(parent, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QRhiWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with:
* parent = null
* f = new io.qt.core.Qt.WindowFlags(0)
*
*/
public QRhiWidget() {
this((io.qt.widgets.QWidget)null, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QRhiWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.
*/
public QRhiWidget(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowType @NonNull... f) {
this(parent, new io.qt.core.Qt.WindowFlags(f));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #colorBufferFormat()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QRhiWidget.@NonNull TextureFormat getColorBufferFormat() {
return colorBufferFormat();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #fixedColorBufferSize()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QSize getFixedColorBufferSize() {
return fixedColorBufferSize();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isMirrorVerticallyEnabled()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getMirrorVertically() {
return isMirrorVerticallyEnabled();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #sampleCount()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getSampleCount() {
return sampleCount();
}
}