Document domain parameter of wxTranslations::GetTranslatedString().
[wxWidgets.git] / src / os2 / colour.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/colour.cpp
3 // Purpose: wxColour class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/13/99
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
13
14 #include "wx/colour.h"
15
16 #ifndef WX_PRECOMP
17 #include "wx/gdicmn.h"
18 #endif
19
20 #define INCL_GPI
21 #define INCL_PM
22 #include<os2.h>
23
24 // Colour
25
26 void wxColour::Init()
27 {
28 m_bIsInit = false;
29 m_vPixel = 0;
30 m_cRed = m_cBlue = m_cGreen = 0;
31 } // end of wxColour::Init
32
33 wxColour::wxColour( const wxColour& rCol )
34 {
35 *this = rCol;
36 } // end of wxColour::wxColour
37
38 wxColour& wxColour::operator= (const wxColour& rCol)
39 {
40 m_cRed = rCol.m_cRed;
41 m_cGreen = rCol.m_cGreen;
42 m_cBlue = rCol.m_cBlue;
43 m_bIsInit = rCol.m_bIsInit;
44 m_vPixel = rCol.m_vPixel;
45 return *this;
46 } // end of wxColour& wxColour::operator =
47
48 wxColour::~wxColour()
49 {
50 } // end of wxColour::~wxColour
51
52 void wxColour::InitRGBA( unsigned char cRed,
53 unsigned char cGreen,
54 unsigned char cBlue,
55 unsigned char WXUNUSED(calpha) )
56 {
57 m_cRed = cRed;
58 m_cGreen = cGreen;
59 m_cBlue = cBlue;
60 m_bIsInit = true;
61 m_vPixel = OS2RGB (m_cRed, m_cGreen, m_cBlue);
62 } // end of wxColour::Set