io.qt.core.QBasicTimer 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.*;
/**
* Timer events for objects
* Java wrapper for Qt class QBasicTimer
*/
public class QBasicTimer extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QBasicTimer:: QBasicTimer()
*/
public QBasicTimer(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QBasicTimer instance);
/**
* See QBasicTimer:: isActive()const
*/
@QtUninvokable
public final boolean isActive(){
return isActive_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isActive_native_constfct(long __this__nativeId);
/**
* See QBasicTimer:: start(int, QObject*)
*/
@QtUninvokable
public final void start(int msec, io.qt.core.@Nullable QObject obj){
start_native_int_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), msec, QtJambi_LibraryUtilities.internal.checkedNativeId(obj));
}
@QtUninvokable
private native void start_native_int_QObject_ptr(long __this__nativeId, int msec, long obj);
/**
* See QBasicTimer:: start(int, Qt::TimerType, QObject*)
*/
@QtUninvokable
public final void start(int msec, io.qt.core.Qt.@NonNull TimerType timerType, io.qt.core.@Nullable QObject obj){
start_native_int_Qt_TimerType_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), msec, timerType.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(obj));
}
@QtUninvokable
private native void start_native_int_Qt_TimerType_QObject_ptr(long __this__nativeId, int msec, int timerType, long obj);
/**
* See QBasicTimer:: start(std::chrono::milliseconds, QObject*)
* This function was introduced in Qt 6.5.
*/
@QtUninvokable
public final void start(java.time.temporal.@NonNull TemporalAmount duration, io.qt.core.@Nullable QObject obj){
start_native_std_chrono_milliseconds_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), duration, QtJambi_LibraryUtilities.internal.checkedNativeId(obj));
}
@QtUninvokable
private native void start_native_std_chrono_milliseconds_QObject_ptr(long __this__nativeId, java.time.temporal.TemporalAmount duration, long obj);
/**
* See QBasicTimer:: start(std::chrono::milliseconds, Qt::TimerType, QObject*)
* This function was introduced in Qt 6.5.
*/
@QtUninvokable
public final void start(java.time.temporal.@NonNull TemporalAmount duration, io.qt.core.Qt.@NonNull TimerType timerType, io.qt.core.@Nullable QObject obj){
start_native_std_chrono_milliseconds_Qt_TimerType_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), duration, timerType.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(obj));
}
@QtUninvokable
private native void start_native_std_chrono_milliseconds_Qt_TimerType_QObject_ptr(long __this__nativeId, java.time.temporal.TemporalAmount duration, int timerType, long obj);
/**
*
*/
@QtUninvokable
public final void stop(){
stop_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void stop_native(long __this__nativeId);
/**
* See QBasicTimer:: swap(QBasicTimer&)
*/
@QtUninvokable
public final void swap(io.qt.core.@StrictNonNull QBasicTimer other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QBasicTimer(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QBasicTimer(long __this__nativeId, long other);
/**
* See QBasicTimer:: timerId()const
*/
@QtUninvokable
public final int timerId(){
return timerId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int timerId_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QBasicTimer(QPrivateConstructor p) { super(p); }
}