|
Public Member Functions |
| sfColor () |
| Default constructor.
|
| sfColor (sfUint32 ColorRGBA) |
| Construct the color from a RGBA 32 bits integer.
|
| sfColor (sfUint8 R, sfUint8 G, sfUint8 B, sfUint8 A=255) |
| Construct the color from its 4 RGBA components.
|
sfUint32 | ToRGBA () const |
| Get the RGBA representation of the color.
|
bool | operator== (const sfColor &Other) const |
| Compare two colors (for equality).
|
bool | operator!= (const sfColor &Other) const |
| Compare two colors (for difference).
|
Public Attributes |
sfUint8 | r |
| Red component.
|
sfUint8 | g |
| Green component.
|
sfUint8 | b |
| Blue component.
|
sfUint8 | a |
| Alpha (transparency) component.
|
Static Public Attributes |
static const sfColor | Black |
| Black predefined color.
|
static const sfColor | White |
| White predefined color.
|
static const sfColor | Red |
| Red predefined color.
|
static const sfColor | Green |
| Green predefined color.
|
static const sfColor | Blue |
| Blue predefined color.
|
static const sfColor | Yellow |
| Yellow predefined color.
|
static const sfColor | Magenta |
| Magenta predefined color.
|
static const sfColor | Cyan |
| Cyan predefined color.
|