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

io.qt.widgets.QStyleHintReturn Maven / Gradle / Ivy

There is a newer version: 6.8.1
Show newest version
package io.qt.widgets;

import io.qt.*;


/**
 * 

Style hints that return more than basic data types

*

Java wrapper for Qt class QStyleHintReturn

*/ public class QStyleHintReturn extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QStyleHintReturn::HintReturnType

*/ public enum HintReturnType implements QtEnumerator { /** *

Representing QStyleHintReturn::SH_Default

*/ SH_Default(61440), /** *

Representing QStyleHintReturn::SH_Mask

*/ SH_Mask(61441), /** *

Representing QStyleHintReturn::SH_Variant

*/ SH_Variant(61442); static { QtJambi_LibraryUtilities.initialize(); } private HintReturnType(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull HintReturnType resolve(int value) { switch (value) { case 61440: return SH_Default; case 61441: return SH_Mask; case 61442: return SH_Variant; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QStyleHintReturn::QStyleHintReturn(QStyleHintReturn)

* @param other */ public QStyleHintReturn(io.qt.widgets.@StrictNonNull QStyleHintReturn other){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); initialize_native(this, other); } private native static void initialize_native(QStyleHintReturn instance, io.qt.widgets.QStyleHintReturn other); /** *

See QStyleHintReturn::QStyleHintReturn(int,int)

* @param version * @param type */ public QStyleHintReturn(int version, int type){ super((QPrivateConstructor)null); initialize_native(this, version, type); } private native static void initialize_native(QStyleHintReturn instance, int version, int type); /** *

The type of the style hint container

*

See QStyleHintReturn::type

* @param type */ @QtUninvokable public final void setType(int type){ setType_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), type); } @QtUninvokable private native void setType_native_int(long __this__nativeId, int type); /** *

The type of the style hint container

*

See QStyleHintReturn::type

* @return */ @QtUninvokable public final int type(){ return type_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int type_native(long __this__nativeId); /** *

The version of the style hint return container

*

See QStyleHintReturn::version

* @param version */ @QtUninvokable public final void setVersion(int version){ setVersion_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), version); } @QtUninvokable private native void setVersion_native_int(long __this__nativeId, int version); /** *

The version of the style hint return container

*

See QStyleHintReturn::version

* @return */ @QtUninvokable public final int version(){ return version_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int version_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QStyleHintReturn(QPrivateConstructor p) { super(p); } /** *

Creates and returns a copy of this object.

See QStyleHintReturn::QStyleHintReturn(QStyleHintReturn)

*/ @QtUninvokable @Override public QStyleHintReturn clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QStyleHintReturn clone_native(long __this_nativeId); /** *

Overloaded constructor for {@link #QStyleHintReturn(int, int)} * with type = 61440.

*/ public QStyleHintReturn(int version) { this(version, (int)61440); } /** *

Overloaded constructor for {@link #QStyleHintReturn(int, int)}

*

with:

    *
  • version = 1
  • *
  • type = 61440
  • *
*/ public QStyleHintReturn() { this((int)1, (int)61440); } /** * @hidden *

Kotlin property getter. In Java use {@link #type()} instead.

*/ @QtUninvokable public final int getType() { return type(); } /** * @hidden *

Kotlin property getter. In Java use {@link #version()} instead.

*/ @QtUninvokable public final int getVersion() { return version(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy