/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/src/generic/colour.cpp
ViewVC logotype

Contents of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/src/generic/colour.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years ago) by william
Original Path: trunk/3rdparty/wxWidgets/src/generic/colour.cpp
File size: 1404 byte(s)
committing r3113 initial commit again...
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: colour.cpp 41123 2006-09-10 02:00:24Z VZ $
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 IMPLEMENT_DYNAMIC_CLASS(wxColour, wxObject)
26
27 // Colour
28
29 void wxColour::Init()
30 {
31 m_red =
32 m_blue =
33 m_green = 0;
34 m_alpha = wxALPHA_OPAQUE;
35 m_isInit = false;
36 }
37
38 wxColour::wxColour()
39 {
40 Init();
41 }
42
43 wxColour::wxColour(const wxColour& col)
44 {
45 *this = col;
46 }
47
48 wxColour& 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
58 wxColour::~wxColour()
59 {
60 }
61
62 void wxColour::InitRGBA(unsigned char r,
63 unsigned char g,
64 unsigned char b,
65 unsigned char a)
66 {
67 m_red = r;
68 m_green = g;
69 m_blue = b;
70 m_alpha = a;
71 m_isInit = true;
72 }

  ViewVC Help
Powered by ViewVC 1.1.22