Manages colors.
More...
#include <CSMAPI_types.h>
|
| unsigned long | to_rgb () |
| | Convert this color to RGBA. More...
|
| |
| void | from_rgb (unsigned long color) |
| | Convert from RGBA to fill r, g, b and a. More...
|
| |
|
bool | operator== (GUI_COLOR other) |
| |
|
bool | operator!= (GUI_COLOR other) |
| |
|
| GUI_COLOR (int _r, int _g, int _b, int _a=255) |
| |
|
| GUI_COLOR (unsigned long color) |
| |
|
|
unsigned char | r |
| | Red value.
|
| |
|
unsigned char | g |
| | Green value.
|
| |
|
unsigned char | b |
| | Blue value.
|
| |
|
unsigned char | a |
| | Alpha value.
|
| |
◆ from_rgb()
| void GUI_COLOR::from_rgb |
( |
unsigned long |
color | ) |
|
|
inline |
Convert from RGBA to fill r, g, b and a.
- Parameters
-
◆ to_rgb()
| unsigned long GUI_COLOR::to_rgb |
( |
| ) |
|
|
inline |
Convert this color to RGBA.
- Returns
- Returns the color.
The documentation for this struct was generated from the following file: