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

io.qt.gui.QSurface Maven / Gradle / Ivy

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

import io.qt.*;


/**
 * 

Abstraction of renderable surfaces in Qt

*

Java wrapper for Qt class QSurface

*/ public interface QSurface extends QtObjectInterface { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSurface.class); /** *

Java wrapper for Qt enum QSurface::SurfaceType

*/ public enum SurfaceType implements QtEnumerator { /** *

Representing QSurface::RasterSurface

*/ RasterSurface(0), /** *

Representing QSurface::OpenGLSurface

*/ OpenGLSurface(1), /** *

Representing QSurface::RasterGLSurface

*/ RasterGLSurface(2), /** *

Representing QSurface::OpenVGSurface

*/ OpenVGSurface(3), /** *

Representing QSurface::VulkanSurface

*/ VulkanSurface(4), /** *

Representing QSurface::MetalSurface

*/ MetalSurface(5), /** *

Representing QSurface::Direct3DSurface

*/ Direct3DSurface(6); static { QtJambi_LibraryUtilities.initialize(); } private SurfaceType(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 SurfaceType resolve(int value) { switch (value) { case 0: return RasterSurface; case 1: return OpenGLSurface; case 2: return RasterGLSurface; case 3: return OpenVGSurface; case 4: return VulkanSurface; case 5: return MetalSurface; case 6: return Direct3DSurface; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * @hidden *

Implementor class for interface {@link io.qt.gui.QSurface}

*/ public static abstract class Impl extends QtObject implements io.qt.gui.QSurface { static { QtJambi_LibraryUtilities.initialize(); } @NativeAccess private static final class ConcreteWrapper extends QSurface.Impl { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public io.qt.gui.@NonNull QSurfaceFormat format(){ return format_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.gui.QSurfaceFormat format_native_constfct(long __this__nativeId); @Override @QtUninvokable public io.qt.core.@NonNull QSize size(){ return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.core.QSize size_native_constfct(long __this__nativeId); @Override @QtUninvokable public io.qt.gui.QSurface.@NonNull SurfaceType surfaceType(){ return io.qt.gui.QSurface.SurfaceType.resolve(surfaceType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } private native static int surfaceType_native_constfct(long __this__nativeId); } /** *

See QSurface::supportsOpenGL()const

*/ @QtUninvokable public final boolean supportsOpenGL(){ return supportsOpenGL_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static boolean supportsOpenGL_native_constfct(long __this__nativeId); /** *

See QSurface::format()const

*/ @QtUninvokable public abstract io.qt.gui.@NonNull QSurfaceFormat format(); private native static io.qt.gui.QSurfaceFormat format_native_constfct(long __this__nativeId); /** *

See QSurface::size()const

*/ @QtUninvokable public abstract io.qt.core.@NonNull QSize size(); private native static io.qt.core.QSize size_native_constfct(long __this__nativeId); /** *

See QSurface::surfaceType()const

*/ @QtUninvokable public abstract io.qt.gui.QSurface.@NonNull SurfaceType surfaceType(); private native static int surfaceType_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected Impl(QPrivateConstructor p) { super(p); } } /** *

See QSurface::supportsOpenGL()const

*/ @QtDeclaredFinal @QtUninvokable public default boolean supportsOpenGL(){ return Impl.supportsOpenGL_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QSurface::format()const

*/ @QtUninvokable public io.qt.gui.@NonNull QSurfaceFormat format(); /** *

See QSurface::size()const

*/ @QtUninvokable public io.qt.core.@NonNull QSize size(); /** *

See QSurface::surfaceType()const

*/ @QtUninvokable public io.qt.gui.QSurface.@NonNull SurfaceType surfaceType(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy