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

io.qt.gui.QColorSpace Maven / Gradle / Ivy

The newest version!
package io.qt.gui;


/**
 * 

Color space abstraction

*

Java wrapper for Qt class QColorSpace

*/ public class QColorSpace extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QColorSpace.class); /** *

Java wrapper for Qt enum QColorSpace::NamedColorSpace

*/ public enum NamedColorSpace implements io.qt.QtEnumerator { SRgb(1), SRgbLinear(2), AdobeRgb(3), DisplayP3(4), ProPhotoRgb(5); private NamedColorSpace(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static NamedColorSpace resolve(int value) { switch (value) { case 1: return SRgb; case 2: return SRgbLinear; case 3: return AdobeRgb; case 4: return DisplayP3; case 5: return ProPhotoRgb; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QColorSpace::Primaries

*/ public enum Primaries implements io.qt.QtEnumerator { Custom(0), SRgb(1), AdobeRgb(2), DciP3D65(3), ProPhotoRgb(4); private Primaries(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static Primaries resolve(int value) { switch (value) { case 0: return Custom; case 1: return SRgb; case 2: return AdobeRgb; case 3: return DciP3D65; case 4: return ProPhotoRgb; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QColorSpace::TransferFunction

*/ public enum TransferFunction implements io.qt.QtEnumerator { Custom(0), Linear(1), Gamma(2), SRgb(3), ProPhotoRgb(4); private TransferFunction(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static TransferFunction resolve(int value) { switch (value) { case 0: return Custom; case 1: return Linear; case 2: return Gamma; case 3: return SRgb; case 4: return ProPhotoRgb; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QColorSpace::QColorSpace()

*/ public QColorSpace(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QColorSpace instance); /** *

See QColorSpace::QColorSpace(QColorSpace::NamedColorSpace)

*/ public QColorSpace(io.qt.gui.QColorSpace.NamedColorSpace namedColorSpace){ super((QPrivateConstructor)null); initialize_native(this, namedColorSpace); } private native static void initialize_native(QColorSpace instance, io.qt.gui.QColorSpace.NamedColorSpace namedColorSpace); /** *

Overloaded constructor for {@link #QColorSpace(io.qt.gui.QColorSpace.Primaries, io.qt.gui.QColorSpace.TransferFunction, float)} * with gamma = 0.0f.

*/ public QColorSpace(io.qt.gui.QColorSpace.Primaries primaries, io.qt.gui.QColorSpace.TransferFunction transferFunction) { this(primaries, transferFunction, (float)0.0f); } /** *

See QColorSpace::QColorSpace(QColorSpace::Primaries,QColorSpace::TransferFunction,float)

*/ public QColorSpace(io.qt.gui.QColorSpace.Primaries primaries, io.qt.gui.QColorSpace.TransferFunction transferFunction, float gamma){ super((QPrivateConstructor)null); initialize_native(this, primaries, transferFunction, gamma); } private native static void initialize_native(QColorSpace instance, io.qt.gui.QColorSpace.Primaries primaries, io.qt.gui.QColorSpace.TransferFunction transferFunction, float gamma); /** *

See QColorSpace::QColorSpace(QColorSpace::Primaries,QList<uint16_t>)

*/ public QColorSpace(io.qt.gui.QColorSpace.Primaries primaries, java.util.Collection transferFunctionTable){ super((QPrivateConstructor)null); initialize_native(this, primaries, transferFunctionTable); } private native static void initialize_native(QColorSpace instance, io.qt.gui.QColorSpace.Primaries primaries, java.util.Collection transferFunctionTable); /** *

See QColorSpace::QColorSpace(QColorSpace::Primaries,float)

*/ public QColorSpace(io.qt.gui.QColorSpace.Primaries primaries, float gamma){ super((QPrivateConstructor)null); initialize_native(this, primaries, gamma); } private native static void initialize_native(QColorSpace instance, io.qt.gui.QColorSpace.Primaries primaries, float gamma); public QColorSpace(io.qt.gui.QColorSpace colorSpace){ super((QPrivateConstructor)null); initialize_native(this, colorSpace); } private native static void initialize_native(QColorSpace instance, io.qt.gui.QColorSpace colorSpace); /** *

Overloaded constructor for {@link #QColorSpace(io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.gui.QColorSpace.TransferFunction, float)} * with gamma = 0.0f.

*/ public QColorSpace(io.qt.core.QPointF whitePoint, io.qt.core.QPointF redPoint, io.qt.core.QPointF greenPoint, io.qt.core.QPointF bluePoint, io.qt.gui.QColorSpace.TransferFunction transferFunction) { this(whitePoint, redPoint, greenPoint, bluePoint, transferFunction, (float)0.0f); } /** *

See QColorSpace::QColorSpace(QPointF,QPointF,QPointF,QPointF,QColorSpace::TransferFunction,float)

*/ public QColorSpace(io.qt.core.QPointF whitePoint, io.qt.core.QPointF redPoint, io.qt.core.QPointF greenPoint, io.qt.core.QPointF bluePoint, io.qt.gui.QColorSpace.TransferFunction transferFunction, float gamma){ super((QPrivateConstructor)null); initialize_native(this, whitePoint, redPoint, greenPoint, bluePoint, transferFunction, gamma); } private native static void initialize_native(QColorSpace instance, io.qt.core.QPointF whitePoint, io.qt.core.QPointF redPoint, io.qt.core.QPointF greenPoint, io.qt.core.QPointF bluePoint, io.qt.gui.QColorSpace.TransferFunction transferFunction, float gamma); /** *

See QColorSpace::QColorSpace(QPointF,QPointF,QPointF,QPointF,QList<uint16_t>,QList<uint16_t>,QList<uint16_t>)

*/ public QColorSpace(io.qt.core.QPointF whitePoint, io.qt.core.QPointF redPoint, io.qt.core.QPointF greenPoint, io.qt.core.QPointF bluePoint, java.util.Collection redTransferFunctionTable, java.util.Collection greenTransferFunctionTable, java.util.Collection blueTransferFunctionTable){ super((QPrivateConstructor)null); initialize_native(this, whitePoint, redPoint, greenPoint, bluePoint, redTransferFunctionTable, greenTransferFunctionTable, blueTransferFunctionTable); } private native static void initialize_native(QColorSpace instance, io.qt.core.QPointF whitePoint, io.qt.core.QPointF redPoint, io.qt.core.QPointF greenPoint, io.qt.core.QPointF bluePoint, java.util.Collection redTransferFunctionTable, java.util.Collection greenTransferFunctionTable, java.util.Collection blueTransferFunctionTable); /** *

See QColorSpace::QColorSpace(QPointF,QPointF,QPointF,QPointF,QList<uint16_t>)

*/ public QColorSpace(io.qt.core.QPointF whitePoint, io.qt.core.QPointF redPoint, io.qt.core.QPointF greenPoint, io.qt.core.QPointF bluePoint, java.util.Collection transferFunctionTable){ super((QPrivateConstructor)null); initialize_native(this, whitePoint, redPoint, greenPoint, bluePoint, transferFunctionTable); } private native static void initialize_native(QColorSpace instance, io.qt.core.QPointF whitePoint, io.qt.core.QPointF redPoint, io.qt.core.QPointF greenPoint, io.qt.core.QPointF bluePoint, java.util.Collection transferFunctionTable); /** *

See QColorSpace::description()const

*/ @io.qt.QtUninvokable public final java.lang.String description(){ return description_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String description_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final void detach(){ detach_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void detach_native(long __this__nativeId); /** *

See QColorSpace::gamma()const

*/ @io.qt.QtUninvokable public final float gamma(){ return gamma_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native float gamma_native_constfct(long __this__nativeId); /** *

See QColorSpace::iccProfile()const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray iccProfile(){ return iccProfile_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QByteArray iccProfile_native_constfct(long __this__nativeId); /** *

See QColorSpace::isValid()const

*/ @io.qt.QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public void writeTo(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); @io.qt.QtUninvokable private final boolean operator_equal(io.qt.gui.QColorSpace colorSpace2){ return operator_equal_native_cref_QColorSpace(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(colorSpace2)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QColorSpace(long __this__nativeId, long colorSpace2); @io.qt.QtUninvokable public void readFrom(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QColorSpace::primaries()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QColorSpace.Primaries primaries(){ return io.qt.gui.QColorSpace.Primaries.resolve(primaries_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int primaries_native_constfct(long __this__nativeId); /** *

See QColorSpace::setDescription(QString)

*/ @io.qt.QtUninvokable public final void setDescription(java.lang.String description){ setDescription_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), description); } @io.qt.QtUninvokable private native void setDescription_native_cref_QString(long __this__nativeId, java.lang.String description); /** *

See QColorSpace::setPrimaries(QColorSpace::Primaries)

*/ @io.qt.QtUninvokable public final void setPrimaries(io.qt.gui.QColorSpace.Primaries primariesId){ setPrimaries_native_QColorSpace_Primaries(QtJambi_LibraryUtilities.internal.nativeId(this), primariesId.value()); } @io.qt.QtUninvokable private native void setPrimaries_native_QColorSpace_Primaries(long __this__nativeId, int primariesId); /** *

See QColorSpace::setPrimaries(QPointF,QPointF,QPointF,QPointF)

*/ @io.qt.QtUninvokable public final void setPrimaries(io.qt.core.QPointF whitePoint, io.qt.core.QPointF redPoint, io.qt.core.QPointF greenPoint, io.qt.core.QPointF bluePoint){ setPrimaries_native_cref_QPointF_cref_QPointF_cref_QPointF_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(whitePoint), QtJambi_LibraryUtilities.internal.checkedNativeId(redPoint), QtJambi_LibraryUtilities.internal.checkedNativeId(greenPoint), QtJambi_LibraryUtilities.internal.checkedNativeId(bluePoint)); } @io.qt.QtUninvokable private native void setPrimaries_native_cref_QPointF_cref_QPointF_cref_QPointF_cref_QPointF(long __this__nativeId, long whitePoint, long redPoint, long greenPoint, long bluePoint); /** *

Overloaded function for {@link #setTransferFunction(io.qt.gui.QColorSpace.TransferFunction, float)} * with gamma = 0.0f.

*/ @io.qt.QtUninvokable public final void setTransferFunction(io.qt.gui.QColorSpace.TransferFunction transferFunction) { setTransferFunction(transferFunction, (float)0.0f); } /** *

See QColorSpace::setTransferFunction(QColorSpace::TransferFunction,float)

*/ @io.qt.QtUninvokable public final void setTransferFunction(io.qt.gui.QColorSpace.TransferFunction transferFunction, float gamma){ setTransferFunction_native_QColorSpace_TransferFunction_float(QtJambi_LibraryUtilities.internal.nativeId(this), transferFunction.value(), gamma); } @io.qt.QtUninvokable private native void setTransferFunction_native_QColorSpace_TransferFunction_float(long __this__nativeId, int transferFunction, float gamma); /** *

See QColorSpace::setTransferFunction(QList<uint16_t>)

*/ @io.qt.QtUninvokable public final void setTransferFunction(java.util.Collection transferFunctionTable){ setTransferFunction_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), transferFunctionTable); } @io.qt.QtUninvokable private native void setTransferFunction_native_cref_QList(long __this__nativeId, java.util.Collection transferFunctionTable); /** *

See QColorSpace::setTransferFunctions(QList<uint16_t>,QList<uint16_t>,QList<uint16_t>)

*/ @io.qt.QtUninvokable public final void setTransferFunctions(java.util.Collection redTransferFunctionTable, java.util.Collection greenTransferFunctionTable, java.util.Collection blueTransferFunctionTable){ setTransferFunctions_native_cref_QList_cref_QList_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), redTransferFunctionTable, greenTransferFunctionTable, blueTransferFunctionTable); } @io.qt.QtUninvokable private native void setTransferFunctions_native_cref_QList_cref_QList_cref_QList(long __this__nativeId, java.util.Collection redTransferFunctionTable, java.util.Collection greenTransferFunctionTable, java.util.Collection blueTransferFunctionTable); /** *

See QColorSpace::swap(QColorSpace&)

*/ @io.qt.QtUninvokable public final void swap(io.qt.gui.QColorSpace colorSpace){ java.util.Objects.requireNonNull(colorSpace, "Argument 'colorSpace': null not expected."); swap_native_ref_QColorSpace(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(colorSpace)); } @io.qt.QtUninvokable private native void swap_native_ref_QColorSpace(long __this__nativeId, long colorSpace); /** *

See QColorSpace::transferFunction()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QColorSpace.TransferFunction transferFunction(){ return io.qt.gui.QColorSpace.TransferFunction.resolve(transferFunction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int transferFunction_native_constfct(long __this__nativeId); /** *

See QColorSpace::transformationToColorSpace(QColorSpace)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QColorTransform transformationToColorSpace(io.qt.gui.QColorSpace colorspace){ return transformationToColorSpace_native_cref_QColorSpace_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(colorspace)); } @io.qt.QtUninvokable private native io.qt.gui.QColorTransform transformationToColorSpace_native_cref_QColorSpace_constfct(long __this__nativeId, long colorspace); /** *

Overloaded function for {@link #withTransferFunction(io.qt.gui.QColorSpace.TransferFunction, float)} * with gamma = 0.0f.

*/ @io.qt.QtUninvokable public final io.qt.gui.QColorSpace withTransferFunction(io.qt.gui.QColorSpace.TransferFunction transferFunction) { return withTransferFunction(transferFunction, (float)0.0f); } /** *

See QColorSpace::withTransferFunction(QColorSpace::TransferFunction,float)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QColorSpace withTransferFunction(io.qt.gui.QColorSpace.TransferFunction transferFunction, float gamma){ return withTransferFunction_native_QColorSpace_TransferFunction_float_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), transferFunction.value(), gamma); } @io.qt.QtUninvokable private native io.qt.gui.QColorSpace withTransferFunction_native_QColorSpace_TransferFunction_float_constfct(long __this__nativeId, int transferFunction, float gamma); /** *

See QColorSpace::withTransferFunction(QList<uint16_t>)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QColorSpace withTransferFunction(java.util.Collection transferFunctionTable){ return withTransferFunction_native_cref_QList_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), transferFunctionTable); } @io.qt.QtUninvokable private native io.qt.gui.QColorSpace withTransferFunction_native_cref_QList_constfct(long __this__nativeId, java.util.Collection transferFunctionTable); /** *

See QColorSpace::withTransferFunctions(QList<uint16_t>,QList<uint16_t>,QList<uint16_t>)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QColorSpace withTransferFunctions(java.util.Collection redTransferFunctionTable, java.util.Collection greenTransferFunctionTable, java.util.Collection blueTransferFunctionTable){ return withTransferFunctions_native_cref_QList_cref_QList_cref_QList_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), redTransferFunctionTable, greenTransferFunctionTable, blueTransferFunctionTable); } @io.qt.QtUninvokable private native io.qt.gui.QColorSpace withTransferFunctions_native_cref_QList_cref_QList_cref_QList_constfct(long __this__nativeId, java.util.Collection redTransferFunctionTable, java.util.Collection greenTransferFunctionTable, java.util.Collection blueTransferFunctionTable); /** *

See QColorSpace::fromIccProfile(QByteArray)

*/ public static io.qt.gui.QColorSpace fromIccProfile(io.qt.core.QByteArray iccProfile){ return fromIccProfile_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(iccProfile)); } private native static io.qt.gui.QColorSpace fromIccProfile_native_cref_QByteArray(long iccProfile); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QColorSpace(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QColorSpace) { return operator_equal((io.qt.gui.QColorSpace) other); } return false; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @Override @io.qt.QtUninvokable public String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private static native String toString_native(long __this_nativeId); @Override public QColorSpace clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QColorSpace clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy