java.lang.Object
io.qt.QtObject
io.qt.core.QMetaEnum
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Meta-data about an enumerator
Java wrapper for Qt class QMetaEnum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final QMetaObject
SeeQMetaEnum::
enclosingMetaObject()const final QtAbstractEnumerator []
entries()
Returns all enum entries of this enum type.final QtAbstractEnumerator
entry
(int index) Returns the enum entry of the given value.final QtAbstractEnumerator
Returns the enum entry of the given name.final String
enumName()
final boolean
Seeoperator==(QMetaEnum,
QMetaEnum) boolean
Seeoperator==(QMetaEnum,
QMetaEnum) final QFlags<?>
flags
(int value) Returns flags for the given value.final QFlags<?>
Returns flags for the given enum names.int
hashCode()
Returns the objects's hash code computed byqHash(QMetaEnum)
.final boolean
isFlag()
final boolean
isScoped()
final boolean
isValid()
final String
key
(int index) final int
keyCount()
final Integer
keysToValue
(String keys) final Integer
keysToValue
(String... keys) final Integer
keysToValue
(Collection<String> keys) final Integer
keyToValue
(String key) final QMetaType
metaType()
final String
name()
final QtAbstractEnumerator
resolve
(int value) Returns the enum entry of the given value.final String
scope()
final String
toString()
final Class<?>
type()
Returns the java class of this enum type.final int
value
(int index) final String
valueToKey
(int value) final QByteArray
valueToKeys
(int value) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QMetaEnum
public QMetaEnum()See
QMetaEnum::
QMetaEnum() -
QMetaEnum
See
QMetaEnum::
QMetaEnum(QMetaEnum) - Parameters:
other
-
-
-
Method Details
-
enclosingMetaObject
See
QMetaEnum::
enclosingMetaObject()const - Returns:
-
enumName
- Returns:
-
isFlag
- Returns:
-
isScoped
- Returns:
-
isValid
- Returns:
-
key
- Parameters:
index
-- Returns:
-
keyCount
- Returns:
-
keyToValue
- Parameters:
key
-- Returns:
-
keysToValue
- Parameters:
keys
-- Returns:
-
metaType
- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
name
- Returns:
-
equals
See
operator==(QMetaEnum,
QMetaEnum) - Parameters:
value2
-- Returns:
-
scope
- Returns:
-
value
- Parameters:
index
-- Returns:
-
valueToKey
- Parameters:
value
-- Returns:
-
valueToKeys
- Parameters:
value
-- Returns:
-
equals
See
operator==(QMetaEnum,
QMetaEnum) -
hashCode
Returns the objects's hash code computed byqHash(QMetaEnum)
. -
toString
-
keysToValue
-
keysToValue
-
entries
Returns all enum entries of this enum type. -
entry
Returns the enum entry of the given value. -
entry
Returns the enum entry of the given name. -
type
Returns the java class of this enum type. -
flags
Returns flags for the given value. -
flags
Returns flags for the given enum names. -
resolve
Returns the enum entry of the given value. -
clone
Creates and returns a copy of this object.
See
QMetaEnum::
QMetaEnum(QMetaEnum)
-