IMS2  Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
GUI_COLOR Struct Reference

Structure used to make operations involving rgb-colors less of a hassle. More...

Public Member Functions

 GUI_COLOR (int red, int green, int blue)
 Quick constructor to easily define a color. More...
 
bool operator== (GUI_COLOR c)
 
bool operator!= (GUI_COLOR c)
 

Public Attributes

int r
 The red value, >= 0 <= 255.
 
int g
 The green value, >= 0 <= 255.
 
int b
 The blue value, >= 0 <= 255.
 

Detailed Description

Structure used to make operations involving rgb-colors less of a hassle.

Constructor & Destructor Documentation

GUI_COLOR::GUI_COLOR ( int  red,
int  green,
int  blue 
)
inline

Quick constructor to easily define a color.

Parameters
redThe red value, >= 0 <= 255
greenThe green value, >= 0 <= 255
blueThe blue value, >= 0 <= 255

Member Function Documentation

bool GUI_COLOR::operator!= ( GUI_COLOR  c)
inline
Returns
true if any of the three color values do not match
Parameters
cThe color to compare this color to
bool GUI_COLOR::operator== ( GUI_COLOR  c)
inline
Returns
true if all three color values match.
Parameters
cThe color to compare this color to.

The documentation for this struct was generated from the following file: