]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/colour.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/colour.cpp
3 // Purpose: wxColour class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
14 #include "wx/colour.h"
17 #include "wx/gdicmn.h"
30 m_cRed
= m_cBlue
= m_cGreen
= 0;
31 } // end of wxColour::Init
33 wxColour::wxColour( const wxColour
& rCol
)
36 } // end of wxColour::wxColour
38 wxColour
& wxColour::operator= (const wxColour
& rCol
)
41 m_cGreen
= rCol
.m_cGreen
;
42 m_cBlue
= rCol
.m_cBlue
;
43 m_bIsInit
= rCol
.m_bIsInit
;
44 m_vPixel
= rCol
.m_vPixel
;
46 } // end of wxColour& wxColour::operator =
50 } // end of wxColour::~wxColour
52 void wxColour::InitRGBA( unsigned char cRed
,
55 unsigned char WXUNUSED(calpha
) )
61 m_vPixel
= OS2RGB (m_cRed
, m_cGreen
, m_cBlue
);
62 } // end of wxColour::Set