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

io.qt.internal.MetaObjectFlag Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.internal;

import io.qt.*;

/**
 * 

Java wrapper for Qt enum MetaObjectFlag

* @hidden */ public enum MetaObjectFlag implements QtFlagEnumerator { /** *

Representing DynamicMetaObject

*/ DynamicMetaObject(1), /** *

Representing RequiresVariantMetaObject

*/ RequiresVariantMetaObject(2), /** *

Representing PropertyAccessInStaticMetaCall

*/ PropertyAccessInStaticMetaCall(4); static { QtJambi_LibraryUtilities.initialize(); } private MetaObjectFlag(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ @Override public @NonNull MetaObjectFlags asFlags() { return new MetaObjectFlags(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull MetaObjectFlags combined(@NonNull MetaObjectFlag e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull MetaObjectFlags cleared(@NonNull MetaObjectFlag e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link MetaObjectFlags} from the entries. * @param values entries * @return new flag */ public static @NonNull MetaObjectFlags flags(@Nullable MetaObjectFlag @NonNull... values) { return new MetaObjectFlags(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull MetaObjectFlag resolve(int value) { switch (value) { case 1: return DynamicMetaObject; case 2: return RequiresVariantMetaObject; case 4: return PropertyAccessInStaticMetaCall; default: throw new QNoSuchEnumValueException(value); } } private final int value; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy