io.qt.opengl.QOpenGLVersionProfile Maven / Gradle / Ivy
package io.qt.opengl;
import io.qt.*;
/**
* Represents the version and if applicable the profile of an OpenGL context
* Java wrapper for Qt class QOpenGLVersionProfile
*/
public class QOpenGLVersionProfile extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QOpenGLVersionProfile:: QOpenGLVersionProfile()
*/
public QOpenGLVersionProfile(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QOpenGLVersionProfile instance);
/**
* See QOpenGLVersionProfile:: QOpenGLVersionProfile(QOpenGLVersionProfile)
* @param other
*/
public QOpenGLVersionProfile(io.qt.opengl.@NonNull QOpenGLVersionProfile other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QOpenGLVersionProfile instance, io.qt.opengl.QOpenGLVersionProfile other);
/**
* See QOpenGLVersionProfile:: QOpenGLVersionProfile(QSurfaceFormat)
* @param format
*/
public QOpenGLVersionProfile(io.qt.gui.@NonNull QSurfaceFormat format){
super((QPrivateConstructor)null);
initialize_native(this, format);
}
private native static void initialize_native(QOpenGLVersionProfile instance, io.qt.gui.QSurfaceFormat format);
/**
* See QOpenGLVersionProfile:: hasProfiles()const
* @return
*/
@QtUninvokable
public final boolean hasProfiles(){
return hasProfiles_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasProfiles_native_constfct(long __this__nativeId);
/**
* See QOpenGLVersionProfile:: isLegacyVersion()const
* @return
*/
@QtUninvokable
public final boolean isLegacyVersion(){
return isLegacyVersion_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isLegacyVersion_native_constfct(long __this__nativeId);
/**
* See QOpenGLVersionProfile:: isValid()const
* @return
*/
@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 QOpenGLVersionProfile:: operator=(QOpenGLVersionProfile)
* @param rhs
*/
@QtUninvokable
public final void assign(io.qt.opengl.@NonNull QOpenGLVersionProfile rhs){
assign_native_cref_QOpenGLVersionProfile(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@QtUninvokable
private native void assign_native_cref_QOpenGLVersionProfile(long __this__nativeId, long rhs);
/**
* See operator==(QOpenGLVersionProfile, QOpenGLVersionProfile)
* @param rhs
* @return
*/
@QtUninvokable
public final boolean equals(io.qt.opengl.@NonNull QOpenGLVersionProfile rhs){
return equals_native_cref_QOpenGLVersionProfile(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@QtUninvokable
private native boolean equals_native_cref_QOpenGLVersionProfile(long __this__nativeId, long rhs);
/**
* See QOpenGLVersionProfile:: profile()const
* @return
*/
@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 QOpenGLVersionProfile:: setProfile(QSurfaceFormat::OpenGLContextProfile)
* @param profile
*/
@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 QOpenGLVersionProfile:: setVersion(int, int)
* @param majorVersion
* @param minorVersion
*/
@QtUninvokable
public final void setVersion(int majorVersion, int minorVersion){
setVersion_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), majorVersion, minorVersion);
}
@QtUninvokable
private native void setVersion_native_int_int(long __this__nativeId, int majorVersion, int minorVersion);
/**
* See QOpenGLVersionProfile:: version()const
* @return
*/
@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);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QOpenGLVersionProfile(QPrivateConstructor p) { super(p); }
/**
* See operator==(QOpenGLVersionProfile, QOpenGLVersionProfile)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.opengl.QOpenGLVersionProfile) {
return equals((io.qt.opengl.QOpenGLVersionProfile) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QOpenGLVersionProfile)
.
*/
@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, QOpenGLVersionProfile)
*/
@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 QOpenGLVersionProfile:: QOpenGLVersionProfile(QOpenGLVersionProfile)
*/
@QtUninvokable
@Override
public QOpenGLVersionProfile clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QOpenGLVersionProfile clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QOpenGLVersionProfile(io.qt.gui.QSurfaceFormat)}.
*/
public QOpenGLVersionProfile(io.qt.gui.QSurfaceFormat.@NonNull FormatOptions format) {
this(new io.qt.gui.QSurfaceFormat(format));
}
}