GUIDOLib  1.7.7
A Music Score Rendering Engine
Public Member Functions | Public Attributes | List of all members
VGColor Class Reference

Generic class to manipulate device independant colors. More...

Public Member Functions

 VGColor (int gray=0)
 
 VGColor (const VGColor &in)
 
 VGColor (int r, int g, int b, int a=ALPHA_OPAQUE)
 
 VGColor (const unsigned char col [4])
 
void Set (int r, int g, int b, int a=ALPHA_OPAQUE)
 
void Set (const VGColor &in)
 
bool operator== (const VGColor &col) const
 
bool operator!= (const VGColor &col) const
 
VGColoroperator+= (short v)
 
std::ostream & print (std::ostream &out) const
 

Public Attributes

int mRed
 
int mGreen
 
int mBlue
 
int mAlpha
 

Detailed Description

Generic class to manipulate device independant colors.

Constructor & Destructor Documentation

◆ VGColor() [1/4]

VGColor::VGColor ( int  gray = 0)
inline

◆ VGColor() [2/4]

VGColor::VGColor ( const VGColor in)
inline

◆ VGColor() [3/4]

VGColor::VGColor ( int  r,
int  g,
int  b,
int  a = ALPHA_OPAQUE 
)
inline

◆ VGColor() [4/4]

VGColor::VGColor ( const unsigned char  col[4])
inlineexplicit

Member Function Documentation

◆ operator!=()

bool VGColor::operator!= ( const VGColor col) const
inline

◆ operator==()

bool VGColor::operator== ( const VGColor col) const
inline

◆ print()

std::ostream& VGColor::print ( std::ostream &  out) const
inline

◆ Set() [1/2]

void VGColor::Set ( const VGColor in)
inline

◆ Set() [2/2]

void VGColor::Set ( int  r,
int  g,
int  b,
int  a = ALPHA_OPAQUE 
)
inline

Member Data Documentation

◆ mAlpha

int VGColor::mAlpha

◆ mBlue

int VGColor::mBlue

◆ mGreen

int VGColor::mGreen

◆ mRed

int VGColor::mRed

Guido Project Copyright © 2019 Grame-CNCM