io.qt.core.QSignalBlocker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.core;
import io.qt.*;
/**
* Exception-safe wrapper around QObject::blockSignals()
* Java wrapper for Qt class QSignalBlocker
*/
public class QSignalBlocker extends QtObject
implements AutoCloseable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QSignalBlocker:: QSignalBlocker(QObject*)
*/
public QSignalBlocker(io.qt.core.@Nullable QObject o){
super((QPrivateConstructor)null);
initialize_native(this, o);
}
private native static void initialize_native(QSignalBlocker instance, io.qt.core.QObject o);
/**
*
*/
@QtUninvokable
public final void reblock(){
reblock_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void reblock_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final void unblock(){
unblock_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void unblock_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QSignalBlocker(QPrivateConstructor p) { super(p); }
public void close(){dispose();}
}