The byte order of the components is always in native endian format. So on a little endian CPU, the ColorARGB class stores the four components in the order B, G, R, A in the 32-bit word.
|
Public Member Functions |
| | Color (wxUint32 color=0xffffffff) |
| | Constructs a color from the given dword value.
|
| | Color (wxByte byRed, wxByte byGreen, wxByte byBlue, wxByte byAlpha=0xff) |
| | Constructs a color from the 4 given bytes.
|
| | Color (const ColorReal &color) |
| | Constructs a color from the given ColorReal.
|
| void | Set (wxByte byRed, wxByte byGreen, wxByte byBlue, wxByte byAlpha=0xff) |
| | Sets this color using the 4 given bytes.
|
| void | SetAlpha (wxByte byAlpha) |
| | Sets the alpha component of this color.
|
| void | SetRed (wxByte byRed) |
| | Sets the red component of this color.
|
| void | SetGreen (wxByte byGreen) |
| | Sets the green component of this color.
|
| void | SetBlue (wxByte byBlue) |
| | Sets the blue component of this color.
|
| wxByte | GetAlpha () const |
| | Returns the alpha component of this color.
|
| wxByte | GetRed () const |
| | Returns the red component of this color.
|
| wxByte | GetGreen () const |
| | Returns the green component of this color.
|
| wxByte | GetBlue () const |
| | Returns the blue component of this color.
|
| | operator wxUint32 () const |
| | Cast operator to wxUint32.
|
| | operator wxUint32 * () |
| | Cast operator to a pointer to wxUint32.
|
| | operator const wxUint32 * () const |
| | Cast operator to a const-pointer to wxUint32.
|
| Color & | operator= (const ColorReal &color) |
| | Assignment operator for a ColorReal.
|
| bool | operator== (const Color< RedShift, GreenShift, BlueShift, AlphaShift > &color) const |
| | Equality operator.
|
| bool | operator!= (const Color< RedShift, GreenShift, BlueShift, AlphaShift > &color) const |
| | Inequality operator.
|
Public Attributes |
|
wxUint32 | m_color |
| | The color as 32-bit value.
|