]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/colour.cpp
d1add0c9c3e7fb9c3dc25c8f361acf00dc8de09f
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/colour.cpp
3 // Purpose: wxColour class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
15 #include "wx/colour.h"
18 #include "wx/gdicmn.h"
25 IMPLEMENT_DYNAMIC_CLASS(wxColour
, wxGDIObject
)
33 m_cRed
= m_cBlue
= m_cGreen
= 0;
34 } // end of wxColour::Init
39 } // end of wxColour::wxColour
41 wxColour::wxColour( const wxColour
& rCol
)
44 } // end of wxColour::wxColour
46 wxColour
& wxColour::operator= (const wxColour
& rCol
)
49 m_cGreen
= rCol
.m_cGreen
;
50 m_cBlue
= rCol
.m_cBlue
;
51 m_bIsInit
= rCol
.m_bIsInit
;
52 m_vPixel
= rCol
.m_vPixel
;
54 } // end of wxColour& wxColour::operator =
58 } // end of wxColour::~wxColour
60 void wxColour::InitRGBA( unsigned char cRed
,
63 unsigned char WXUNUSED(calpha
) )
69 m_vPixel
= OS2RGB (m_cRed
, m_cGreen
, m_cBlue
);
70 } // end of wxColour::Set