Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
CButtonShowColor Class Reference

#include <CButtonShowColor.h>

Inherits CButton, and CButton.

Public Member Functions

const RGBColorgetColor (void) const
 
void setColor (Int color)
 
void setColor (const RGBColor &color)
 
 ~CButtonShowColor ()
 
const RGBColorgetColor (void) const
 
void setColor (Int color)
 
void setColor (const RGBColor &color)
 
 ~CButtonShowColor ()
 

Static Public Member Functions

static COLORREF RGBtoBGR (Int color)
 
static Int BGRtoRGB (COLORREF color)
 
static COLORREF RGBtoBGR (Int color)
 
static Int BGRtoRGB (COLORREF color)
 

Protected Member Functions

afx_msg void OnPaint ()
 
 DECLARE_MESSAGE_MAP ()
 
afx_msg void OnPaint ()
 
 DECLARE_MESSAGE_MAP ()
 

Protected Attributes

RGBColor m_color
 

Detailed Description

Definition at line 26 of file CButtonShowColor.h.

Constructor & Destructor Documentation

◆ ~CButtonShowColor() [1/2]

CButtonShowColor::~CButtonShowColor ( )

Definition at line 55 of file CButtonShowColor.cpp.

◆ ~CButtonShowColor() [2/2]

CButtonShowColor::~CButtonShowColor ( )

Member Function Documentation

◆ BGRtoRGB() [1/2]

Int CButtonShowColor::BGRtoRGB ( COLORREF color)
static

Definition at line 69 of file CButtonShowColor.cpp.

◆ BGRtoRGB() [2/2]

static Int CButtonShowColor::BGRtoRGB ( COLORREF color)
static

◆ DECLARE_MESSAGE_MAP() [1/2]

CButtonShowColor::DECLARE_MESSAGE_MAP ( )
protected

◆ DECLARE_MESSAGE_MAP() [2/2]

CButtonShowColor::DECLARE_MESSAGE_MAP ( )
protected

◆ getColor() [1/2]

const RGBColor & CButtonShowColor::getColor ( void ) const
inline

Definition at line 32 of file CButtonShowColor.h.

◆ getColor() [2/2]

const RGBColor & CButtonShowColor::getColor ( void ) const
inline

Definition at line 30 of file CButtonShowColor.h.

◆ OnPaint() [1/2]

void CButtonShowColor::OnPaint ( )
protected

Definition at line 25 of file CButtonShowColor.cpp.

◆ OnPaint() [2/2]

afx_msg void CButtonShowColor::OnPaint ( )
protected

◆ RGBtoBGR() [1/2]

COLORREF CButtonShowColor::RGBtoBGR ( Int color)
static

Definition at line 61 of file CButtonShowColor.cpp.

◆ RGBtoBGR() [2/2]

static COLORREF CButtonShowColor::RGBtoBGR ( Int color)
static

◆ setColor() [1/4]

void CButtonShowColor::setColor ( const RGBColor & color)
inline

Definition at line 34 of file CButtonShowColor.h.

◆ setColor() [2/4]

void CButtonShowColor::setColor ( const RGBColor & color)
inline

Definition at line 32 of file CButtonShowColor.h.

◆ setColor() [3/4]

void CButtonShowColor::setColor ( Int color)
inline

Definition at line 33 of file CButtonShowColor.h.

◆ setColor() [4/4]

void CButtonShowColor::setColor ( Int color)
inline

Definition at line 31 of file CButtonShowColor.h.

Member Data Documentation

◆ m_color

RGBColor CButtonShowColor::m_color
protected

Definition at line 29 of file CButtonShowColor.h.


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