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

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

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


/**
 * 

Clock time functions

*

Java wrapper for Qt class QTime

*/ public class QTime extends io.qt.QtObject implements java.lang.Comparable, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QTime::QTime()

*/ public QTime(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QTime instance); /** *

Overloaded constructor for {@link #QTime(int, int, int, int)} * with ms = 0.

*/ public QTime(int h, int m, int s) { this(h, m, s, (int)0); } /** *

Overloaded constructor for {@link #QTime(int, int, int, int)}

*

with:

    *
  • s = 0
  • *
  • ms = 0
  • *
*/ public QTime(int h, int m) { this(h, m, (int)0, (int)0); } /** *

See QTime::QTime(int,int,int,int)

*/ public QTime(int h, int m, int s, int ms){ super((QPrivateConstructor)null); initialize_native(this, h, m, s, ms); } private native static void initialize_native(QTime instance, int h, int m, int s, int ms); /** *

See QTime::addMSecs(int)const

*/ @io.qt.QtUninvokable public final io.qt.core.QTime addMSecs(int ms){ return addMSecs_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), ms); } @io.qt.QtUninvokable private native io.qt.core.QTime addMSecs_native_int_constfct(long __this__nativeId, int ms); /** *

See QTime::addSecs(int)const

*/ @io.qt.QtUninvokable public final io.qt.core.QTime addSecs(int secs){ return addSecs_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), secs); } @io.qt.QtUninvokable private native io.qt.core.QTime addSecs_native_int_constfct(long __this__nativeId, int secs); /** *

See QTime::hour()const

*/ @io.qt.QtUninvokable public final int hour(){ return hour_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int hour_native_constfct(long __this__nativeId); /** *

See QTime::isNull()const

*/ @io.qt.QtUninvokable public final boolean isNull(){ return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isNull_native_constfct(long __this__nativeId); /** *

See QTime::isValid()const

*/ @io.qt.QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); /** *

See QTime::minute()const

*/ @io.qt.QtUninvokable public final int minute(){ return minute_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int minute_native_constfct(long __this__nativeId); /** *

See QTime::msec()const

*/ @io.qt.QtUninvokable public final int msec(){ return msec_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int msec_native_constfct(long __this__nativeId); /** *

See QTime::msecsSinceStartOfDay()const

*/ @io.qt.QtUninvokable public final int msecsSinceStartOfDay(){ return msecsSinceStartOfDay_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int msecsSinceStartOfDay_native_constfct(long __this__nativeId); /** *

See QTime::msecsTo(QTime)const

*/ @io.qt.QtUninvokable public final int msecsTo(io.qt.core.QTime t){ return msecsTo_native_QTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(t)); } @io.qt.QtUninvokable private native int msecsTo_native_QTime_constfct(long __this__nativeId, long t); @io.qt.QtUninvokable private final boolean operator_less(io.qt.core.QTime rhs){ return operator_less_native_QTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @io.qt.QtUninvokable private native boolean operator_less_native_QTime(long __this__nativeId, long rhs); @io.qt.QtUninvokable public void writeTo(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QTime rhs){ return operator_equal_native_QTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @io.qt.QtUninvokable private native boolean operator_equal_native_QTime(long __this__nativeId, long rhs); @io.qt.QtUninvokable public void readFrom(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QTime::second()const

*/ @io.qt.QtUninvokable public final int second(){ return second_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int second_native_constfct(long __this__nativeId); /** *

See QTime::secsTo(QTime)const

*/ @io.qt.QtUninvokable public final int secsTo(io.qt.core.QTime t){ return secsTo_native_QTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(t)); } @io.qt.QtUninvokable private native int secsTo_native_QTime_constfct(long __this__nativeId, long t); /** *

Overloaded function for {@link #setHMS(int, int, int, int)} * with ms = 0.

*/ @io.qt.QtUninvokable public final boolean setHMS(int h, int m, int s) { return setHMS(h, m, s, (int)0); } /** *

See QTime::setHMS(int,int,int,int)

*/ @io.qt.QtUninvokable public final boolean setHMS(int h, int m, int s, int ms){ return setHMS_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), h, m, s, ms); } @io.qt.QtUninvokable private native boolean setHMS_native_int_int_int_int(long __this__nativeId, int h, int m, int s, int ms); /** *

Overloaded function for {@link #toString(io.qt.core.Qt.DateFormat)} * with f = io.qt.core.Qt.DateFormat.TextDate.

*/ @io.qt.QtUninvokable public final java.lang.String toString() { return toString(io.qt.core.Qt.DateFormat.TextDate); } /** *

See QTime::toString(Qt::DateFormat)const

*/ @io.qt.QtUninvokable public final java.lang.String toString(io.qt.core.Qt.DateFormat f){ return toString_native_Qt_DateFormat_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), f.value()); } @io.qt.QtUninvokable private native java.lang.String toString_native_Qt_DateFormat_constfct(long __this__nativeId, int f); /** *

See QTime::toString(QString)const

*/ @io.qt.QtUninvokable public final java.lang.String toString(java.lang.String format){ return toString_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), format); } @io.qt.QtUninvokable private native java.lang.String toString_native_cref_QString_constfct(long __this__nativeId, java.lang.String format); /** *

See QTime::currentTime()

*/ public native static io.qt.core.QTime currentTime(); /** *

See QTime::fromMSecsSinceStartOfDay(int)

*/ public native static io.qt.core.QTime fromMSecsSinceStartOfDay(int msecs); /** *

Overloaded function for {@link #fromString(java.lang.String, io.qt.core.Qt.DateFormat)} * with format = io.qt.core.Qt.DateFormat.TextDate.

*/ public static io.qt.core.QTime fromString(java.lang.String string) { return fromString(string, io.qt.core.Qt.DateFormat.TextDate); } /** *

See QTime::fromString(QStringView,Qt::DateFormat)

*/ public static io.qt.core.QTime fromString(java.lang.String string, io.qt.core.Qt.DateFormat format){ return fromString_native_QStringView_Qt_DateFormat(string, format.value()); } private native static io.qt.core.QTime fromString_native_QStringView_Qt_DateFormat(java.lang.String string, int format); /** *

See QTime::fromString(QString,QStringView)

*/ public native static io.qt.core.QTime fromString(java.lang.String string, java.lang.String format); /** *

Overloaded function for {@link #isValid(int, int, int, int)} * with ms = 0.

*/ public static boolean isValid(int h, int m, int s) { return isValid(h, m, s, (int)0); } /** *

See QTime::isValid(int,int,int,int)

*/ public native static boolean isValid(int h, int m, int s, int ms); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QTime(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QTime) { return operator_equal((io.qt.core.QTime) other); } return false; } @io.qt.QtUninvokable public int compareTo(io.qt.core.QTime other) { if (equals(other)) return 0; else if (operator_less(other)) return -1; else return 1; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @Override public QTime clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QTime clone_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy