Cavestory Mod API
Public Member Functions | Public Attributes | List of all members
GUI_COLOR Struct Reference

Manages colors. More...

#include <CSMAPI_types.h>

Public Member Functions

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)
 

Public Attributes

unsigned char r
 Red value.
 
unsigned char g
 Green value.
 
unsigned char b
 Blue value.
 
unsigned char a
 Alpha value.
 

Detailed Description

Manages colors.

Member Function Documentation

◆ from_rgb()

void GUI_COLOR::from_rgb ( unsigned long  color)
inline

Convert from RGBA to fill r, g, b and a.

Parameters
colorThe color to use.

◆ 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: