io.qt.gui.QSurfaceFormat Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Represents the format of a QSurface
* Java wrapper for Qt class QSurfaceFormat
*/
public class QSurfaceFormat extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSurfaceFormat.class);
/**
* Java wrapper for Qt enum QSurfaceFormat::ColorSpace
*/
public enum ColorSpace implements QtEnumerator {
/**
* Representing QSurfaceFormat:: DefaultColorSpace
*/
DefaultColorSpace(0),
/**
* Representing QSurfaceFormat:: sRGBColorSpace
*/
sRGBColorSpace(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private ColorSpace(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull ColorSpace resolve(int value) {
switch (value) {
case 0: return DefaultColorSpace;
case 1: return sRGBColorSpace;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QSurfaceFormat::FormatOption
*
* @see FormatOptions
*/
public enum FormatOption implements QtFlagEnumerator {
/**
* Representing QSurfaceFormat:: StereoBuffers
*/
StereoBuffers(1),
/**
* Representing QSurfaceFormat:: DebugContext
*/
DebugContext(2),
/**
* Representing QSurfaceFormat:: DeprecatedFunctions
*/
DeprecatedFunctions(4),
/**
* Representing QSurfaceFormat:: ResetNotification
*/
ResetNotification(8),
/**
* Representing QSurfaceFormat:: ProtectedContent
*/
ProtectedContent(16);
static {
QtJambi_LibraryUtilities.initialize();
}
private FormatOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
@Override
public @NonNull FormatOptions asFlags() {
return new FormatOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull FormatOptions combined(@NonNull FormatOption 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 FormatOptions cleared(@NonNull FormatOption e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link FormatOptions} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull FormatOptions flags(@Nullable FormatOption @NonNull... values) {
return new FormatOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull FormatOption resolve(int value) {
switch (value) {
case 1: return StereoBuffers;
case 2: return DebugContext;
case 4: return DeprecatedFunctions;
case 8: return ResetNotification;
case 16: return ProtectedContent;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link FormatOption}
*/
public static final class FormatOptions extends QFlags implements Comparable {
private static final long serialVersionUID = 0xdd5078459e21a2b4L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new FormatOptions where the flags in args
are set.
* @param args enum entries
*/
public FormatOptions(@Nullable FormatOption @NonNull... args){
super(args);
}
/**
* Creates a new FormatOptions with given value
.
* @param value
*/
public FormatOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new FormatOptions
*/
@Override
public final @NonNull FormatOptions combined(@StrictNonNull FormatOption e){
return new FormatOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
@Override
public final @NonNull FormatOptions setFlag(@Nullable FormatOption e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
@Override
public final @NonNull FormatOptions setFlag(@Nullable FormatOption 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 FormatOptions.
* @return array of enum entries
*/
@Override
public final @NonNull FormatOption @NonNull[] flags(){
return super.flags(FormatOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull FormatOptions clone(){
return new FormatOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull FormatOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QSurfaceFormat::OpenGLContextProfile
*/
public enum OpenGLContextProfile implements QtEnumerator {
/**
* Representing QSurfaceFormat:: NoProfile
*/
NoProfile(0),
/**
* Representing QSurfaceFormat:: CoreProfile
*/
CoreProfile(1),
/**
* Representing QSurfaceFormat:: CompatibilityProfile
*/
CompatibilityProfile(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private OpenGLContextProfile(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull OpenGLContextProfile resolve(int value) {
switch (value) {
case 0: return NoProfile;
case 1: return CoreProfile;
case 2: return CompatibilityProfile;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QSurfaceFormat::RenderableType
*/
public enum RenderableType implements QtEnumerator {
/**
* Representing QSurfaceFormat:: DefaultRenderableType
*/
DefaultRenderableType(0),
/**
* Representing QSurfaceFormat:: OpenGL
*/
OpenGL(1),
/**
* Representing QSurfaceFormat:: OpenGLES
*/
OpenGLES(2),
/**
* Representing QSurfaceFormat:: OpenVG
*/
OpenVG(4);
static {
QtJambi_LibraryUtilities.initialize();
}
private RenderableType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull RenderableType resolve(int value) {
switch (value) {
case 0: return DefaultRenderableType;
case 1: return OpenGL;
case 2: return OpenGLES;
case 4: return OpenVG;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QSurfaceFormat::SwapBehavior
*/
public enum SwapBehavior implements QtEnumerator {
/**
* Representing QSurfaceFormat:: DefaultSwapBehavior
*/
DefaultSwapBehavior(0),
/**
* Representing QSurfaceFormat:: SingleBuffer
*/
SingleBuffer(1),
/**
* Representing QSurfaceFormat:: DoubleBuffer
*/
DoubleBuffer(2),
/**
* Representing QSurfaceFormat:: TripleBuffer
*/
TripleBuffer(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private SwapBehavior(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull SwapBehavior resolve(int value) {
switch (value) {
case 0: return DefaultSwapBehavior;
case 1: return SingleBuffer;
case 2: return DoubleBuffer;
case 3: return TripleBuffer;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QSurfaceFormat:: QSurfaceFormat()
*/
public QSurfaceFormat(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QSurfaceFormat instance);
/**
* See QSurfaceFormat:: QSurfaceFormat(QSurfaceFormat)
*/
public QSurfaceFormat(io.qt.gui.@NonNull QSurfaceFormat other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QSurfaceFormat instance, io.qt.gui.QSurfaceFormat other);
/**
* See QSurfaceFormat:: QSurfaceFormat(QSurfaceFormat::FormatOptions)
*/
public QSurfaceFormat(io.qt.gui.QSurfaceFormat.@NonNull FormatOptions options){
super((QPrivateConstructor)null);
initialize_native(this, options);
}
private native static void initialize_native(QSurfaceFormat instance, io.qt.gui.QSurfaceFormat.FormatOptions options);
/**
* See QSurfaceFormat:: alphaBufferSize()const
*/
@QtUninvokable
public final int alphaBufferSize(){
return alphaBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int alphaBufferSize_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: blueBufferSize()const
*/
@QtUninvokable
public final int blueBufferSize(){
return blueBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int blueBufferSize_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: colorSpace()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QColorSpace colorSpace(){
return colorSpace_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QColorSpace colorSpace_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: depthBufferSize()const
*/
@QtUninvokable
public final int depthBufferSize(){
return depthBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int depthBufferSize_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: greenBufferSize()const
*/
@QtUninvokable
public final int greenBufferSize(){
return greenBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int greenBufferSize_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: hasAlpha()const
*/
@QtUninvokable
public final boolean hasAlpha(){
return hasAlpha_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasAlpha_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: majorVersion()const
*/
@QtUninvokable
public final int majorVersion(){
return majorVersion_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int majorVersion_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: minorVersion()const
*/
@QtUninvokable
public final int minorVersion(){
return minorVersion_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int minorVersion_native_constfct(long __this__nativeId);
/**
* See operator!=(QSurfaceFormat, QSurfaceFormat)
*/
@QtUninvokable
private final boolean operator_not_equal(io.qt.gui.@NonNull QSurfaceFormat rhs){
return operator_not_equal_native_cref_QSurfaceFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@QtUninvokable
private native boolean operator_not_equal_native_cref_QSurfaceFormat(long __this__nativeId, long rhs);
/**
* See QSurfaceFormat:: operator=(QSurfaceFormat)
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QSurfaceFormat other){
assign_native_cref_QSurfaceFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QSurfaceFormat(long __this__nativeId, long other);
/**
* See QSurfaceFormat:: options()const
*/
@QtUninvokable
public final io.qt.gui.QSurfaceFormat.@NonNull FormatOptions options(){
return new io.qt.gui.QSurfaceFormat.FormatOptions(options_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int options_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: profile()const
*/
@QtUninvokable
public final io.qt.gui.QSurfaceFormat.@NonNull OpenGLContextProfile profile(){
return io.qt.gui.QSurfaceFormat.OpenGLContextProfile.resolve(profile_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int profile_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: redBufferSize()const
*/
@QtUninvokable
public final int redBufferSize(){
return redBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int redBufferSize_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: renderableType()const
*/
@QtUninvokable
public final io.qt.gui.QSurfaceFormat.@NonNull RenderableType renderableType(){
return io.qt.gui.QSurfaceFormat.RenderableType.resolve(renderableType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int renderableType_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: samples()const
*/
@QtUninvokable
public final int samples(){
return samples_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int samples_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: setAlphaBufferSize(int)
*/
@QtUninvokable
public final void setAlphaBufferSize(int size){
setAlphaBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size);
}
@QtUninvokable
private native void setAlphaBufferSize_native_int(long __this__nativeId, int size);
/**
* See QSurfaceFormat:: setBlueBufferSize(int)
*/
@QtUninvokable
public final void setBlueBufferSize(int size){
setBlueBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size);
}
@QtUninvokable
private native void setBlueBufferSize_native_int(long __this__nativeId, int size);
/**
* See QSurfaceFormat:: setColorSpace(QColorSpace)
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
public final void setColorSpace(io.qt.gui.@NonNull QColorSpace colorSpace){
setColorSpace_native_cref_QColorSpace(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(colorSpace));
}
@QtUninvokable
private native void setColorSpace_native_cref_QColorSpace(long __this__nativeId, long colorSpace);
/**
* See QSurfaceFormat:: setColorSpace(QSurfaceFormat::ColorSpace)
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
public final void setColorSpace(io.qt.gui.QSurfaceFormat.@NonNull ColorSpace colorSpace){
setColorSpace_native_QSurfaceFormat_ColorSpace(QtJambi_LibraryUtilities.internal.nativeId(this), colorSpace.value());
}
@QtUninvokable
private native void setColorSpace_native_QSurfaceFormat_ColorSpace(long __this__nativeId, int colorSpace);
/**
* See QSurfaceFormat:: setDepthBufferSize(int)
*/
@QtUninvokable
public final void setDepthBufferSize(int size){
setDepthBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size);
}
@QtUninvokable
private native void setDepthBufferSize_native_int(long __this__nativeId, int size);
/**
* See QSurfaceFormat:: setGreenBufferSize(int)
*/
@QtUninvokable
public final void setGreenBufferSize(int size){
setGreenBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size);
}
@QtUninvokable
private native void setGreenBufferSize_native_int(long __this__nativeId, int size);
/**
* See QSurfaceFormat:: setMajorVersion(int)
*/
@QtUninvokable
public final void setMajorVersion(int majorVersion){
setMajorVersion_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), majorVersion);
}
@QtUninvokable
private native void setMajorVersion_native_int(long __this__nativeId, int majorVersion);
/**
* See QSurfaceFormat:: setMinorVersion(int)
*/
@QtUninvokable
public final void setMinorVersion(int minorVersion){
setMinorVersion_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), minorVersion);
}
@QtUninvokable
private native void setMinorVersion_native_int(long __this__nativeId, int minorVersion);
/**
* See QSurfaceFormat:: setOption(QSurfaceFormat::FormatOption, bool)
*/
@QtUninvokable
public final void setOption(io.qt.gui.QSurfaceFormat.@NonNull FormatOption option, boolean on){
setOption_native_QSurfaceFormat_FormatOption_bool(QtJambi_LibraryUtilities.internal.nativeId(this), option.value(), on);
}
@QtUninvokable
private native void setOption_native_QSurfaceFormat_FormatOption_bool(long __this__nativeId, int option, boolean on);
/**
* See QSurfaceFormat:: setOptions(QSurfaceFormat::FormatOptions)
*/
@QtUninvokable
public final void setOptions(io.qt.gui.QSurfaceFormat.@NonNull FormatOptions options){
setOptions_native_QSurfaceFormat_FormatOptions(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@QtUninvokable
private native void setOptions_native_QSurfaceFormat_FormatOptions(long __this__nativeId, int options);
/**
* See QSurfaceFormat:: setProfile(QSurfaceFormat::OpenGLContextProfile)
*/
@QtUninvokable
public final void setProfile(io.qt.gui.QSurfaceFormat.@NonNull OpenGLContextProfile profile){
setProfile_native_QSurfaceFormat_OpenGLContextProfile(QtJambi_LibraryUtilities.internal.nativeId(this), profile.value());
}
@QtUninvokable
private native void setProfile_native_QSurfaceFormat_OpenGLContextProfile(long __this__nativeId, int profile);
/**
* See QSurfaceFormat:: setRedBufferSize(int)
*/
@QtUninvokable
public final void setRedBufferSize(int size){
setRedBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size);
}
@QtUninvokable
private native void setRedBufferSize_native_int(long __this__nativeId, int size);
/**
* See QSurfaceFormat:: setRenderableType(QSurfaceFormat::RenderableType)
*/
@QtUninvokable
public final void setRenderableType(io.qt.gui.QSurfaceFormat.@NonNull RenderableType type){
setRenderableType_native_QSurfaceFormat_RenderableType(QtJambi_LibraryUtilities.internal.nativeId(this), type.value());
}
@QtUninvokable
private native void setRenderableType_native_QSurfaceFormat_RenderableType(long __this__nativeId, int type);
/**
* See QSurfaceFormat:: setSamples(int)
*/
@QtUninvokable
public final void setSamples(int numSamples){
setSamples_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), numSamples);
}
@QtUninvokable
private native void setSamples_native_int(long __this__nativeId, int numSamples);
/**
* See QSurfaceFormat:: setStencilBufferSize(int)
*/
@QtUninvokable
public final void setStencilBufferSize(int size){
setStencilBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size);
}
@QtUninvokable
private native void setStencilBufferSize_native_int(long __this__nativeId, int size);
/**
* See QSurfaceFormat:: setStereo(bool)
*/
@QtUninvokable
public final void setStereo(boolean enable){
setStereo_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable);
}
@QtUninvokable
private native void setStereo_native_bool(long __this__nativeId, boolean enable);
/**
* See QSurfaceFormat:: setSwapBehavior(QSurfaceFormat::SwapBehavior)
*/
@QtUninvokable
public final void setSwapBehavior(io.qt.gui.QSurfaceFormat.@NonNull SwapBehavior behavior){
setSwapBehavior_native_QSurfaceFormat_SwapBehavior(QtJambi_LibraryUtilities.internal.nativeId(this), behavior.value());
}
@QtUninvokable
private native void setSwapBehavior_native_QSurfaceFormat_SwapBehavior(long __this__nativeId, int behavior);
/**
* See QSurfaceFormat:: setSwapInterval(int)
*/
@QtUninvokable
public final void setSwapInterval(int interval){
setSwapInterval_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), interval);
}
@QtUninvokable
private native void setSwapInterval_native_int(long __this__nativeId, int interval);
/**
* See QSurfaceFormat:: setVersion(int, int)
*/
@QtUninvokable
public final void setVersion(int major, int minor){
setVersion_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), major, minor);
}
@QtUninvokable
private native void setVersion_native_int_int(long __this__nativeId, int major, int minor);
/**
* See QSurfaceFormat:: stencilBufferSize()const
*/
@QtUninvokable
public final int stencilBufferSize(){
return stencilBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int stencilBufferSize_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: stereo()const
*/
@QtUninvokable
public final boolean stereo(){
return stereo_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean stereo_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: swapBehavior()const
*/
@QtUninvokable
public final io.qt.gui.QSurfaceFormat.@NonNull SwapBehavior swapBehavior(){
return io.qt.gui.QSurfaceFormat.SwapBehavior.resolve(swapBehavior_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int swapBehavior_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: swapInterval()const
*/
@QtUninvokable
public final int swapInterval(){
return swapInterval_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int swapInterval_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: testOption(QSurfaceFormat::FormatOption)const
*/
@QtUninvokable
public final boolean testOption(io.qt.gui.QSurfaceFormat.@NonNull FormatOption option){
return testOption_native_QSurfaceFormat_FormatOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option.value());
}
@QtUninvokable
private native boolean testOption_native_QSurfaceFormat_FormatOption_constfct(long __this__nativeId, int option);
/**
* See QSurfaceFormat:: version()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPair version(){
return version_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPair version_native_constfct(long __this__nativeId);
/**
* See QSurfaceFormat:: defaultFormat()
*/
public native static io.qt.gui.@NonNull QSurfaceFormat defaultFormat();
/**
* See QSurfaceFormat:: setDefaultFormat(QSurfaceFormat)
*/
public static void setDefaultFormat(io.qt.gui.@NonNull QSurfaceFormat format){
setDefaultFormat_native_cref_QSurfaceFormat(QtJambi_LibraryUtilities.internal.checkedNativeId(format));
}
private native static void setDefaultFormat_native_cref_QSurfaceFormat(long format);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QSurfaceFormat(QPrivateConstructor p) { super(p); }
/**
* See operator!=(QSurfaceFormat, QSurfaceFormat)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.gui.QSurfaceFormat) {
return !operator_not_equal((io.qt.gui.QSurfaceFormat) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QSurfaceFormat)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* See operator<<(QDebug, QSurfaceFormat)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QSurfaceFormat:: QSurfaceFormat(QSurfaceFormat)
*/
@QtUninvokable
@Override
public QSurfaceFormat clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QSurfaceFormat clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QSurfaceFormat(io.qt.gui.QSurfaceFormat.FormatOptions)}.
*/
public QSurfaceFormat(io.qt.gui.QSurfaceFormat.@NonNull FormatOption @NonNull... options) {
this(new io.qt.gui.QSurfaceFormat.FormatOptions(options));
}
/**
* Overloaded function for {@link #operator_not_equal(io.qt.gui.QSurfaceFormat)}.
*/
@QtUninvokable
private final boolean operator_not_equal(io.qt.gui.QSurfaceFormat.@NonNull FormatOptions rhs) {
return operator_not_equal(new io.qt.gui.QSurfaceFormat(rhs));
}
/**
* Overloaded function for {@link #assign(io.qt.gui.QSurfaceFormat)}.
*/
@QtUninvokable
public final void assign(io.qt.gui.QSurfaceFormat.@NonNull FormatOptions other) {
assign(new io.qt.gui.QSurfaceFormat(other));
}
/**
* Overloaded function for {@link #setColorSpace(io.qt.gui.QColorSpace)}.
*/
@QtUninvokable
public final void setColorSpace(io.qt.gui.QColorSpace.@NonNull NamedColorSpace colorSpace) {
setColorSpace(new io.qt.gui.QColorSpace(colorSpace));
}
/**
* Overloaded function for {@link #setOption(io.qt.gui.QSurfaceFormat.FormatOption, boolean)}
* with on = true
.
*/
@QtUninvokable
public final void setOption(io.qt.gui.QSurfaceFormat.@NonNull FormatOption option) {
setOption(option, (boolean)true);
}
/**
* Overloaded function for {@link #setOptions(io.qt.gui.QSurfaceFormat.FormatOptions)}.
*/
@QtUninvokable
public final void setOptions(io.qt.gui.QSurfaceFormat.@NonNull FormatOption @NonNull... options) {
setOptions(new io.qt.gui.QSurfaceFormat.FormatOptions(options));
}
/**
* Overloaded function for {@link #setDefaultFormat(io.qt.gui.QSurfaceFormat)}.
*/
public static void setDefaultFormat(io.qt.gui.QSurfaceFormat.@NonNull FormatOptions format) {
setDefaultFormat(new io.qt.gui.QSurfaceFormat(format));
}
}