OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TRgbQuad Class Reference

Wrapper for Windows' RBGQUAD type. More...

#include <owl/color.h>

Inheritance diagram for owl::TRgbQuad:

Public Member Functions

 TRgbQuad (int r, int g, int b)
 Creates a TRgbQuad object with rgbRed, rgbGreen, and rgbBlue set to r, g, and b respectively.
 
 TRgbQuad (const TColor &c)
 Creates a TRgbQuad object with rgbRed, rgbGreen, rgbBlue set to c.Red, c.Green, c.Blue respectively.
 
 TRgbQuad (const RGBQUAD &q)
 Creates a TRgbQuad object with the same values as the referenced RGBQUAD object.
 
bool operator== (COLORREF cr) const
 Return true if the RGBQUAD has the same color components.
 

Detailed Description

Wrapper for Windows' RBGQUAD type.

TRgbQuad is a support class derived from the structure tagRGBQUAD, which is defined as follows:

typedef struct tagRGBQUAD {

The elements rgbBlue, rgbGreen, and rgbRed specify the relative blue, green, and red intensities of a color. rgbReserved is not used and must be set to 0.

TRgbQuad is used in conjunction with the classes TPalette and TColor to simplify RGBQUAD-based color operations. Constructors are provided to create TRgbQuad objects from explicit RGB values, from TColor objects, or from other TRgbQuad objects.

Definition at line 433 of file color.h.

Constructor & Destructor Documentation

◆ TRgbQuad() [1/3]

owl::TRgbQuad::TRgbQuad ( int r,
int g,
int b )
inline

Creates a TRgbQuad object with rgbRed, rgbGreen, and rgbBlue set to r, g, and b respectively.

Sets rgbReserved to 0.

Definition at line 795 of file color.h.

◆ TRgbQuad() [2/3]

owl::TRgbQuad::TRgbQuad ( const TColor & c)
inline

Creates a TRgbQuad object with rgbRed, rgbGreen, rgbBlue set to c.Red, c.Green, c.Blue respectively.

Sets rgbReserved to 0.

Definition at line 808 of file color.h.

◆ TRgbQuad() [3/3]

owl::TRgbQuad::TRgbQuad ( const RGBQUAD & q)
inline

Creates a TRgbQuad object with the same values as the referenced RGBQUAD object.

Definition at line 820 of file color.h.

Member Function Documentation

◆ operator==()

bool owl::TRgbQuad::operator== ( COLORREF cr) const
inline

Return true if the RGBQUAD has the same color components.

Definition at line 829 of file color.h.


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