io.qt.gui.QSurface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.gui;
/**
* Abstraction of renderable surfaces in Qt
* Java wrapper for Qt class QSurface
*/
public interface QSurface extends io.qt.QtObjectInterface
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSurface.class);
/**
* Java wrapper for Qt enum QSurface::SurfaceType
*/
public enum SurfaceType implements io.qt.QtEnumerator {
RasterSurface(0),
OpenGLSurface(1),
RasterGLSurface(2),
OpenVGSurface(3),
VulkanSurface(4),
MetalSurface(5),
Direct3DSurface(6);
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 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 io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Implementor class for interface {@link io.qt.gui.QSurface}
*/
public static abstract class Impl extends io.qt.QtObject
implements io.qt.gui.QSurface
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.NativeAccess
private static final class ConcreteWrapper extends QSurface.Impl {
@io.qt.NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public io.qt.gui.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
@io.qt.QtUninvokable
public io.qt.core.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
@io.qt.QtUninvokable
public io.qt.gui.QSurface.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
*/
@io.qt.QtUninvokable
public final boolean supportsOpenGL(){
return supportsOpenGL_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static boolean supportsOpenGL_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public abstract io.qt.gui.QSurfaceFormat format();
private native static io.qt.gui.QSurfaceFormat format_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public abstract io.qt.core.QSize size();
private native static io.qt.core.QSize size_native_constfct(long __this__nativeId);
/**
* See QSurface::surfaceType()const
*/
@io.qt.QtUninvokable
public abstract io.qt.gui.QSurface.SurfaceType surfaceType();
private native static int surfaceType_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected Impl(QPrivateConstructor p) { super(p); }
}
/**
*
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
public default boolean supportsOpenGL(){
return Impl.supportsOpenGL_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
/**
*
*/
@io.qt.QtUninvokable
public io.qt.gui.QSurfaceFormat format();
/**
*
*/
@io.qt.QtUninvokable
public io.qt.core.QSize size();
/**
*
*/
@io.qt.QtUninvokable
public io.qt.gui.QSurface.SurfaceType surfaceType();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy