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

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

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


/**
 * 

Represents the format of a QSurface

*

Java wrapper for Qt class QSurfaceFormat

*/ public class QSurfaceFormat extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSurfaceFormat.class); /** *

Java wrapper for Qt enum QSurfaceFormat::ColorSpace

*/ public enum ColorSpace implements io.qt.QtEnumerator { DefaultColorSpace(0), sRGBColorSpace(1); private ColorSpace(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 ColorSpace resolve(int value) { switch (value) { case 0: return DefaultColorSpace; case 1: return sRGBColorSpace; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QSurfaceFormat::FormatOption

* * @see FormatOptions */ public enum FormatOption implements io.qt.QtFlagEnumerator { StereoBuffers(1), DebugContext(2), DeprecatedFunctions(4), ResetNotification(8), ProtectedContent(16); private FormatOption(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public FormatOptions asFlags() { return new FormatOptions(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public FormatOptions combined(FormatOption e) { return new FormatOptions(this, e); } /** * Creates a new {@link FormatOptions} from the entries. * @param values entries * @return new flag */ public static FormatOptions flags(FormatOption ... values) { return new FormatOptions(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static 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 io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** * QFlags type for enum {@link FormatOption} */ public static final class FormatOptions extends io.qt.QFlags implements Comparable { private static final long serialVersionUID = 0xdd5078459e21a2b4L; /** * Creates a new FormatOptions where the flags in args are set. * @param args enum entries */ public FormatOptions(FormatOption ... 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 FormatOptions combined(FormatOption e){ return new FormatOptions(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final FormatOptions setFlag(FormatOption e){ super.setFlag(e); return this; } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final FormatOptions setFlag(FormatOption e, boolean on){ super.setFlag(e, on); return this; } /** * Returns an array of flag objects represented by this FormatOptions. * @return array of enum entries */ @Override public final FormatOption[] flags(){ return super.flags(FormatOption.values()); } /** * {@inheritDoc} */ @Override public final FormatOptions clone(){ return new FormatOptions(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(FormatOptions other){ return Integer.compare(value(), other.value()); } } /** *

Java wrapper for Qt enum QSurfaceFormat::OpenGLContextProfile

*/ public enum OpenGLContextProfile implements io.qt.QtEnumerator { NoProfile(0), CoreProfile(1), CompatibilityProfile(2); private OpenGLContextProfile(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 OpenGLContextProfile resolve(int value) { switch (value) { case 0: return NoProfile; case 1: return CoreProfile; case 2: return CompatibilityProfile; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QSurfaceFormat::RenderableType

*/ public enum RenderableType implements io.qt.QtEnumerator { DefaultRenderableType(0), OpenGL(1), OpenGLES(2), OpenVG(4); private RenderableType(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 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 io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QSurfaceFormat::SwapBehavior

*/ public enum SwapBehavior implements io.qt.QtEnumerator { DefaultSwapBehavior(0), SingleBuffer(1), DoubleBuffer(2), TripleBuffer(3); private SwapBehavior(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 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 io.qt.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); /** *

Overloaded constructor for {@link #QSurfaceFormat(io.qt.gui.QSurfaceFormat.FormatOptions)}.

*/ public QSurfaceFormat(io.qt.gui.QSurfaceFormat.FormatOption ... options){ this(new io.qt.gui.QSurfaceFormat.FormatOptions(options)); } /** *

See QSurfaceFormat::QSurfaceFormat(FormatOptions)

*/ public QSurfaceFormat(io.qt.gui.QSurfaceFormat.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::QSurfaceFormat(QSurfaceFormat)

*/ public QSurfaceFormat(io.qt.gui.QSurfaceFormat other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QSurfaceFormat instance, io.qt.gui.QSurfaceFormat other); /** *

See QSurfaceFormat::alphaBufferSize()const

*/ @io.qt.QtUninvokable public final int alphaBufferSize(){ return alphaBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int alphaBufferSize_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::blueBufferSize()const

*/ @io.qt.QtUninvokable public final int blueBufferSize(){ return blueBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int blueBufferSize_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::colorSpace()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QColorSpace colorSpace(){ return colorSpace_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QColorSpace colorSpace_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::depthBufferSize()const

*/ @io.qt.QtUninvokable public final int depthBufferSize(){ return depthBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int depthBufferSize_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::greenBufferSize()const

*/ @io.qt.QtUninvokable public final int greenBufferSize(){ return greenBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int greenBufferSize_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::hasAlpha()const

*/ @io.qt.QtUninvokable public final boolean hasAlpha(){ return hasAlpha_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean hasAlpha_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::majorVersion()const

*/ @io.qt.QtUninvokable public final int majorVersion(){ return majorVersion_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int majorVersion_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::minorVersion()const

*/ @io.qt.QtUninvokable public final int minorVersion(){ return minorVersion_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int minorVersion_native_constfct(long __this__nativeId); @io.qt.QtUninvokable private final boolean operator_equal(io.qt.gui.QSurfaceFormat rhs){ return operator_equal_native_cref_QSurfaceFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QSurfaceFormat(long __this__nativeId, long rhs); /** *

See QSurfaceFormat::options()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QSurfaceFormat.FormatOptions options(){ return new io.qt.gui.QSurfaceFormat.FormatOptions(options_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int options_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::profile()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QSurfaceFormat.OpenGLContextProfile profile(){ return io.qt.gui.QSurfaceFormat.OpenGLContextProfile.resolve(profile_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int profile_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::redBufferSize()const

*/ @io.qt.QtUninvokable public final int redBufferSize(){ return redBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int redBufferSize_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::renderableType()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QSurfaceFormat.RenderableType renderableType(){ return io.qt.gui.QSurfaceFormat.RenderableType.resolve(renderableType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int renderableType_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::samples()const

*/ @io.qt.QtUninvokable public final int samples(){ return samples_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int samples_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::setAlphaBufferSize(int)

*/ @io.qt.QtUninvokable public final void setAlphaBufferSize(int size){ setAlphaBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size); } @io.qt.QtUninvokable private native void setAlphaBufferSize_native_int(long __this__nativeId, int size); /** *

See QSurfaceFormat::setBlueBufferSize(int)

*/ @io.qt.QtUninvokable public final void setBlueBufferSize(int size){ setBlueBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size); } @io.qt.QtUninvokable private native void setBlueBufferSize_native_int(long __this__nativeId, int size); /** *

See QSurfaceFormat::setColorSpace(QSurfaceFormat::ColorSpace)

* * @deprecated Use setColorSpace(QColorSpace) instead. */ @Deprecated @io.qt.QtUninvokable public final void setColorSpace(io.qt.gui.QSurfaceFormat.ColorSpace colorSpace){ setColorSpace_native_QSurfaceFormat_ColorSpace(QtJambi_LibraryUtilities.internal.nativeId(this), colorSpace.value()); } @Deprecated @io.qt.QtUninvokable private native void setColorSpace_native_QSurfaceFormat_ColorSpace(long __this__nativeId, int colorSpace); /** *

See QSurfaceFormat::setColorSpace(QColorSpace)

*/ @io.qt.QtUninvokable public final void setColorSpace(io.qt.gui.QColorSpace colorSpace){ setColorSpace_native_cref_QColorSpace(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(colorSpace)); } @io.qt.QtUninvokable private native void setColorSpace_native_cref_QColorSpace(long __this__nativeId, long colorSpace); /** *

See QSurfaceFormat::setDepthBufferSize(int)

*/ @io.qt.QtUninvokable public final void setDepthBufferSize(int size){ setDepthBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size); } @io.qt.QtUninvokable private native void setDepthBufferSize_native_int(long __this__nativeId, int size); /** *

See QSurfaceFormat::setGreenBufferSize(int)

*/ @io.qt.QtUninvokable public final void setGreenBufferSize(int size){ setGreenBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size); } @io.qt.QtUninvokable private native void setGreenBufferSize_native_int(long __this__nativeId, int size); /** *

See QSurfaceFormat::setMajorVersion(int)

*/ @io.qt.QtUninvokable public final void setMajorVersion(int majorVersion){ setMajorVersion_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), majorVersion); } @io.qt.QtUninvokable private native void setMajorVersion_native_int(long __this__nativeId, int majorVersion); /** *

See QSurfaceFormat::setMinorVersion(int)

*/ @io.qt.QtUninvokable public final void setMinorVersion(int minorVersion){ setMinorVersion_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), minorVersion); } @io.qt.QtUninvokable private native void setMinorVersion_native_int(long __this__nativeId, int minorVersion); /** *

Overloaded function for {@link #setOption(io.qt.gui.QSurfaceFormat.FormatOption, boolean)} * with on = true.

*/ @io.qt.QtUninvokable public final void setOption(io.qt.gui.QSurfaceFormat.FormatOption option) { setOption(option, (boolean)true); } /** *

See QSurfaceFormat::setOption(QSurfaceFormat::FormatOption,bool)

*/ @io.qt.QtUninvokable public final void setOption(io.qt.gui.QSurfaceFormat.FormatOption option, boolean on){ setOption_native_QSurfaceFormat_FormatOption_bool(QtJambi_LibraryUtilities.internal.nativeId(this), option.value(), on); } @io.qt.QtUninvokable private native void setOption_native_QSurfaceFormat_FormatOption_bool(long __this__nativeId, int option, boolean on); /** *

Overloaded function for {@link #setOptions(io.qt.gui.QSurfaceFormat.FormatOptions)}.

*/ @io.qt.QtUninvokable public final void setOptions(io.qt.gui.QSurfaceFormat.FormatOption ... options){ setOptions(new io.qt.gui.QSurfaceFormat.FormatOptions(options)); } /** *

See QSurfaceFormat::setOptions(QSurfaceFormat::FormatOptions)

*/ @io.qt.QtUninvokable public final void setOptions(io.qt.gui.QSurfaceFormat.FormatOptions options){ setOptions_native_QFlags_QSurfaceFormat_FormatOption_(QtJambi_LibraryUtilities.internal.nativeId(this), options.value()); } @io.qt.QtUninvokable private native void setOptions_native_QFlags_QSurfaceFormat_FormatOption_(long __this__nativeId, int options); /** *

See QSurfaceFormat::setProfile(QSurfaceFormat::OpenGLContextProfile)

*/ @io.qt.QtUninvokable public final void setProfile(io.qt.gui.QSurfaceFormat.OpenGLContextProfile profile){ setProfile_native_QSurfaceFormat_OpenGLContextProfile(QtJambi_LibraryUtilities.internal.nativeId(this), profile.value()); } @io.qt.QtUninvokable private native void setProfile_native_QSurfaceFormat_OpenGLContextProfile(long __this__nativeId, int profile); /** *

See QSurfaceFormat::setRedBufferSize(int)

*/ @io.qt.QtUninvokable public final void setRedBufferSize(int size){ setRedBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size); } @io.qt.QtUninvokable private native void setRedBufferSize_native_int(long __this__nativeId, int size); /** *

See QSurfaceFormat::setRenderableType(QSurfaceFormat::RenderableType)

*/ @io.qt.QtUninvokable public final void setRenderableType(io.qt.gui.QSurfaceFormat.RenderableType type){ setRenderableType_native_QSurfaceFormat_RenderableType(QtJambi_LibraryUtilities.internal.nativeId(this), type.value()); } @io.qt.QtUninvokable private native void setRenderableType_native_QSurfaceFormat_RenderableType(long __this__nativeId, int type); /** *

See QSurfaceFormat::setSamples(int)

*/ @io.qt.QtUninvokable public final void setSamples(int numSamples){ setSamples_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), numSamples); } @io.qt.QtUninvokable private native void setSamples_native_int(long __this__nativeId, int numSamples); /** *

See QSurfaceFormat::setStencilBufferSize(int)

*/ @io.qt.QtUninvokable public final void setStencilBufferSize(int size){ setStencilBufferSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size); } @io.qt.QtUninvokable private native void setStencilBufferSize_native_int(long __this__nativeId, int size); /** *

See QSurfaceFormat::setStereo(bool)

*/ @io.qt.QtUninvokable public final void setStereo(boolean enable){ setStereo_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable); } @io.qt.QtUninvokable private native void setStereo_native_bool(long __this__nativeId, boolean enable); /** *

See QSurfaceFormat::setSwapBehavior(QSurfaceFormat::SwapBehavior)

*/ @io.qt.QtUninvokable public final void setSwapBehavior(io.qt.gui.QSurfaceFormat.SwapBehavior behavior){ setSwapBehavior_native_QSurfaceFormat_SwapBehavior(QtJambi_LibraryUtilities.internal.nativeId(this), behavior.value()); } @io.qt.QtUninvokable private native void setSwapBehavior_native_QSurfaceFormat_SwapBehavior(long __this__nativeId, int behavior); /** *

See QSurfaceFormat::setSwapInterval(int)

*/ @io.qt.QtUninvokable public final void setSwapInterval(int interval){ setSwapInterval_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), interval); } @io.qt.QtUninvokable private native void setSwapInterval_native_int(long __this__nativeId, int interval); /** *

See QSurfaceFormat::setVersion(int,int)

*/ @io.qt.QtUninvokable public final void setVersion(int major, int minor){ setVersion_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), major, minor); } @io.qt.QtUninvokable private native void setVersion_native_int_int(long __this__nativeId, int major, int minor); /** *

See QSurfaceFormat::stencilBufferSize()const

*/ @io.qt.QtUninvokable public final int stencilBufferSize(){ return stencilBufferSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int stencilBufferSize_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::stereo()const

*/ @io.qt.QtUninvokable public final boolean stereo(){ return stereo_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean stereo_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::swapBehavior()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QSurfaceFormat.SwapBehavior swapBehavior(){ return io.qt.gui.QSurfaceFormat.SwapBehavior.resolve(swapBehavior_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int swapBehavior_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::swapInterval()const

*/ @io.qt.QtUninvokable public final int swapInterval(){ return swapInterval_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int swapInterval_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::testOption(QSurfaceFormat::FormatOption)const

*/ @io.qt.QtUninvokable public final boolean testOption(io.qt.gui.QSurfaceFormat.FormatOption option){ return testOption_native_QSurfaceFormat_FormatOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option.value()); } @io.qt.QtUninvokable private native boolean testOption_native_QSurfaceFormat_FormatOption_constfct(long __this__nativeId, int option); /** *

See QSurfaceFormat::version()const

*/ @io.qt.QtUninvokable public final io.qt.core.QPair version(){ return version_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QPair version_native_constfct(long __this__nativeId); /** *

See QSurfaceFormat::defaultFormat()

*/ public native static io.qt.gui.QSurfaceFormat defaultFormat(); /** *

See QSurfaceFormat::setDefaultFormat(QSurfaceFormat)

*/ public static void setDefaultFormat(io.qt.gui.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. */ @io.qt.NativeAccess protected QSurfaceFormat(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QSurfaceFormat) { return operator_equal((io.qt.gui.QSurfaceFormat) other); } return false; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @Override @io.qt.QtUninvokable public String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private static native String toString_native(long __this_nativeId); @Override public QSurfaceFormat clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QSurfaceFormat clone_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy