]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/generic/colour.cpp
Fix compiler warnings in the IE backend.
[wxWidgets.git] / src / generic / colour.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/generic/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// Colour
26
27void wxColour::Init()
28{
29 m_red =
30 m_blue =
31 m_green = 0;
32 m_alpha = wxALPHA_OPAQUE;
33 m_isInit = false;
34}
35
36void wxColour::InitRGBA(unsigned char r,
37 unsigned char g,
38 unsigned char b,
39 unsigned char a)
40{
41 m_red = r;
42 m_green = g;
43 m_blue = b;
44 m_alpha = a;
45 m_isInit = true;
46}
47
48wxColour& wxColour::operator=(const wxColour& col)
49{
50 m_red = col.m_red;
51 m_green = col.m_green;
52 m_blue = col.m_blue;
53 m_alpha = col.m_alpha;
54 m_isInit = col.m_isInit;
55 return *this;
56}
57