Color

Color value representation

Constructors

this
this(ubyte alpha, Color c)

Construct a new color.

this
this(ubyte red, ubyte green, ubyte blue)
Undocumented in source.
this
this(ubyte alpha, ubyte red, ubyte green, ubyte blue)
Undocumented in source.

Members

Aliases

blend
deprecated alias blend = blendColor
Undocumented in source.

Functions

Dthisptr
Color* Dthisptr(Color* t)
Undocumented in source. Be warned that the author may not have intended to support it.
Dthisptr
Color* Dthisptr(Color t)
Undocumented in source. Be warned that the author may not have intended to support it.
Dthisval
Color Dthisval(Color* t)
Undocumented in source. Be warned that the author may not have intended to support it.
Dthisval
Color Dthisval(Color t)
Undocumented in source. Be warned that the author may not have intended to support it.
blendColor
Color blendColor(Color wc)

Blend colors; alpha channels are ignored.

createBrush
HBRUSH createBrush()
Undocumented in source. Be warned that the author may not have intended to support it.
solidColor
Color solidColor(Color backColor)

Alpha blend this color with a background color to return a solid color (100% opaque).

toArgb
COLORREF toArgb()

Return the numeric color value.

toRgb
COLORREF toRgb()

Return the numeric red, green and blue color value.

Properties

_systemColorIndex
int _systemColorIndex [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
a
ubyte a [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
b
ubyte b [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
Color empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
g
ubyte g [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
r
ubyte r [@property getter]

Red, green, blue and alpha channel color values.

transparent
Color transparent [@property getter]

Return a completely transparent color value.

Static functions

fromArgb
Color fromArgb(ubyte alpha, ubyte red, ubyte green, ubyte blue)
Undocumented in source. Be warned that the author may not have intended to support it.
fromRgb
Color fromRgb(COLORREF rgb)
Undocumented in source. Be warned that the author may not have intended to support it.
fromRgb
Color fromRgb(ubyte alpha, COLORREF rgb)
Undocumented in source. Be warned that the author may not have intended to support it.
opCall
deprecated Color opCall(COLORREF argb)
Undocumented in source. Be warned that the author may not have intended to support it.
systemColor
Color systemColor(int colorIndex)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

INVAILD_SYSTEM_COLOR_INDEX
enum ubyte INVAILD_SYSTEM_COLOR_INDEX;
Undocumented in source.

Meta