
io.qt.internal.MetaDataFlags 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.internal;
/**
* Java wrapper for Qt enum MetaDataFlags
*/
public enum MetaDataFlags implements io.qt.QtFlagEnumerator {
IsUnresolvedType(-2147483648),
TypeNameIndexMask(2147483647),
IsUnresolvedSignal(1879048192);
private MetaDataFlags(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public MetaDataAttributes asFlags() {
return new MetaDataAttributes(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public MetaDataAttributes combined(MetaDataFlags e) {
return new MetaDataAttributes(this, e);
}
/**
* Creates a new {@link MetaDataAttributes} from the entries.
* @param values entries
* @return new flag
*/
public static MetaDataAttributes flags(MetaDataFlags ... values) {
return new MetaDataAttributes(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static MetaDataFlags resolve(int value) {
switch (value) {
case -2147483648: return IsUnresolvedType;
case 2147483647: return TypeNameIndexMask;
case 1879048192: return IsUnresolvedSignal;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy