nn::util::Color8 Structurestruct Color8
{
u8 r;
u8 g;
u8 b;
u8 a;
};
Structure representing integer colors.
| S |
ELEMENT_MIN
|
const int | The minimum value of the color component. |
|---|---|---|---|
| S |
ELEMENT_MAX
|
const int | The maximum value of the color component. |
| S |
ALPHA_MIN
|
const int | The minimum alpha value. |
| S |
ALPHA_MAX
|
const int | The maximum alpha value. |
| S |
ALPHA_OPACITY
|
const int | The alpha value for opacity. |
| S |
ALPHA_TRANSPARENT
|
const int | The alpha value for transparency. |
| S |
BLACK
|
const u32 |
A constant for the color black. |
| S |
GRAY
|
const u32 |
A constant for the color gray. |
| S |
WHITE
|
const u32 | A constant for the color white. |
| S |
RED
|
const u32 | A constant for the color red. |
| S |
GREEN
|
const u32 | A constant for the color green. |
| S |
BLUE
|
const u32 | A constant for the color blue. |
| S |
YELLOW
|
const u32 | A constant for the color yellow. |
| S |
MAGENTA
|
const u32 | A constant for the color magenta. |
| S |
CYAN
|
const u32 | A constant for the color cyan. |
| r | u8 | The R color component. Holds a value between 0 and 255. | |
|---|---|---|---|
| g | u8 | The G color component. Holds a value between 0 and 255. | |
| b | u8 | The B color component. Holds a value between 0 and 255. | |
| a | u8 | The A color component. Holds a value between 0 and 255. |
| Constructors and Destructors | ||
|---|---|---|
Color8
|
This is the default constructor. | |
~Color8
|
Destructor. | |
| Overloaded Operators | ||
operator=
|
An assignment operator for u32 values. |
|
operator u32
|
An operator for casting to a u32 value. |
|
operator+
|
An addition operator for two colors. | |
operator-
|
A subtraction operator for two colors. | |
operator *
|
A multiplication operator for two colors. | |
operator/
|
A division operator for two colors. | |
operator++
|
The prefix increment operator. | |
operator--
|
The prefix decrement operator. | |
operator|
|
Finds the bitwise OR as a u32 value. |
|
| operator& | Finds the bitwise AND as a u32 value. |
|
operator+=
|
A compound assignment operator for adding two colors. | |
operator-=
|
A compound assignment operator for subtracting two colors. | |
operator*=
|
A compound assignment operator for multiplying two colors. | |
operator/=
|
A compound assignment operator for dividing two colors. | |
| Set/Get | ||
Set
|
Sets an RGBA value. | |
ToU32
|
Gets a color as a u32 value. |
|
SetU32
|
Sets a u32 value. |
|
CONFIDENTIAL