]>
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
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"
31 m_cRed
= m_cBlue
= m_cGreen
= 0;
32 } // end of wxColour::Init
34 wxColour::wxColour( const wxColour
& rCol
)
37 } // end of wxColour::wxColour
39 wxColour
& wxColour::operator= (const wxColour
& rCol
)
42 m_cGreen
= rCol
.m_cGreen
;
43 m_cBlue
= rCol
.m_cBlue
;
44 m_bIsInit
= rCol
.m_bIsInit
;
45 m_vPixel
= rCol
.m_vPixel
;
47 } // end of wxColour& wxColour::operator =
51 } // end of wxColour::~wxColour
53 void wxColour::InitRGBA( unsigned char cRed
,
56 unsigned char WXUNUSED(calpha
) )
62 m_vPixel
= OS2RGB (m_cRed
, m_cGreen
, m_cBlue
);
63 } // end of wxColour::Set