]> git.saurik.com Git - wxWidgets.git/blob - src/os2/colour.cpp
Use wxMarkupParser in wxStaticText for dealing with markup.
[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 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
14
15 #include "wx/colour.h"
16
17 #ifndef WX_PRECOMP
18 #include "wx/gdicmn.h"
19 #endif
20
21 #define INCL_GPI
22 #define INCL_PM
23 #include<os2.h>
24
25 // Colour
26
27 void wxColour::Init()
28 {
29 m_bIsInit = false;
30 m_vPixel = 0;
31 m_cRed = m_cBlue = m_cGreen = 0;
32 } // end of wxColour::Init
33
34 wxColour::wxColour( const wxColour& rCol )
35 {
36 *this = rCol;
37 } // end of wxColour::wxColour
38
39 wxColour& wxColour::operator= (const wxColour& rCol)
40 {
41 m_cRed = rCol.m_cRed;
42 m_cGreen = rCol.m_cGreen;
43 m_cBlue = rCol.m_cBlue;
44 m_bIsInit = rCol.m_bIsInit;
45 m_vPixel = rCol.m_vPixel;
46 return *this;
47 } // end of wxColour& wxColour::operator =
48
49 wxColour::~wxColour()
50 {
51 } // end of wxColour::~wxColour
52
53 void wxColour::InitRGBA( unsigned char cRed,
54 unsigned char cGreen,
55 unsigned char cBlue,
56 unsigned char WXUNUSED(calpha) )
57 {
58 m_cRed = cRed;
59 m_cGreen = cGreen;
60 m_cBlue = cBlue;
61 m_bIsInit = true;
62 m_vPixel = OS2RGB (m_cRed, m_cGreen, m_cBlue);
63 } // end of wxColour::Set