io.qt.opengl.QOpenGLDebugLogger Maven / Gradle / Ivy
package io.qt.opengl;
import io.qt.*;
/**
* Enables logging of OpenGL debugging messages
* Java wrapper for Qt class QOpenGLDebugLogger
*/
public class QOpenGLDebugLogger extends io.qt.core.QObject
{
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(QOpenGLDebugLogger.class);
/**
* Java wrapper for Qt enum QOpenGLDebugLogger::LoggingMode
*/
public enum LoggingMode implements QtEnumerator {
/**
* Representing QOpenGLDebugLogger:: AsynchronousLogging
*/
AsynchronousLogging(0),
/**
* Representing QOpenGLDebugLogger:: SynchronousLogging
*/
SynchronousLogging(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private LoggingMode(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 LoggingMode resolve(int value) {
switch (value) {
case 0: return AsynchronousLogging;
case 1: return SynchronousLogging;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QOpenGLDebugLogger:: messageLogged(QOpenGLDebugMessage)
*/
public final @NonNull Signal1 messageLogged = new Signal1<>();
/**
* See QOpenGLDebugLogger:: QOpenGLDebugLogger(QObject*)
* @param parent
*/
public QOpenGLDebugLogger(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QOpenGLDebugLogger instance, io.qt.core.QObject parent);
/**
*
* @param ids
* @param sources
* @param types
*/
@QtUninvokable
public final void disableMessages(java.util.@NonNull Collection ids, io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources, io.qt.opengl.QOpenGLDebugMessage.@NonNull Types types){
disableMessages_native_cref_QList_QOpenGLDebugMessage_Sources_QOpenGLDebugMessage_Types(QtJambi_LibraryUtilities.internal.nativeId(this), ids, sources.value(), types.value());
}
@QtUninvokable
private native void disableMessages_native_cref_QList_QOpenGLDebugMessage_Sources_QOpenGLDebugMessage_Types(long __this__nativeId, java.util.Collection ids, int sources, int types);
/**
*
* @param sources
* @param types
* @param severities
*/
@QtUninvokable
public final void disableMessages(io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources, io.qt.opengl.QOpenGLDebugMessage.@NonNull Types types, io.qt.opengl.QOpenGLDebugMessage.@NonNull Severities severities){
disableMessages_native_QOpenGLDebugMessage_Sources_QOpenGLDebugMessage_Types_QOpenGLDebugMessage_Severities(QtJambi_LibraryUtilities.internal.nativeId(this), sources.value(), types.value(), severities.value());
}
@QtUninvokable
private native void disableMessages_native_QOpenGLDebugMessage_Sources_QOpenGLDebugMessage_Types_QOpenGLDebugMessage_Severities(long __this__nativeId, int sources, int types, int severities);
/**
*
* @param ids
* @param sources
* @param types
*/
@QtUninvokable
public final void enableMessages(java.util.@NonNull Collection ids, io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources, io.qt.opengl.QOpenGLDebugMessage.@NonNull Types types){
enableMessages_native_cref_QList_QOpenGLDebugMessage_Sources_QOpenGLDebugMessage_Types(QtJambi_LibraryUtilities.internal.nativeId(this), ids, sources.value(), types.value());
}
@QtUninvokable
private native void enableMessages_native_cref_QList_QOpenGLDebugMessage_Sources_QOpenGLDebugMessage_Types(long __this__nativeId, java.util.Collection ids, int sources, int types);
/**
*
* @param sources
* @param types
* @param severities
*/
@QtUninvokable
public final void enableMessages(io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources, io.qt.opengl.QOpenGLDebugMessage.@NonNull Types types, io.qt.opengl.QOpenGLDebugMessage.@NonNull Severities severities){
enableMessages_native_QOpenGLDebugMessage_Sources_QOpenGLDebugMessage_Types_QOpenGLDebugMessage_Severities(QtJambi_LibraryUtilities.internal.nativeId(this), sources.value(), types.value(), severities.value());
}
@QtUninvokable
private native void enableMessages_native_QOpenGLDebugMessage_Sources_QOpenGLDebugMessage_Types_QOpenGLDebugMessage_Severities(long __this__nativeId, int sources, int types, int severities);
/**
* See QOpenGLDebugLogger:: initialize()
* @return
*/
@QtUninvokable
public final boolean initialize(){
return initialize_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean initialize_native(long __this__nativeId);
/**
* See QOpenGLDebugLogger:: isLogging()const
* @return
*/
@QtUninvokable
public final boolean isLogging(){
return isLogging_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isLogging_native_constfct(long __this__nativeId);
/**
* See QOpenGLDebugLogger:: logMessage(QOpenGLDebugMessage)
* @param debugMessage
*/
public final void logMessage(io.qt.opengl.@NonNull QOpenGLDebugMessage debugMessage){
logMessage_native_cref_QOpenGLDebugMessage(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(debugMessage));
}
private native void logMessage_native_cref_QOpenGLDebugMessage(long __this__nativeId, long debugMessage);
/**
* See QOpenGLDebugLogger:: loggedMessages()const
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QList loggedMessages(){
return loggedMessages_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList loggedMessages_native_constfct(long __this__nativeId);
/**
* See QOpenGLDebugLogger:: loggingMode()const
* @return
*/
@QtPropertyReader(name="loggingMode")
@QtUninvokable
public final io.qt.opengl.QOpenGLDebugLogger.@NonNull LoggingMode loggingMode(){
return io.qt.opengl.QOpenGLDebugLogger.LoggingMode.resolve(loggingMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int loggingMode_native_constfct(long __this__nativeId);
/**
* See QOpenGLDebugLogger:: maximumMessageLength()const
* @return
*/
@QtUninvokable
public final long maximumMessageLength(){
return maximumMessageLength_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long maximumMessageLength_native_constfct(long __this__nativeId);
/**
* See QOpenGLDebugLogger:: popGroup()
*/
@QtUninvokable
public final void popGroup(){
popGroup_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void popGroup_native(long __this__nativeId);
/**
* See QOpenGLDebugLogger:: pushGroup(QString, GLuint, QOpenGLDebugMessage::Source)
* @param name
* @param id
* @param source
*/
@QtUninvokable
public final void pushGroup(java.lang.@NonNull String name, int id, io.qt.opengl.QOpenGLDebugMessage.@NonNull Source source){
pushGroup_native_cref_QString_GLuint_QOpenGLDebugMessage_Source(QtJambi_LibraryUtilities.internal.nativeId(this), name, id, source.value());
}
@QtUninvokable
private native void pushGroup_native_cref_QString_GLuint_QOpenGLDebugMessage_Source(long __this__nativeId, java.lang.String name, int id, int source);
/**
* See QOpenGLDebugLogger:: startLogging(QOpenGLDebugLogger::LoggingMode)
* @param loggingMode
*/
public final void startLogging(io.qt.opengl.QOpenGLDebugLogger.@NonNull LoggingMode loggingMode){
startLogging_native_QOpenGLDebugLogger_LoggingMode(QtJambi_LibraryUtilities.internal.nativeId(this), loggingMode.value());
}
private native void startLogging_native_QOpenGLDebugLogger_LoggingMode(long __this__nativeId, int loggingMode);
/**
* See QOpenGLDebugLogger:: stopLogging()
*/
public final void stopLogging(){
stopLogging_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void stopLogging_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QOpenGLDebugLogger(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QOpenGLDebugLogger(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QOpenGLDebugLogger instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QOpenGLDebugLogger(io.qt.core.QObject)}
* with parent = null
.
*/
public QOpenGLDebugLogger() {
this((io.qt.core.QObject)null);
}
/**
* Overloaded function for {@link #disableMessages(java.util.Collection, io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types)}
* with types = new io.qt.opengl.QOpenGLDebugMessage.Types(-1)
.
*/
@QtUninvokable
public final void disableMessages(java.util.@NonNull Collection ids, io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources) {
disableMessages(ids, sources, new io.qt.opengl.QOpenGLDebugMessage.Types(-1));
}
/**
* Overloaded function for {@link #disableMessages(java.util.Collection, io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types)}
* with:
* sources = new io.qt.opengl.QOpenGLDebugMessage.Sources(-1)
* types = new io.qt.opengl.QOpenGLDebugMessage.Types(-1)
*
*/
@QtUninvokable
public final void disableMessages(java.util.@NonNull Collection ids) {
disableMessages(ids, new io.qt.opengl.QOpenGLDebugMessage.Sources(-1), new io.qt.opengl.QOpenGLDebugMessage.Types(-1));
}
/**
* Overloaded function for {@link #disableMessages(java.util.Collection, io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types)}.
*/
@QtUninvokable
public final void disableMessages(java.util.@NonNull Collection ids, io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources, io.qt.opengl.QOpenGLDebugMessage.@NonNull Type @NonNull... types) {
disableMessages(ids, sources, new io.qt.opengl.QOpenGLDebugMessage.Types(types));
}
/**
* Overloaded function for {@link #disableMessages(io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types, io.qt.opengl.QOpenGLDebugMessage.Severities)}
* with severities = new io.qt.opengl.QOpenGLDebugMessage.Severities(-1)
.
*/
@QtUninvokable
public final void disableMessages(io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources, io.qt.opengl.QOpenGLDebugMessage.@NonNull Types types) {
disableMessages(sources, types, new io.qt.opengl.QOpenGLDebugMessage.Severities(-1));
}
/**
* Overloaded function for {@link #disableMessages(io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types, io.qt.opengl.QOpenGLDebugMessage.Severities)}
* with:
* types = new io.qt.opengl.QOpenGLDebugMessage.Types(-1)
* severities = new io.qt.opengl.QOpenGLDebugMessage.Severities(-1)
*
*/
@QtUninvokable
public final void disableMessages(io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources) {
disableMessages(sources, new io.qt.opengl.QOpenGLDebugMessage.Types(-1), new io.qt.opengl.QOpenGLDebugMessage.Severities(-1));
}
/**
* Overloaded function for {@link #disableMessages(io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types, io.qt.opengl.QOpenGLDebugMessage.Severities)}
* with:
* sources = new io.qt.opengl.QOpenGLDebugMessage.Sources(-1)
* types = new io.qt.opengl.QOpenGLDebugMessage.Types(-1)
* severities = new io.qt.opengl.QOpenGLDebugMessage.Severities(-1)
*
*/
@QtUninvokable
public final void disableMessages() {
disableMessages(new io.qt.opengl.QOpenGLDebugMessage.Sources(-1), new io.qt.opengl.QOpenGLDebugMessage.Types(-1), new io.qt.opengl.QOpenGLDebugMessage.Severities(-1));
}
/**
* Overloaded function for {@link #disableMessages(io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types, io.qt.opengl.QOpenGLDebugMessage.Severities)}.
*/
@QtUninvokable
public final void disableMessages(io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources, io.qt.opengl.QOpenGLDebugMessage.@NonNull Types types, io.qt.opengl.QOpenGLDebugMessage.@NonNull Severity @NonNull... severities) {
disableMessages(sources, types, new io.qt.opengl.QOpenGLDebugMessage.Severities(severities));
}
/**
* Overloaded function for {@link #enableMessages(java.util.Collection, io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types)}
* with types = new io.qt.opengl.QOpenGLDebugMessage.Types(-1)
.
*/
@QtUninvokable
public final void enableMessages(java.util.@NonNull Collection ids, io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources) {
enableMessages(ids, sources, new io.qt.opengl.QOpenGLDebugMessage.Types(-1));
}
/**
* Overloaded function for {@link #enableMessages(java.util.Collection, io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types)}
* with:
* sources = new io.qt.opengl.QOpenGLDebugMessage.Sources(-1)
* types = new io.qt.opengl.QOpenGLDebugMessage.Types(-1)
*
*/
@QtUninvokable
public final void enableMessages(java.util.@NonNull Collection ids) {
enableMessages(ids, new io.qt.opengl.QOpenGLDebugMessage.Sources(-1), new io.qt.opengl.QOpenGLDebugMessage.Types(-1));
}
/**
* Overloaded function for {@link #enableMessages(java.util.Collection, io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types)}.
*/
@QtUninvokable
public final void enableMessages(java.util.@NonNull Collection ids, io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources, io.qt.opengl.QOpenGLDebugMessage.@NonNull Type @NonNull... types) {
enableMessages(ids, sources, new io.qt.opengl.QOpenGLDebugMessage.Types(types));
}
/**
* Overloaded function for {@link #enableMessages(io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types, io.qt.opengl.QOpenGLDebugMessage.Severities)}
* with severities = new io.qt.opengl.QOpenGLDebugMessage.Severities(-1)
.
*/
@QtUninvokable
public final void enableMessages(io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources, io.qt.opengl.QOpenGLDebugMessage.@NonNull Types types) {
enableMessages(sources, types, new io.qt.opengl.QOpenGLDebugMessage.Severities(-1));
}
/**
* Overloaded function for {@link #enableMessages(io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types, io.qt.opengl.QOpenGLDebugMessage.Severities)}
* with:
* types = new io.qt.opengl.QOpenGLDebugMessage.Types(-1)
* severities = new io.qt.opengl.QOpenGLDebugMessage.Severities(-1)
*
*/
@QtUninvokable
public final void enableMessages(io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources) {
enableMessages(sources, new io.qt.opengl.QOpenGLDebugMessage.Types(-1), new io.qt.opengl.QOpenGLDebugMessage.Severities(-1));
}
/**
* Overloaded function for {@link #enableMessages(io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types, io.qt.opengl.QOpenGLDebugMessage.Severities)}
* with:
* sources = new io.qt.opengl.QOpenGLDebugMessage.Sources(-1)
* types = new io.qt.opengl.QOpenGLDebugMessage.Types(-1)
* severities = new io.qt.opengl.QOpenGLDebugMessage.Severities(-1)
*
*/
@QtUninvokable
public final void enableMessages() {
enableMessages(new io.qt.opengl.QOpenGLDebugMessage.Sources(-1), new io.qt.opengl.QOpenGLDebugMessage.Types(-1), new io.qt.opengl.QOpenGLDebugMessage.Severities(-1));
}
/**
* Overloaded function for {@link #enableMessages(io.qt.opengl.QOpenGLDebugMessage.Sources, io.qt.opengl.QOpenGLDebugMessage.Types, io.qt.opengl.QOpenGLDebugMessage.Severities)}.
*/
@QtUninvokable
public final void enableMessages(io.qt.opengl.QOpenGLDebugMessage.@NonNull Sources sources, io.qt.opengl.QOpenGLDebugMessage.@NonNull Types types, io.qt.opengl.QOpenGLDebugMessage.@NonNull Severity @NonNull... severities) {
enableMessages(sources, types, new io.qt.opengl.QOpenGLDebugMessage.Severities(severities));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #loggingMode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.opengl.QOpenGLDebugLogger.@NonNull LoggingMode getLoggingMode() {
return loggingMode();
}
/**
* Overloaded function for {@link #pushGroup(java.lang.String, int, io.qt.opengl.QOpenGLDebugMessage.Source)}
* with source = io.qt.opengl.QOpenGLDebugMessage.Source.ApplicationSource
.
*/
@QtUninvokable
public final void pushGroup(java.lang.@NonNull String name, int id) {
pushGroup(name, id, io.qt.opengl.QOpenGLDebugMessage.Source.ApplicationSource);
}
/**
* Overloaded function for {@link #pushGroup(java.lang.String, int, io.qt.opengl.QOpenGLDebugMessage.Source)}
* with:
* id = 0
* source = io.qt.opengl.QOpenGLDebugMessage.Source.ApplicationSource
*
*/
@QtUninvokable
public final void pushGroup(java.lang.@NonNull String name) {
pushGroup(name, (int)0, io.qt.opengl.QOpenGLDebugMessage.Source.ApplicationSource);
}
/**
* Overloaded function for {@link #startLogging(io.qt.opengl.QOpenGLDebugLogger.LoggingMode)}
* with loggingMode = io.qt.opengl.QOpenGLDebugLogger.LoggingMode.AsynchronousLogging
.
*/
public final void startLogging() {
startLogging(io.qt.opengl.QOpenGLDebugLogger.LoggingMode.AsynchronousLogging);
}
}