vdk 2.4.0
Public Member Functions | List of all members
VDKRgb Class Reference

Provides a simple RGB color structure. More...

#include <vdkutils.h>

Public Member Functions

 VDKRgb (int r=0, int g=0, int b=0)
 
 ~VDKRgb ()
 
 VDKRgb (char *name)
 
bool IsValid () const
 
bool operator== (VDKRgb &c) const
 

Detailed Description

Provides a simple RGB color structure.

Constructor & Destructor Documentation

◆ VDKRgb() [1/2]

VDKRgb::VDKRgb ( int  r = 0,
int  g = 0,
int  b = 0 
)
inline

Constructor

Parameters
rred component (0-256)
ggreen component
bblue component

◆ ~VDKRgb()

VDKRgb::~VDKRgb ( )
inline

Destructor

◆ VDKRgb() [2/2]

VDKRgb::VDKRgb ( char *  name)
inline

Constructor

Parameters
namenames are those provided in rgb X database (normally on /usr/lib/X11/rgb.txt )

Member Function Documentation

◆ IsValid()

bool VDKRgb::IsValid ( ) const
inline

Returns true if a valid color was loaded

◆ operator==()

bool VDKRgb::operator== ( VDKRgb c) const
inline

Equality operator


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