]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/colour.cpp
93ae465dc26c105ef04d5cae838e26daa64779f1
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"
20 #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::InitWith( unsigned char cRed
,
68 m_vPixel
= OS2RGB (m_cRed
, m_cGreen
, m_cBlue
);
69 } // end of wxColour::Set