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

Wrapper for Windows' RBGTRIPLE type. More...

#include <owl/color.h>

Inheritance diagram for owl::TRgbTriple:

Public Member Functions

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

Detailed Description

Wrapper for Windows' RBGTRIPLE type.

TRgbTriple is a support class derived from the structure tagRgbTriple, which is defined as follows:

typedef struct tagRGBTRIPLE {

The members rgbBlue, rgbGreen, and rgbRed specify the relative blue, green, and red intensities for a color. TRgbTriple is used in conjunction with the classes TPalette and TColor to simplify bmci-color-based operations. Constructors are provided to create TRgbTriple objects from explicit RGB values, from TColor objects, or from other TRgbTriple objects.

Definition at line 468 of file color.h.

Constructor & Destructor Documentation

◆ TRgbTriple() [1/3]

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

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

Definition at line 841 of file color.h.

◆ TRgbTriple() [2/3]

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

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

Definition at line 853 of file color.h.

◆ TRgbTriple() [3/3]

owl::TRgbTriple::TRgbTriple ( const RGBTRIPLE & t)
inline

Creates a TRgbTriple object with the same values as the referenced RGBTRIPLE object.

Definition at line 865 of file color.h.

Member Function Documentation

◆ operator==()

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

Return true if the triple match color components.

Definition at line 874 of file color.h.


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