]> git.saurik.com Git - wxWidgets.git/blob - src/msw/colour.cpp
Remove SetPageTitle and GetPageTitle and make GetCurrentTitle actually return the...
[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 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
14
15 #ifdef __BORLANDC__
16 #pragma hdrstop
17 #endif
18
19 #include "wx/colour.h"
20
21 #ifndef WX_PRECOMP
22 #include "wx/gdicmn.h"
23 #endif
24
25 #include "wx/msw/private.h"
26
27 #include <string.h>
28
29 // Colour
30
31 void wxColour::Init()
32 {
33 m_isInit = false;
34 m_pixel = 0;
35 m_alpha =
36 m_red =
37 m_blue =
38 m_green = 0;
39 }
40
41 void wxColour::InitRGBA(unsigned char r, unsigned char g, unsigned char b,
42 unsigned char a)
43 {
44 m_red = r;
45 m_green = g;
46 m_blue = b;
47 m_alpha = a;
48 m_isInit = true;
49 m_pixel = PALETTERGB(m_red, m_green, m_blue);
50 }