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

io.qt.core.QChronoTimer Maven / Gradle / Ivy

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

import io.qt.*;


/**
 * 

Repetitive and single-shot timers

*

Java wrapper for Qt class QChronoTimer

* @since This class was introduced in Qt 6.8. */ public class QChronoTimer extends io.qt.core.QObject { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QChronoTimer.class); /** *

See QChronoTimer::timeout()

*/ public final @NonNull PrivateSignal0 timeout = new PrivateSignal0(); /** *

See QChronoTimer::QChronoTimer(QObject*)

* @param parent */ public QChronoTimer(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QChronoTimer instance, io.qt.core.QObject parent); /** *

See QChronoTimer::QChronoTimer(std::chrono::nanoseconds,QObject*)

* @param nsec * @param parent */ public QChronoTimer(java.time.temporal.@NonNull TemporalAmount nsec, io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, nsec, parent); } private native static void initialize_native(QChronoTimer instance, java.time.temporal.TemporalAmount nsec, io.qt.core.QObject parent); /** *

See QChronoTimer::bindableActive()

* @return */ @QtPropertyBindable(name="active") @QtUninvokable public final io.qt.core.@NonNull QBooleanBindable bindableActive(){ return bindableActive_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QBooleanBindable bindableActive_native(long __this__nativeId); /** *

See QChronoTimer::bindableInterval()

* @return */ @QtPropertyBindable(name="interval") @QtUninvokable public final io.qt.core.@NonNull QBindable bindableInterval(){ return bindableInterval_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QBindable bindableInterval_native(long __this__nativeId); /** *

See QChronoTimer::bindableSingleShot()

* @return */ @QtPropertyBindable(name="singleShot") @QtUninvokable public final io.qt.core.@NonNull QBooleanBindable bindableSingleShot(){ return bindableSingleShot_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QBooleanBindable bindableSingleShot_native(long __this__nativeId); /** *

See QChronoTimer::bindableTimerType()

* @return */ @QtPropertyBindable(name="timerType") @QtUninvokable public final io.qt.core.@NonNull QBindable bindableTimerType(){ return bindableTimerType_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QBindable bindableTimerType_native(long __this__nativeId); /** *

See QChronoTimer::id()const

* @return */ @QtUninvokable public final io.qt.core.Qt.@NonNull TimerId id(){ return io.qt.core.Qt.TimerId.resolve(id_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int id_native_constfct(long __this__nativeId); /** *

See QChronoTimer::interval()const

* @return */ @QtPropertyReader(name="interval") @QtUninvokable public final java.time.@NonNull Duration interval(){ return interval_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.time.Duration interval_native_constfct(long __this__nativeId); /** *

See QChronoTimer::isActive()const

* @return */ @QtPropertyReader(name="active") @QtPropertyStored("false") @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 QChronoTimer::isSingleShot()const

* @return */ @QtPropertyReader(name="singleShot") @QtUninvokable public final boolean isSingleShot(){ return isSingleShot_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isSingleShot_native_constfct(long __this__nativeId); /** *

See QChronoTimer::remainingTime()const

* @return */ @QtPropertyReader(name="remainingTime") @QtUninvokable public final java.time.@NonNull Duration remainingTime(){ return remainingTime_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.time.Duration remainingTime_native_constfct(long __this__nativeId); /** *

See QChronoTimer::setInterval(std::chrono::nanoseconds)

* @param nsec */ @QtPropertyWriter(name="interval") @QtUninvokable public final void setInterval(java.time.temporal.@NonNull TemporalAmount nsec){ setInterval_native_std_chrono_nanoseconds(QtJambi_LibraryUtilities.internal.nativeId(this), nsec); } @QtUninvokable private native void setInterval_native_std_chrono_nanoseconds(long __this__nativeId, java.time.temporal.TemporalAmount nsec); /** *

See QChronoTimer::setSingleShot(bool)

* @param singleShot */ @QtPropertyWriter(name="singleShot") @QtUninvokable public final void setSingleShot(boolean singleShot){ setSingleShot_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), singleShot); } @QtUninvokable private native void setSingleShot_native_bool(long __this__nativeId, boolean singleShot); /** *

See QChronoTimer::setTimerType(Qt::TimerType)

* @param atype */ @QtPropertyWriter(name="timerType") @QtUninvokable public final void setTimerType(io.qt.core.Qt.@NonNull TimerType atype){ setTimerType_native_Qt_TimerType(QtJambi_LibraryUtilities.internal.nativeId(this), atype.value()); } @QtUninvokable private native void setTimerType_native_Qt_TimerType(long __this__nativeId, int atype); /** *

See QChronoTimer::start()

*/ public final void start(){ start_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void start_native(long __this__nativeId); /** *

See QChronoTimer::stop()

*/ public final void stop(){ stop_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void stop_native(long __this__nativeId); /** *

See QChronoTimer::timerType()const

* @return */ @QtPropertyReader(name="timerType") @QtUninvokable public final io.qt.core.Qt.@NonNull TimerType timerType(){ return io.qt.core.Qt.TimerType.resolve(timerType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int timerType_native_constfct(long __this__nativeId); /** *

See QObject::timerEvent(QTimerEvent*)

* @param arg__1 */ @QtUninvokable @Override protected void timerEvent(io.qt.core.@Nullable QTimerEvent arg__1){ timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long arg__1); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QChronoTimer(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QChronoTimer(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QChronoTimer instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QChronoTimer(io.qt.core.QObject)} * with parent = null.

*/ public QChronoTimer() { this((io.qt.core.QObject)null); } /** *

Overloaded constructor for {@link #QChronoTimer(java.time.temporal.TemporalAmount, io.qt.core.QObject)} * with parent = null.

*/ public QChronoTimer(java.time.temporal.@NonNull TemporalAmount nsec) { this(nsec, (io.qt.core.QObject)null); } /** * @hidden *

Kotlin property getter. In Java use {@link #interval()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.time.@NonNull Duration getInterval() { return interval(); } /** * @hidden *

Kotlin property getter. In Java use {@link #isActive()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getActive() { return isActive(); } /** * @hidden *

Kotlin property getter. In Java use {@link #isSingleShot()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getSingleShot() { return isSingleShot(); } /** * @hidden *

Kotlin property getter. In Java use {@link #remainingTime()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.time.@NonNull Duration getRemainingTime() { return remainingTime(); } /** * @hidden *

Kotlin property getter. In Java use {@link #timerType()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.Qt.@NonNull TimerType getTimerType() { return timerType(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy