io.qt.gui.QOffscreenSurface Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Represents an offscreen surface in the underlying platform
* Java wrapper for Qt class QOffscreenSurface
*/
public class QOffscreenSurface extends io.qt.core.QObject
implements io.qt.gui.QSurface
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcScreen = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QOffscreenSurface.class);
/**
* See QOffscreenSurface:: screenChanged(QScreen*)
*/
public final @NonNull Signal1 screenChanged = new Signal1<>();
/**
* See QOffscreenSurface:: QOffscreenSurface(QScreen*, QObject*)
*/
public QOffscreenSurface(io.qt.gui.@Nullable QScreen screen, io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, screen, parent);
__rcScreen = screen;
}
private native static void initialize_native(QOffscreenSurface instance, io.qt.gui.QScreen screen, io.qt.core.QObject parent);
/**
* See QOffscreenSurface:: create()
*/
@QtUninvokable
public final void create(){
create_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void create_native(long __this__nativeId);
/**
* See QOffscreenSurface:: destroy()
*/
@QtUninvokable
public final void destroy(){
destroy_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void destroy_native(long __this__nativeId);
/**
* See QOffscreenSurface:: isValid()const
*/
@QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
* See QOffscreenSurface:: requestedFormat()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QSurfaceFormat requestedFormat(){
return requestedFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QSurfaceFormat requestedFormat_native_constfct(long __this__nativeId);
/**
* See QOffscreenSurface:: resolveInterface(const char*, int)const
*/
@QtUninvokable
public final QNativeInterface nativeInterface(java.lang.Class name){
return nativeInterface_native_const_char_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@QtUninvokable
private native QNativeInterface nativeInterface_native_const_char_ptr_int_constfct(long __this__nativeId, java.lang.Class name);
/**
* See QOffscreenSurface:: screen()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QScreen screen(){
return screen_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QScreen screen_native_constfct(long __this__nativeId);
/**
* See QOffscreenSurface:: setFormat(QSurfaceFormat)
*/
@QtUninvokable
public final void setFormat(io.qt.gui.@NonNull QSurfaceFormat format){
setFormat_native_cref_QSurfaceFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format));
}
@QtUninvokable
private native void setFormat_native_cref_QSurfaceFormat(long __this__nativeId, long format);
/**
* See QOffscreenSurface:: setScreen(QScreen*)
*/
@QtUninvokable
public final void setScreen(io.qt.gui.@Nullable QScreen screen){
setScreen_native_QScreen_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(screen));
__rcScreen = screen;
}
@QtUninvokable
private native void setScreen_native_QScreen_ptr(long __this__nativeId, long screen);
/**
* 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);
/**
*
*/
@QtUninvokable
@Override
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);
/**
*
*/
@QtUninvokable
@Override
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);
/**
* See QSurface:: surfaceType()const
*/
@QtUninvokable
@Override
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);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QOffscreenSurface(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QOffscreenSurface(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QOffscreenSurface instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QOffscreenSurface(io.qt.gui.QScreen, io.qt.core.QObject)}
* with parent = null
.
*/
public QOffscreenSurface(io.qt.gui.@Nullable QScreen screen) {
this(screen, (io.qt.core.QObject)null);
}
/**
* Overloaded constructor for {@link #QOffscreenSurface(io.qt.gui.QScreen, io.qt.core.QObject)}
* with:
* screen = null
* parent = null
*
*/
public QOffscreenSurface() {
this((io.qt.gui.QScreen)null, (io.qt.core.QObject)null);
}
/**
* Overloaded function for {@link #setFormat(io.qt.gui.QSurfaceFormat)}.
*/
@QtUninvokable
public final void setFormat(io.qt.gui.QSurfaceFormat.@NonNull FormatOptions format) {
setFormat(new io.qt.gui.QSurfaceFormat(format));
}
}