]> git.saurik.com Git - wxWidgets.git/blob - src/msw/colour.cpp
Add virtual ~wxAnyScrollHelperBase() to fix compiler warning.
[wxWidgets.git] / src / msw / colour.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/msw/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 #include "wx/msw/private.h"
25
26 #include <string.h>
27
28 // Colour
29
30 void wxColour::Init()
31 {
32 m_isInit = false;
33 m_pixel = 0;
34 m_alpha =
35 m_red =
36 m_blue =
37 m_green = 0;
38 }
39
40 void wxColour::InitRGBA(unsigned char r, unsigned char g, unsigned char b,
41 unsigned char a)
42 {
43 m_red = r;
44 m_green = g;
45 m_blue = b;
46 m_alpha = a;
47 m_isInit = true;
48 m_pixel = PALETTERGB(m_red, m_green, m_blue);
49 }