The rounded corners look really dumb at this size.
[wxWidgets.git] / src / generic / colour.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/generic/colour.cpp
3 // Purpose: wxColour class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
13
14 #ifdef __BORLANDC__
15 #pragma hdrstop
16 #endif
17
18 #include "wx/colour.h"
19
20 #ifndef WX_PRECOMP
21 #include "wx/gdicmn.h"
22 #endif
23
24 // Colour
25
26 void wxColour::Init()
27 {
28 m_red =
29 m_blue =
30 m_green = 0;
31 m_alpha = wxALPHA_OPAQUE;
32 m_isInit = false;
33 }
34
35 void wxColour::InitRGBA(unsigned char r,
36 unsigned char g,
37 unsigned char b,
38 unsigned char a)
39 {
40 m_red = r;
41 m_green = g;
42 m_blue = b;
43 m_alpha = a;
44 m_isInit = true;
45 }
46
47 wxColour& wxColour::operator=(const wxColour& col)
48 {
49 m_red = col.m_red;
50 m_green = col.m_green;
51 m_blue = col.m_blue;
52 m_alpha = col.m_alpha;
53 m_isInit = col.m_isInit;
54 return *this;
55 }
56