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

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

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

import io.qt.*;


/**
 * 

Colors based on RGB, HSV or CMYK values

*

Java wrapper for Qt class QColor

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

Java wrapper for Qt enum QColor::NameFormat

*/ public enum NameFormat implements QtEnumerator { /** *

Representing QColor::HexRgb

*/ HexRgb(0), /** *

Representing QColor::HexArgb

*/ HexArgb(1); static { QtJambi_LibraryUtilities.initialize(); } private NameFormat(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 @NonNull NameFormat resolve(int value) { switch (value) { case 0: return HexRgb; case 1: return HexArgb; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QColor::Spec

*/ public enum Spec implements QtEnumerator { /** *

Representing QColor::Invalid

*/ Invalid(0), /** *

Representing QColor::Rgb

*/ Rgb(1), /** *

Representing QColor::Hsv

*/ Hsv(2), /** *

Representing QColor::Cmyk

*/ Cmyk(3), /** *

Representing QColor::Hsl

*/ Hsl(4), /** *

Representing QColor::ExtendedRgb

*/ ExtendedRgb(5); static { QtJambi_LibraryUtilities.initialize(); } private Spec(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 @NonNull Spec resolve(int value) { switch (value) { case 0: return Invalid; case 1: return Rgb; case 2: return Hsv; case 3: return Cmyk; case 4: return Hsl; case 5: return ExtendedRgb; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QColor::QColor()

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

See QColor::QColor(QColor)

*/ public QColor(io.qt.gui.@NonNull QColor other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QColor instance, io.qt.gui.QColor other); /** *

See QColor::QColor(QColor::Spec)

*/ public QColor(io.qt.gui.QColor.@NonNull Spec spec){ super((QPrivateConstructor)null); initialize_native(this, spec); } private native static void initialize_native(QColor instance, io.qt.gui.QColor.Spec spec); /** *

See QColor::QColor(QColor::Spec,ushort,ushort,ushort,ushort,ushort)

*/ public QColor(io.qt.gui.QColor.@NonNull Spec spec, short a1, short a2, short a3, short a4, short a5){ super((QPrivateConstructor)null); initialize_native(this, spec, a1, a2, a3, a4, a5); } private native static void initialize_native(QColor instance, io.qt.gui.QColor.Spec spec, short a1, short a2, short a3, short a4, short a5); /** *

See QColor::QColor(QRgba64)

*/ public QColor(io.qt.gui.@NonNull QRgba64 rgba64){ super((QPrivateConstructor)null); initialize_native(this, rgba64); } private native static void initialize_native(QColor instance, io.qt.gui.QRgba64 rgba64); /** *

See QColor::QColor(QString)

*/ public QColor(java.lang.@NonNull String name){ super((QPrivateConstructor)null); initialize_native(this, name); } private native static void initialize_native(QColor instance, java.lang.String name); /** *

See QColor::QColor(Qt::GlobalColor)

*/ public QColor(io.qt.core.Qt.@NonNull GlobalColor color){ super((QPrivateConstructor)null); initialize_native(this, color); } private native static void initialize_native(QColor instance, io.qt.core.Qt.GlobalColor color); /** *

See QColor::QColor(int,int,int,int)

*/ public QColor(int r, int g, int b, int a){ super((QPrivateConstructor)null); initialize_native(this, r, g, b, a); } private native static void initialize_native(QColor instance, int r, int g, int b, int a); /** *

See QColor::QColor(QRgb)

*/ public QColor(int rgb){ super((QPrivateConstructor)null); initialize_native(this, rgb); } private native static void initialize_native(QColor instance, int rgb); /** *

See QColor::alpha()const

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

See QColor::alphaF()const

*/ @QtUninvokable public final float alphaF(){ return alphaF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float alphaF_native_constfct(long __this__nativeId); /** *

See QColor::black()const

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

See QColor::blackF()const

*/ @QtUninvokable public final float blackF(){ return blackF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float blackF_native_constfct(long __this__nativeId); /** *

See QColor::blue()const

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

See QColor::blueF()const

*/ @QtUninvokable public final float blueF(){ return blueF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float blueF_native_constfct(long __this__nativeId); /** *

See QColor::convertTo(QColor::Spec)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor convertTo(io.qt.gui.QColor.@NonNull Spec colorSpec){ return convertTo_native_QColor_Spec_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), colorSpec.value()); } @QtUninvokable private native io.qt.gui.QColor convertTo_native_QColor_Spec_constfct(long __this__nativeId, int colorSpec); /** *

See QColor::cyan()const

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

See QColor::cyanF()const

*/ @QtUninvokable public final float cyanF(){ return cyanF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float cyanF_native_constfct(long __this__nativeId); /** *

See QColor::darker(int)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor darker(int f){ return darker_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), f); } @QtUninvokable private native io.qt.gui.QColor darker_native_int_constfct(long __this__nativeId, int f); /** *

See QColor::green()const

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

See QColor::greenF()const

*/ @QtUninvokable public final float greenF(){ return greenF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float greenF_native_constfct(long __this__nativeId); /** *

See QColor::hslHue()const

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

See QColor::hslHueF()const

*/ @QtUninvokable public final float hslHueF(){ return hslHueF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float hslHueF_native_constfct(long __this__nativeId); /** *

See QColor::hslSaturation()const

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

See QColor::hslSaturationF()const

*/ @QtUninvokable public final float hslSaturationF(){ return hslSaturationF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float hslSaturationF_native_constfct(long __this__nativeId); /** *

See QColor::hsvHue()const

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

See QColor::hsvHueF()const

*/ @QtUninvokable public final float hsvHueF(){ return hsvHueF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float hsvHueF_native_constfct(long __this__nativeId); /** *

See QColor::hsvSaturation()const

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

See QColor::hsvSaturationF()const

*/ @QtUninvokable public final float hsvSaturationF(){ return hsvSaturationF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float hsvSaturationF_native_constfct(long __this__nativeId); /** *

See QColor::hue()const

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

See QColor::hueF()const

*/ @QtUninvokable public final float hueF(){ return hueF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float hueF_native_constfct(long __this__nativeId); /** *

See QColor::isValid()const

*/ @QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); /** *

See QColor::lighter(int)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor lighter(int f){ return lighter_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), f); } @QtUninvokable private native io.qt.gui.QColor lighter_native_int_constfct(long __this__nativeId, int f); /** *

See QColor::lightness()const

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

See QColor::lightnessF()const

*/ @QtUninvokable public final float lightnessF(){ return lightnessF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float lightnessF_native_constfct(long __this__nativeId); /** *

See QColor::magenta()const

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

See QColor::magentaF()const

*/ @QtUninvokable public final float magentaF(){ return magentaF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float magentaF_native_constfct(long __this__nativeId); /** *

See QColor::name(QColor::NameFormat)const

*/ @QtUninvokable public final java.lang.@NonNull String name(io.qt.gui.QColor.@NonNull NameFormat format){ return name_native_QColor_NameFormat_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), format.value()); } @QtUninvokable private native java.lang.String name_native_QColor_NameFormat_constfct(long __this__nativeId, int format); /** *

See operator<<(QDataStream&,QColor)

*/ @QtUninvokable public void writeTo(io.qt.core.@StrictNonNull 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)); } @QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QColor::operator=(Qt::GlobalColor)

*/ @QtUninvokable public final void assign(io.qt.core.Qt.@NonNull GlobalColor color){ assign_native_Qt_GlobalColor(QtJambi_LibraryUtilities.internal.nativeId(this), color.value()); } @QtUninvokable private native void assign_native_Qt_GlobalColor(long __this__nativeId, int color); /** *

See QColor::operator==(QColor)const

*/ @QtUninvokable public final boolean equals(io.qt.gui.@NonNull QColor c){ return equals_native_cref_QColor_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(c)); } @QtUninvokable private native boolean equals_native_cref_QColor_constfct(long __this__nativeId, long c); /** *

See operator>>(QDataStream&,QColor&)

*/ @QtUninvokable public void readFrom(io.qt.core.@StrictNonNull 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)); } @QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QColor::red()const

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

See QColor::redF()const

*/ @QtUninvokable public final float redF(){ return redF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float redF_native_constfct(long __this__nativeId); /** *

See QColor::rgb()const

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

See QColor::rgba()const

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

See QColor::rgba64()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QRgba64 rgba64(){ return rgba64_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QRgba64 rgba64_native_constfct(long __this__nativeId); /** *

See QColor::saturation()const

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

See QColor::saturationF()const

*/ @QtUninvokable public final float saturationF(){ return saturationF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float saturationF_native_constfct(long __this__nativeId); /** *

See QColor::setAlpha(int)

*/ @QtUninvokable public final void setAlpha(int alpha){ setAlpha_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), alpha); } @QtUninvokable private native void setAlpha_native_int(long __this__nativeId, int alpha); /** *

See QColor::setAlphaF(float)

*/ @QtUninvokable public final void setAlphaF(float alpha){ setAlphaF_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), alpha); } @QtUninvokable private native void setAlphaF_native_float(long __this__nativeId, float alpha); /** *

See QColor::setBlue(int)

*/ @QtUninvokable public final void setBlue(int blue){ setBlue_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), blue); } @QtUninvokable private native void setBlue_native_int(long __this__nativeId, int blue); /** *

See QColor::setBlueF(float)

*/ @QtUninvokable public final void setBlueF(float blue){ setBlueF_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), blue); } @QtUninvokable private native void setBlueF_native_float(long __this__nativeId, float blue); /** *

See QColor::setCmyk(int,int,int,int,int)

*/ @QtUninvokable public final void setCmyk(int c, int m, int y, int k, int a){ setCmyk_native_int_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), c, m, y, k, a); } @QtUninvokable private native void setCmyk_native_int_int_int_int_int(long __this__nativeId, int c, int m, int y, int k, int a); /** *

See QColor::setCmykF(float,float,float,float,float)

*/ @QtUninvokable public final void setCmykF(float c, float m, float y, float k, float a){ setCmykF_native_float_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), c, m, y, k, a); } @QtUninvokable private native void setCmykF_native_float_float_float_float_float(long __this__nativeId, float c, float m, float y, float k, float a); /** *

See QColor::setGreen(int)

*/ @QtUninvokable public final void setGreen(int green){ setGreen_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), green); } @QtUninvokable private native void setGreen_native_int(long __this__nativeId, int green); /** *

See QColor::setGreenF(float)

*/ @QtUninvokable public final void setGreenF(float green){ setGreenF_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), green); } @QtUninvokable private native void setGreenF_native_float(long __this__nativeId, float green); /** *

See QColor::setHsl(int,int,int,int)

*/ @QtUninvokable public final void setHsl(int h, int s, int l, int a){ setHsl_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), h, s, l, a); } @QtUninvokable private native void setHsl_native_int_int_int_int(long __this__nativeId, int h, int s, int l, int a); /** *

See QColor::setHslF(float,float,float,float)

*/ @QtUninvokable public final void setHslF(float h, float s, float l, float a){ setHslF_native_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), h, s, l, a); } @QtUninvokable private native void setHslF_native_float_float_float_float(long __this__nativeId, float h, float s, float l, float a); /** *

See QColor::setHsv(int,int,int,int)

*/ @QtUninvokable public final void setHsv(int h, int s, int v, int a){ setHsv_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), h, s, v, a); } @QtUninvokable private native void setHsv_native_int_int_int_int(long __this__nativeId, int h, int s, int v, int a); /** *

See QColor::setHsvF(float,float,float,float)

*/ @QtUninvokable public final void setHsvF(float h, float s, float v, float a){ setHsvF_native_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), h, s, v, a); } @QtUninvokable private native void setHsvF_native_float_float_float_float(long __this__nativeId, float h, float s, float v, float a); /** *

See QColor::setNamedColor(QString)

*/ @QtUninvokable public final void setNamedColor(java.lang.@NonNull String name){ setNamedColor_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name); } @QtUninvokable private native void setNamedColor_native_cref_QString(long __this__nativeId, java.lang.String name); /** *

See QColor::setRed(int)

*/ @QtUninvokable public final void setRed(int red){ setRed_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), red); } @QtUninvokable private native void setRed_native_int(long __this__nativeId, int red); /** *

See QColor::setRedF(float)

*/ @QtUninvokable public final void setRedF(float red){ setRedF_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), red); } @QtUninvokable private native void setRedF_native_float(long __this__nativeId, float red); /** *

See QColor::setRgb(int,int,int,int)

*/ @QtUninvokable public final void setRgb(int r, int g, int b, int a){ setRgb_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), r, g, b, a); } @QtUninvokable private native void setRgb_native_int_int_int_int(long __this__nativeId, int r, int g, int b, int a); /** *

See QColor::setRgb(QRgb)

*/ @QtUninvokable public final void setRgb(int rgb){ setRgb_native_unsigned_int(QtJambi_LibraryUtilities.internal.nativeId(this), rgb); } @QtUninvokable private native void setRgb_native_unsigned_int(long __this__nativeId, int rgb); /** *

See QColor::setRgbF(float,float,float,float)

*/ @QtUninvokable public final void setRgbF(float r, float g, float b, float a){ setRgbF_native_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), r, g, b, a); } @QtUninvokable private native void setRgbF_native_float_float_float_float(long __this__nativeId, float r, float g, float b, float a); /** *

See QColor::setRgba(QRgb)

*/ @QtUninvokable public final void setRgba(int rgba){ setRgba_native_unsigned_int(QtJambi_LibraryUtilities.internal.nativeId(this), rgba); } @QtUninvokable private native void setRgba_native_unsigned_int(long __this__nativeId, int rgba); /** *

See QColor::setRgba64(QRgba64)

*/ @QtUninvokable public final void setRgba64(io.qt.gui.@NonNull QRgba64 rgba){ setRgba64_native_QRgba64(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rgba)); } @QtUninvokable private native void setRgba64_native_QRgba64(long __this__nativeId, long rgba); /** *

See QColor::spec()const

*/ @QtUninvokable public final io.qt.gui.QColor.@NonNull Spec spec(){ return io.qt.gui.QColor.Spec.resolve(spec_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int spec_native_constfct(long __this__nativeId); /** *

See QColor::toCmyk()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor toCmyk(){ return toCmyk_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QColor toCmyk_native_constfct(long __this__nativeId); /** *

See QColor::toExtendedRgb()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor toExtendedRgb(){ return toExtendedRgb_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QColor toExtendedRgb_native_constfct(long __this__nativeId); /** *

See QColor::toHsl()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor toHsl(){ return toHsl_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QColor toHsl_native_constfct(long __this__nativeId); /** *

See QColor::toHsv()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor toHsv(){ return toHsv_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QColor toHsv_native_constfct(long __this__nativeId); /** *

See QColor::toRgb()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor toRgb(){ return toRgb_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QColor toRgb_native_constfct(long __this__nativeId); /** *

See QColor::value()const

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

See QColor::valueF()const

*/ @QtUninvokable public final float valueF(){ return valueF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float valueF_native_constfct(long __this__nativeId); /** *

See QColor::yellow()const

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

See QColor::yellowF()const

*/ @QtUninvokable public final float yellowF(){ return yellowF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float yellowF_native_constfct(long __this__nativeId); /** *

See QColor::colorNames()

*/ public native static io.qt.core.@NonNull QStringList colorNames(); /** *

See QColor::fromCmyk(int,int,int,int,int)

*/ public native static io.qt.gui.@NonNull QColor fromCmyk(int c, int m, int y, int k, int a); /** *

See QColor::fromCmykF(float,float,float,float,float)

*/ public native static io.qt.gui.@NonNull QColor fromCmykF(float c, float m, float y, float k, float a); /** *

See QColor::fromHsl(int,int,int,int)

*/ public native static io.qt.gui.@NonNull QColor fromHsl(int h, int s, int l, int a); /** *

See QColor::fromHslF(float,float,float,float)

*/ public native static io.qt.gui.@NonNull QColor fromHslF(float h, float s, float l, float a); /** *

See QColor::fromHsv(int,int,int,int)

*/ public native static io.qt.gui.@NonNull QColor fromHsv(int h, int s, int v, int a); /** *

See QColor::fromHsvF(float,float,float,float)

*/ public native static io.qt.gui.@NonNull QColor fromHsvF(float h, float s, float v, float a); /** *

See QColor::fromRgb(int,int,int,int)

*/ public native static io.qt.gui.@NonNull QColor fromRgb(int r, int g, int b, int a); /** *

See QColor::fromRgb(QRgb)

*/ public native static io.qt.gui.@NonNull QColor fromRgb(int rgb); /** *

See QColor::fromRgbF(float,float,float,float)

*/ public native static io.qt.gui.@NonNull QColor fromRgbF(float r, float g, float b, float a); /** *

See QColor::fromRgba(QRgb)

*/ public native static io.qt.gui.@NonNull QColor fromRgba(int rgba); /** *

See QColor::fromRgba64(QRgba64)

*/ public static io.qt.gui.@NonNull QColor fromRgba64(io.qt.gui.@NonNull QRgba64 rgba){ return fromRgba64_native_QRgba64(QtJambi_LibraryUtilities.internal.checkedNativeId(rgba)); } private native static io.qt.gui.QColor fromRgba64_native_QRgba64(long rgba); /** *

See QColor::fromRgba64(ushort,ushort,ushort,ushort)

*/ public native static io.qt.gui.@NonNull QColor fromRgba64(short r, short g, short b, short a); /** *

See QColor::fromString(QAnyStringView)

*/ public native static io.qt.gui.@NonNull QColor fromString(java.lang.@NonNull String name); /** *

See QColor::isValidColor(QString)

*/ public native static boolean isValidColor(java.lang.@NonNull String name); /** *

See QColor::isValidColorName(QAnyStringView)

*/ public native static boolean isValidColorName(java.lang.@NonNull String arg__1); /** *

See qIsGray(QRgb)

*/ public native static boolean qIsGray(int rgb); /** *

See qPremultiply(QRgb)

*/ public native static int qPremultiply(int x); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QColor(QPrivateConstructor p) { super(p); } /** *

See QColor::operator==(QColor)const

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QColor) { return equals((io.qt.gui.QColor) other); } return false; } /** * Returns the objects's hash code computed by qHash(QColor). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

See operator<<(QDebug,QColor)

*/ @QtUninvokable @Override public @NonNull String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private static native String toString_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QColor::QColor(QColor)

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

Overloaded constructor for {@link #QColor(io.qt.gui.QColor.Spec, short, short, short, short, short)} * with a5 = 0.

*/ public QColor(io.qt.gui.QColor.@NonNull Spec spec, short a1, short a2, short a3, short a4) { this(spec, a1, a2, a3, a4, (short)0); } /** *

Overloaded constructor for {@link #QColor(int, int, int, int)} * with a = 255.

*/ public QColor(int r, int g, int b) { this(r, g, b, (int)255); } /** *

Overloaded function for {@link #darker(int)} * with f = 200.

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor darker() { return darker((int)200); } /** *

Overloaded function for {@link #lighter(int)} * with f = 150.

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor lighter() { return lighter((int)150); } /** *

Overloaded function for {@link #name(io.qt.gui.QColor.NameFormat)} * with format = io.qt.gui.QColor.NameFormat.HexRgb.

*/ @QtUninvokable public final java.lang.@NonNull String name() { return name(io.qt.gui.QColor.NameFormat.HexRgb); } /** *

Overloaded function for {@link #equals(io.qt.gui.QColor)}.

*/ @QtUninvokable public final boolean equals(io.qt.core.Qt.@NonNull GlobalColor c) { return equals(new io.qt.gui.QColor(c)); } /** *

Overloaded function for {@link #equals(io.qt.gui.QColor)}.

*/ @QtUninvokable public final boolean equals(io.qt.gui.@NonNull QRgba64 c) { return equals(new io.qt.gui.QColor(c)); } /** *

Overloaded function for {@link #equals(io.qt.gui.QColor)}.

*/ @QtUninvokable public final boolean equals(java.lang.@NonNull String c) { return equals(new io.qt.gui.QColor(c)); } /** *

Overloaded function for {@link #setCmyk(int, int, int, int, int)} * with a = 255.

*/ @QtUninvokable public final void setCmyk(int c, int m, int y, int k) { setCmyk(c, m, y, k, (int)255); } /** *

Overloaded function for {@link #setCmykF(float, float, float, float, float)} * with a = 1.0.

*/ @QtUninvokable public final void setCmykF(float c, float m, float y, float k) { setCmykF(c, m, y, k, (float)1.0); } /** *

Overloaded function for {@link #setHsl(int, int, int, int)} * with a = 255.

*/ @QtUninvokable public final void setHsl(int h, int s, int l) { setHsl(h, s, l, (int)255); } /** *

Overloaded function for {@link #setHslF(float, float, float, float)} * with a = 1.0.

*/ @QtUninvokable public final void setHslF(float h, float s, float l) { setHslF(h, s, l, (float)1.0); } /** *

Overloaded function for {@link #setHsv(int, int, int, int)} * with a = 255.

*/ @QtUninvokable public final void setHsv(int h, int s, int v) { setHsv(h, s, v, (int)255); } /** *

Overloaded function for {@link #setHsvF(float, float, float, float)} * with a = 1.0.

*/ @QtUninvokable public final void setHsvF(float h, float s, float v) { setHsvF(h, s, v, (float)1.0); } /** *

Overloaded function for {@link #setRgb(int, int, int, int)} * with a = 255.

*/ @QtUninvokable public final void setRgb(int r, int g, int b) { setRgb(r, g, b, (int)255); } /** *

Overloaded function for {@link #setRgbF(float, float, float, float)} * with a = 1.0.

*/ @QtUninvokable public final void setRgbF(float r, float g, float b) { setRgbF(r, g, b, (float)1.0); } /** *

Overloaded function for {@link #fromCmyk(int, int, int, int, int)} * with a = 255.

*/ public static io.qt.gui.@NonNull QColor fromCmyk(int c, int m, int y, int k) { return fromCmyk(c, m, y, k, (int)255); } /** *

Overloaded function for {@link #fromCmykF(float, float, float, float, float)} * with a = 1.0.

*/ public static io.qt.gui.@NonNull QColor fromCmykF(float c, float m, float y, float k) { return fromCmykF(c, m, y, k, (float)1.0); } /** *

Overloaded function for {@link #fromHsl(int, int, int, int)} * with a = 255.

*/ public static io.qt.gui.@NonNull QColor fromHsl(int h, int s, int l) { return fromHsl(h, s, l, (int)255); } /** *

Overloaded function for {@link #fromHslF(float, float, float, float)} * with a = 1.0.

*/ public static io.qt.gui.@NonNull QColor fromHslF(float h, float s, float l) { return fromHslF(h, s, l, (float)1.0); } /** *

Overloaded function for {@link #fromHsv(int, int, int, int)} * with a = 255.

*/ public static io.qt.gui.@NonNull QColor fromHsv(int h, int s, int v) { return fromHsv(h, s, v, (int)255); } /** *

Overloaded function for {@link #fromHsvF(float, float, float, float)} * with a = 1.0.

*/ public static io.qt.gui.@NonNull QColor fromHsvF(float h, float s, float v) { return fromHsvF(h, s, v, (float)1.0); } /** *

Overloaded function for {@link #fromRgb(int, int, int, int)} * with a = 255.

*/ public static io.qt.gui.@NonNull QColor fromRgb(int r, int g, int b) { return fromRgb(r, g, b, (int)255); } /** *

Overloaded function for {@link #fromRgbF(float, float, float, float)} * with a = 1.0.

*/ public static io.qt.gui.@NonNull QColor fromRgbF(float r, float g, float b) { return fromRgbF(r, g, b, (float)1.0); } /** *

Overloaded function for {@link #fromRgba64(short, short, short, short)} * with a = 0xffff.

*/ public static io.qt.gui.@NonNull QColor fromRgba64(short r, short g, short b) { return fromRgba64(r, g, b, (short)0xffff); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy