NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::ut::Color Struct Reference
Inheritance diagram for nw4r::ut::Color:
[legend]

Description

Definition at line 10 of file ut_Color.h.

Public Member Functions

 Color (ulong color)
 
 Color (int red, int green, int blue, int alpha)
 
 Color (const GXColor &rColor)
 
void Set (int red, int green, int blue, int alpha)
 
Coloroperator= (ulong color)
 
Coloroperator= (const GXColor &rColor)
 
Color operator| (ulong color) const
 
Color operator& (ulong color) const
 
ulong & Toulongref ()
 
const ulong & Toulongref () const
 
ulong Toulong () const
 
 operator ulong () const
 

Static Public Attributes

static const ulong RED = 0xFF0000FF
 
static const ulong GREEN = 0x00FF00FF
 
static const ulong BLUE = 0x0000FFFF
 
static const ulong CYAN = 0x00FFFFFF
 
static const ulong MAGENTA = 0xFF00FFFF
 
static const ulong YELLOW = 0xFFFF00FF
 
static const ulong BLACK = 0x000000FF
 
static const ulong GRAY = 0x808080FF
 
static const ulong WHITE = 0xFFFFFFFF
 

Additional Inherited Members

- Public Attributes inherited from _GXColor
u8 r
 
u8 g
 
u8 b
 
u8 a
 

Constructor & Destructor Documentation

◆ Color() [1/4]

nw4r::ut::Color::Color ( )
inline

Definition at line 12 of file ut_Color.h.

◆ Color() [2/4]

nw4r::ut::Color::Color ( ulong color)
inline

Definition at line 15 of file ut_Color.h.

◆ Color() [3/4]

nw4r::ut::Color::Color ( int red,
int green,
int blue,
int alpha )
inline

Definition at line 18 of file ut_Color.h.

◆ Color() [4/4]

nw4r::ut::Color::Color ( const GXColor & rColor)
inline

Definition at line 21 of file ut_Color.h.

◆ ~Color()

nw4r::ut::Color::~Color ( )
inline

Definition at line 25 of file ut_Color.h.

Member Function Documentation

◆ Set()

void nw4r::ut::Color::Set ( int red,
int green,
int blue,
int alpha )
inline

Definition at line 27 of file ut_Color.h.

◆ operator=() [1/2]

Color & nw4r::ut::Color::operator= ( ulong color)
inline

Definition at line 34 of file ut_Color.h.

◆ operator=() [2/2]

Color & nw4r::ut::Color::operator= ( const GXColor & rColor)
inline

Definition at line 38 of file ut_Color.h.

◆ operator|()

Color nw4r::ut::Color::operator| ( ulong color) const
inline

Definition at line 43 of file ut_Color.h.

◆ operator&()

Color nw4r::ut::Color::operator& ( ulong color) const
inline

Definition at line 46 of file ut_Color.h.

◆ Toulongref() [1/2]

ulong & nw4r::ut::Color::Toulongref ( )
inline

Definition at line 50 of file ut_Color.h.

◆ Toulongref() [2/2]

const ulong & nw4r::ut::Color::Toulongref ( ) const
inline

Definition at line 53 of file ut_Color.h.

◆ Toulong()

ulong nw4r::ut::Color::Toulong ( ) const
inline

Definition at line 57 of file ut_Color.h.

◆ operator ulong()

nw4r::ut::Color::operator ulong ( ) const
inline

Definition at line 61 of file ut_Color.h.

Member Data Documentation

◆ RED

const ulong nw4r::ut::Color::RED = 0xFF0000FF
static

Definition at line 66 of file ut_Color.h.

◆ GREEN

const ulong nw4r::ut::Color::GREEN = 0x00FF00FF
static

Definition at line 67 of file ut_Color.h.

◆ BLUE

const ulong nw4r::ut::Color::BLUE = 0x0000FFFF
static

Definition at line 68 of file ut_Color.h.

◆ CYAN

const ulong nw4r::ut::Color::CYAN = 0x00FFFFFF
static

Definition at line 70 of file ut_Color.h.

◆ MAGENTA

const ulong nw4r::ut::Color::MAGENTA = 0xFF00FFFF
static

Definition at line 71 of file ut_Color.h.

◆ YELLOW

const ulong nw4r::ut::Color::YELLOW = 0xFFFF00FF
static

Definition at line 72 of file ut_Color.h.

◆ BLACK

const ulong nw4r::ut::Color::BLACK = 0x000000FF
static

Definition at line 74 of file ut_Color.h.

◆ GRAY

const ulong nw4r::ut::Color::GRAY = 0x808080FF
static

Definition at line 75 of file ut_Color.h.

◆ WHITE

const ulong nw4r::ut::Color::WHITE = 0xFFFFFFFF
static

Definition at line 76 of file ut_Color.h.