]> git.saurik.com Git - wxWidgets.git/blame - src/msw/colour.cpp
Set missing Language: headers in PO files.
[wxWidgets.git] / src / msw / colour.cpp
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
edc536d3 2// Name: src/msw/colour.cpp
2bda0e17
KB
3// Purpose: wxColour class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
6c9a19aa 7// Copyright: (c) Julian Smart
65571936 8// Licence: wxWindows licence
2bda0e17
KB
9/////////////////////////////////////////////////////////////////////////////
10
2bda0e17
KB
11// For compilers that support precompilation, includes "wx.h".
12#include "wx/wxprec.h"
13
14#ifdef __BORLANDC__
40989e46 15 #pragma hdrstop
2bda0e17
KB
16#endif
17
7cf41a5d
WS
18#include "wx/colour.h"
19
dd05139a
WS
20#ifndef WX_PRECOMP
21 #include "wx/gdicmn.h"
22#endif
23
8cb172b4 24#include "wx/msw/private.h"
2bda0e17
KB
25
26#include <string.h>
2bda0e17 27
2bda0e17
KB
28// Colour
29
f75aecd0 30void wxColour::Init()
2bda0e17 31{
aad6765c 32 m_isInit = false;
f75aecd0 33 m_pixel = 0;
c2b9ae5f 34 m_alpha =
f75aecd0
VZ
35 m_red =
36 m_blue =
37 m_green = 0;
2bda0e17
KB
38}
39
aea95b1c 40void wxColour::InitRGBA(unsigned char r, unsigned char g, unsigned char b,
c2b9ae5f 41 unsigned char a)
2bda0e17 42{
f75aecd0
VZ
43 m_red = r;
44 m_green = g;
45 m_blue = b;
c2b9ae5f 46 m_alpha = a;
aad6765c
JS
47 m_isInit = true;
48 m_pixel = PALETTERGB(m_red, m_green, m_blue);
2bda0e17 49}