
io.qt.internal.MetaObjectFlag 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 MetaObjectFlag
*/
public enum MetaObjectFlag implements io.qt.QtFlagEnumerator {
DynamicMetaObject(1),
RequiresVariantMetaObject(2),
PropertyAccessInStaticMetaCall(4);
private MetaObjectFlag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public MetaObjectFlags asFlags() {
return new MetaObjectFlags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public MetaObjectFlags combined(MetaObjectFlag e) {
return new MetaObjectFlags(this, e);
}
/**
* Creates a new {@link MetaObjectFlags} from the entries.
* @param values entries
* @return new flag
*/
public static MetaObjectFlags flags(MetaObjectFlag ... values) {
return new MetaObjectFlags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static MetaObjectFlag resolve(int value) {
switch (value) {
case 1: return DynamicMetaObject;
case 2: return RequiresVariantMetaObject;
case 4: return PropertyAccessInStaticMetaCall;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy