- All Implemented Interfaces:
QtAbstractEnumerator
,QtEnumerator
,Serializable
,Comparable<QMetaType.Type>
,Constable
- Enclosing class:
QMetaType
Java wrapper for Qt enum QMetaType::Type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresenting QMetaType::BoolRepresenting QMetaType::CharRepresenting QMetaType::Char16Representing QMetaType::Char32Representing QMetaType::DoubleRepresenting QMetaType::FirstCoreTypeRepresenting QMetaType::FirstGuiTypeRepresenting QMetaType::FirstWidgetsTypeRepresenting QMetaType::FloatRepresenting QMetaType::Float16Representing QMetaType::HighestInternalIdRepresenting QMetaType::IntRepresenting QMetaType::LastCoreTypeRepresenting QMetaType::LastGuiTypeRepresenting QMetaType::LastWidgetsTypeRepresenting QMetaType::LongRepresenting QMetaType::LongLongRepresenting QMetaType::NullptrRepresenting QMetaType::QBitArrayRepresenting QMetaType::QBitmapRepresenting QMetaType::QBrushRepresenting QMetaType::QByteArrayRepresenting QMetaType::QByteArrayListRepresenting QMetaType::QCborArrayRepresenting QMetaType::QCborMapRepresenting QMetaType::QCborSimpleTypeRepresenting QMetaType::QCborValueRepresenting QMetaType::QCharRepresenting QMetaType::QColorRepresenting QMetaType::QColorSpaceRepresenting QMetaType::QCursorRepresenting QMetaType::QDateRepresenting QMetaType::QDateTimeRepresenting QMetaType::QEasingCurveRepresenting QMetaType::QFontRepresenting QMetaType::QIconRepresenting QMetaType::QImageRepresenting QMetaType::QJsonArrayRepresenting QMetaType::QJsonDocumentRepresenting QMetaType::QJsonObjectRepresenting QMetaType::QJsonValueRepresenting QMetaType::QKeySequenceRepresenting QMetaType::QLineRepresenting QMetaType::QLineFRepresenting QMetaType::QLocaleRepresenting QMetaType::QMatrix4x4Representing QMetaType::QModelIndexRepresenting QMetaType::QObjectStarRepresenting QMetaType::QPaletteRepresenting QMetaType::QPenRepresenting QMetaType::QPersistentModelIndexRepresenting QMetaType::QPixmapRepresenting QMetaType::QPointRepresenting QMetaType::QPointFRepresenting QMetaType::QPolygonRepresenting QMetaType::QPolygonFRepresenting QMetaType::QQuaternionRepresenting QMetaType::QRectRepresenting QMetaType::QRectFRepresenting QMetaType::QRegionRepresenting QMetaType::QRegularExpressionRepresenting QMetaType::QSizeRepresenting QMetaType::QSizeFRepresenting QMetaType::QSizePolicyRepresenting QMetaType::QStringRepresenting QMetaType::QStringListRepresenting QMetaType::QTextFormatRepresenting QMetaType::QTextLengthRepresenting QMetaType::QTimeRepresenting QMetaType::QTransformRepresenting QMetaType::QUrlRepresenting QMetaType::QUuidRepresenting QMetaType::QVariantRepresenting QMetaType::QVariantHashRepresenting QMetaType::QVariantListRepresenting QMetaType::QVariantMapRepresenting QMetaType::QVariantPairRepresenting QMetaType::QVector2DRepresenting QMetaType::QVector3DRepresenting QMetaType::QVector4DRepresenting QMetaType::SCharRepresenting QMetaType::ShortRepresenting QMetaType::UCharRepresenting QMetaType::UIntRepresenting QMetaType::ULongRepresenting QMetaType::ULongLongRepresenting QMetaType::UnknownTypeRepresenting QMetaType::UserRepresenting QMetaType::UShortRepresenting QMetaType::VoidRepresenting QMetaType::VoidStar -
Method Summary
Modifier and TypeMethodDescriptionstatic QMetaType.Type
resolve
(int value) Returns the corresponding enum entry for the given value.static QMetaType.Type
Returns the corresponding enum entry for the given value and name.int
value()
This function should return an integer value for the enum values of the enumeration that implements this interface.static QMetaType.Type
Returns the enum constant of this type with the specified name.static QMetaType.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface io.qt.QtEnumerator
getDeclaringClass, name, ordinal
-
Enum Constant Details
-
Bool
Representing QMetaType::Bool
-
Int
Representing QMetaType::Int
-
UInt
Representing QMetaType::UInt
-
LongLong
Representing QMetaType::LongLong
-
ULongLong
Representing QMetaType::ULongLong
-
Double
Representing QMetaType::Double
-
Long
Representing QMetaType::Long
-
Short
Representing QMetaType::Short
-
Char
Representing QMetaType::Char
-
Char16
Representing QMetaType::Char16
-
Char32
Representing QMetaType::Char32
-
ULong
Representing QMetaType::ULong
-
UShort
Representing QMetaType::UShort
-
UChar
Representing QMetaType::UChar
-
Float
Representing QMetaType::Float
-
SChar
Representing QMetaType::SChar
-
Nullptr
Representing QMetaType::Nullptr
-
QCborSimpleType
Representing QMetaType::QCborSimpleType
-
Void
Representing QMetaType::Void
-
VoidStar
Representing QMetaType::VoidStar
-
QChar
Representing QMetaType::QChar
-
QString
Representing QMetaType::QString
-
QByteArray
Representing QMetaType::QByteArray
-
QBitArray
Representing QMetaType::QBitArray
-
QDate
Representing QMetaType::QDate
-
QTime
Representing QMetaType::QTime
-
QDateTime
Representing QMetaType::QDateTime
-
QUrl
Representing QMetaType::QUrl
-
QLocale
Representing QMetaType::QLocale
-
QRect
Representing QMetaType::QRect
-
QRectF
Representing QMetaType::QRectF
-
QSize
Representing QMetaType::QSize
-
QSizeF
Representing QMetaType::QSizeF
-
QLine
Representing QMetaType::QLine
-
QLineF
Representing QMetaType::QLineF
-
QPoint
Representing QMetaType::QPoint
-
QPointF
Representing QMetaType::QPointF
-
QEasingCurve
Representing QMetaType::QEasingCurve
-
QUuid
Representing QMetaType::QUuid
-
QVariant
Representing QMetaType::QVariant
-
QRegularExpression
Representing QMetaType::QRegularExpression
-
QJsonValue
Representing QMetaType::QJsonValue
-
QJsonObject
Representing QMetaType::QJsonObject
-
QJsonArray
Representing QMetaType::QJsonArray
-
QJsonDocument
Representing QMetaType::QJsonDocument
-
QCborValue
Representing QMetaType::QCborValue
-
QCborArray
Representing QMetaType::QCborArray
-
QCborMap
Representing QMetaType::QCborMap
-
Float16
Representing QMetaType::Float16
-
QModelIndex
Representing QMetaType::QModelIndex
-
QPersistentModelIndex
Representing QMetaType::QPersistentModelIndex
-
QObjectStar
Representing QMetaType::QObjectStar
-
QVariantMap
Representing QMetaType::QVariantMap
-
QVariantList
Representing QMetaType::QVariantList
-
QVariantHash
Representing QMetaType::QVariantHash
-
QVariantPair
Representing QMetaType::QVariantPair
-
QByteArrayList
Representing QMetaType::QByteArrayList
-
QStringList
Representing QMetaType::QStringList
-
QFont
Representing QMetaType::QFont
-
QPixmap
Representing QMetaType::QPixmap
-
QBrush
Representing QMetaType::QBrush
-
QColor
Representing QMetaType::QColor
-
QPalette
Representing QMetaType::QPalette
-
QIcon
Representing QMetaType::QIcon
-
QImage
Representing QMetaType::QImage
-
QPolygon
Representing QMetaType::QPolygon
-
QRegion
Representing QMetaType::QRegion
-
QBitmap
Representing QMetaType::QBitmap
-
QCursor
Representing QMetaType::QCursor
-
QKeySequence
Representing QMetaType::QKeySequence
-
QPen
Representing QMetaType::QPen
-
QTextLength
Representing QMetaType::QTextLength
-
QTextFormat
Representing QMetaType::QTextFormat
-
QTransform
Representing QMetaType::QTransform
-
QMatrix4x4
Representing QMetaType::QMatrix4x4
-
QVector2D
Representing QMetaType::QVector2D
-
QVector3D
Representing QMetaType::QVector3D
-
QVector4D
Representing QMetaType::QVector4D
-
QQuaternion
Representing QMetaType::QQuaternion
-
QPolygonF
Representing QMetaType::QPolygonF
-
QColorSpace
Representing QMetaType::QColorSpace
-
QSizePolicy
Representing QMetaType::QSizePolicy
-
FirstCoreType
Representing QMetaType::FirstCoreType
-
LastCoreType
Representing QMetaType::LastCoreType
-
FirstGuiType
Representing QMetaType::FirstGuiType
-
LastGuiType
Representing QMetaType::LastGuiType
-
FirstWidgetsType
Representing QMetaType::FirstWidgetsType
-
LastWidgetsType
Representing QMetaType::LastWidgetsType
-
HighestInternalId
Representing QMetaType::HighestInternalId
-
UnknownType
Representing QMetaType::UnknownType
-
User
Representing QMetaType::User
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value()This function should return an integer value for the enum values of the enumeration that implements this interface. Default isEnum.ordinal()
.- Specified by:
value
in interfaceQtEnumerator
-
resolve
Returns the corresponding enum entry for the given value.- Parameters:
value
-- Returns:
- enum entry
- Throws:
QNoSuchEnumValueException
- if value not existent in the enum
-
resolve
Returns the corresponding enum entry for the given value and name.- Parameters:
value
-name
-- Returns:
- enum entry
- Throws:
QNoSuchEnumValueException
- if value not existent in the enum or name does not match.
-