- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Colors based on RGB, HSV or CMYK values
Java wrapper for Qt class QColor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQColor::NameFormat
static enum
Java wrapper for Qt enumQColor::Spec
-
Constructor Summary
ConstructorDescriptionQColor()
SeeQColor::
QColor() QColor
(int rgb) QColor
(int r, int g, int b) Overloaded constructor forQColor(int, int, int, int)
witha = 255
.QColor
(int r, int g, int b, int a) QColor
(Qt.GlobalColor color) QColor
(QColor.Spec spec) SeeQColor::
QColor(QColor::Spec) QColor
(QColor.Spec spec, short a1, short a2, short a3, short a4) Overloaded constructor forQColor(io.qt.gui.QColor.Spec, short, short, short, short, short)
witha5 = 0
.QColor
(QColor.Spec spec, short a1, short a2, short a3, short a4, short a5) SeeQColor::
QColor(QColor::Spec, ushort, ushort, ushort, ushort, ushort) -
Method Summary
Modifier and TypeMethodDescriptionfinal int
alpha()
final float
alphaF()
final void
assign
(Qt.GlobalColor color) final int
black()
final float
blackF()
final int
blue()
final float
blueF()
clone()
Creates and returns a copy of this object.static QStringList
final QColor
convertTo
(QColor.Spec colorSpec) final int
cyan()
final float
cyanF()
final QColor
darker()
Overloaded function fordarker(int)
withf = 200
.final QColor
darker
(int f) final boolean
Overloaded function forequals(io.qt.gui.QColor)
.final boolean
final boolean
Overloaded function forequals(io.qt.gui.QColor)
.final boolean
Overloaded function forequals(io.qt.gui.QColor)
.boolean
static QColor
fromCmyk
(int c, int m, int y, int k) Overloaded function forfromCmyk(int, int, int, int, int)
witha = 255
.static QColor
fromCmyk
(int c, int m, int y, int k, int a) static QColor
fromCmykF
(float c, float m, float y, float k) Overloaded function forfromCmykF(float, float, float, float, float)
witha = 1.0
.static QColor
fromCmykF
(float c, float m, float y, float k, float a) static QColor
fromHsl
(int h, int s, int l) Overloaded function forfromHsl(int, int, int, int)
witha = 255
.static QColor
fromHsl
(int h, int s, int l, int a) static QColor
fromHslF
(float h, float s, float l) Overloaded function forfromHslF(float, float, float, float)
witha = 1.0
.static QColor
fromHslF
(float h, float s, float l, float a) static QColor
fromHsv
(int h, int s, int v) Overloaded function forfromHsv(int, int, int, int)
witha = 255
.static QColor
fromHsv
(int h, int s, int v, int a) static QColor
fromHsvF
(float h, float s, float v) Overloaded function forfromHsvF(float, float, float, float)
witha = 1.0
.static QColor
fromHsvF
(float h, float s, float v, float a) static QColor
fromRgb
(int rgb) static QColor
fromRgb
(int r, int g, int b) Overloaded function forfromRgb(int, int, int, int)
witha = 255
.static QColor
fromRgb
(int r, int g, int b, int a) static QColor
fromRgba
(int rgba) static QColor
fromRgba64
(short r, short g, short b) Overloaded function forfromRgba64(short, short, short, short)
witha = 0xffff
.static QColor
fromRgba64
(short r, short g, short b, short a) static QColor
fromRgba64
(QRgba64 rgba) static QColor
fromRgbF
(float r, float g, float b) Overloaded function forfromRgbF(float, float, float, float)
witha = 1.0
.static QColor
fromRgbF
(float r, float g, float b, float a) static QColor
fromString
(String name) final int
green()
final float
greenF()
int
hashCode()
Returns the objects's hash code computed byqHash(QColor)
.final int
hslHue()
final float
hslHueF()
final int
final float
final int
hsvHue()
final float
hsvHueF()
final int
final float
final int
hue()
final float
hueF()
final boolean
isValid()
static boolean
isValidColor
(String name) SeeQColor::
isValidColor(QString) static boolean
isValidColorName
(String arg__1) final QColor
lighter()
Overloaded function forlighter(int)
withf = 150
.final QColor
lighter
(int f) final int
final float
final int
magenta()
final float
magentaF()
final String
name()
Overloaded function forname(io.qt.gui.QColor.NameFormat)
withformat = io.qt.gui.QColor.NameFormat.HexRgb
.final String
name
(QColor.NameFormat format) void
readFrom
(QDataStream arg__1) final int
red()
final float
redF()
final int
rgb()
final int
rgba()
final QRgba64
rgba64()
final int
final float
final void
setAlpha
(int alpha) final void
setAlphaF
(float alpha) final void
setBlue
(int blue) final void
setBlueF
(float blue) final void
setCmyk
(int c, int m, int y, int k) Overloaded function forsetCmyk(int, int, int, int, int)
witha = 255
.final void
setCmyk
(int c, int m, int y, int k, int a) final void
setCmykF
(float c, float m, float y, float k) Overloaded function forsetCmykF(float, float, float, float, float)
witha = 1.0
.final void
setCmykF
(float c, float m, float y, float k, float a) final void
setGreen
(int green) final void
setGreenF
(float green) final void
setHsl
(int h, int s, int l) Overloaded function forsetHsl(int, int, int, int)
witha = 255
.final void
setHsl
(int h, int s, int l, int a) final void
setHslF
(float h, float s, float l) Overloaded function forsetHslF(float, float, float, float)
witha = 1.0
.final void
setHslF
(float h, float s, float l, float a) final void
setHsv
(int h, int s, int v) Overloaded function forsetHsv(int, int, int, int)
witha = 255
.final void
setHsv
(int h, int s, int v, int a) final void
setHsvF
(float h, float s, float v) Overloaded function forsetHsvF(float, float, float, float)
witha = 1.0
.final void
setHsvF
(float h, float s, float v, float a) final void
setNamedColor
(String name) SeeQColor::
setNamedColor(QString) final void
setRed
(int red) final void
setRedF
(float red) final void
setRgb
(int rgb) final void
setRgb
(int r, int g, int b) Overloaded function forsetRgb(int, int, int, int)
witha = 255
.final void
setRgb
(int r, int g, int b, int a) final void
setRgba
(int rgba) final void
final void
setRgbF
(float r, float g, float b) Overloaded function forsetRgbF(float, float, float, float)
witha = 1.0
.final void
setRgbF
(float r, float g, float b, float a) final QColor.Spec
spec()
final QColor
toCmyk()
final QColor
final QColor
toHsl()
final QColor
toHsv()
final QColor
toRgb()
toString()
Seeoperator<<(QDebug,
QColor) final int
value()
final float
valueF()
void
writeTo
(QDataStream arg__1) final int
yellow()
final float
yellowF()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QColor
public QColor()See
QColor::
QColor() -
QColor
See
QColor::
QColor(QColor::Spec) -
QColor
See
QColor::
QColor(QColor::Spec, ushort, ushort, ushort, ushort, ushort) -
QColor
-
QColor
-
QColor
-
QColor
public QColor(int r, int g, int b, int a) -
QColor
public QColor(int rgb) -
QColor
Overloaded constructor for
QColor(io.qt.gui.QColor.Spec, short, short, short, short, short)
witha5 = 0
. -
QColor
public QColor(int r, int g, int b) Overloaded constructor for
QColor(int, int, int, int)
witha = 255
.
-
-
Method Details
-
alpha
-
alphaF
-
black
-
blackF
-
blue
-
blueF
-
convertTo
-
cyan
-
cyanF
-
darker
-
green
-
greenF
-
hslHue
-
hslHueF
-
hslSaturation
-
hslSaturationF
-
hsvHue
-
hsvHueF
-
hsvSaturation
-
hsvSaturationF
-
hue
-
hueF
-
isValid
-
lighter
-
lightness
-
lightnessF
-
magenta
-
magentaF
-
name
-
writeTo
-
assign
-
equals
-
readFrom
-
red
-
redF
-
rgb
-
rgba
-
rgba64
-
saturation
-
saturationF
-
setAlpha
-
setAlphaF
-
setBlue
-
setBlueF
-
setCmyk
-
setCmykF
-
setGreen
-
setGreenF
-
setHsl
-
setHslF
-
setHsv
-
setHsvF
-
setNamedColor
See
QColor::
setNamedColor(QString) -
setRed
-
setRedF
-
setRgb
-
setRgb
-
setRgbF
-
setRgba
-
setRgba64
-
spec
-
toCmyk
-
toExtendedRgb
-
toHsl
-
toHsv
-
toRgb
-
value
-
valueF
-
yellow
-
yellowF
-
colorNames
-
fromCmyk
-
fromCmykF
-
fromHsl
-
fromHslF
-
fromHsv
-
fromHsvF
-
fromRgb
-
fromRgb
-
fromRgbF
-
fromRgba
-
fromRgba64
-
fromRgba64
-
fromString
-
isValidColor
See
QColor::
isValidColor(QString) -
isValidColorName
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QColor)
. -
toString
See
operator<<(QDebug,
QColor) -
clone
Creates and returns a copy of this object.
-
darker
Overloaded function for
darker(int)
withf = 200
. -
lighter
Overloaded function for
lighter(int)
withf = 150
. -
name
Overloaded function for
name(io.qt.gui.QColor.NameFormat)
withformat = io.qt.gui.QColor.NameFormat.HexRgb
. -
equals
Overloaded function for
equals(io.qt.gui.QColor)
. -
equals
Overloaded function for
equals(io.qt.gui.QColor)
. -
equals
Overloaded function for
equals(io.qt.gui.QColor)
. -
setCmyk
Overloaded function for
setCmyk(int, int, int, int, int)
witha = 255
. -
setCmykF
Overloaded function for
setCmykF(float, float, float, float, float)
witha = 1.0
. -
setHsl
Overloaded function for
setHsl(int, int, int, int)
witha = 255
. -
setHslF
Overloaded function for
setHslF(float, float, float, float)
witha = 1.0
. -
setHsv
Overloaded function for
setHsv(int, int, int, int)
witha = 255
. -
setHsvF
Overloaded function for
setHsvF(float, float, float, float)
witha = 1.0
. -
setRgb
Overloaded function for
setRgb(int, int, int, int)
witha = 255
. -
setRgbF
Overloaded function for
setRgbF(float, float, float, float)
witha = 1.0
. -
fromCmyk
Overloaded function for
fromCmyk(int, int, int, int, int)
witha = 255
. -
fromCmykF
Overloaded function for
fromCmykF(float, float, float, float, float)
witha = 1.0
. -
fromHsl
Overloaded function for
fromHsl(int, int, int, int)
witha = 255
. -
fromHslF
Overloaded function for
fromHslF(float, float, float, float)
witha = 1.0
. -
fromHsv
Overloaded function for
fromHsv(int, int, int, int)
witha = 255
. -
fromHsvF
Overloaded function for
fromHsvF(float, float, float, float)
witha = 1.0
. -
fromRgb
Overloaded function for
fromRgb(int, int, int, int)
witha = 255
. -
fromRgbF
Overloaded function for
fromRgbF(float, float, float, float)
witha = 1.0
. -
fromRgba64
Overloaded function for
fromRgba64(short, short, short, short)
witha = 0xffff
.
-