X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e320a79f187558effb04d92020b470372bbe456..50494a55ae4f0ec07a15b811dbcce5a8ae9fc7bc:/src/os2/colour.cpp diff --git a/src/os2/colour.cpp b/src/os2/colour.cpp index 8d0827ef1d..fa7a623970 100644 --- a/src/os2/colour.cpp +++ b/src/os2/colour.cpp @@ -1,34 +1,31 @@ ///////////////////////////////////////////////////////////////////////////// // Name: colour.cpp // Purpose: wxColour class -// Author: AUTHOR +// Author: David Webster // Modified by: -// Created: ??/??/98 +// Created: 10/13/99 // RCS-ID: $Id$ -// Copyright: (c) AUTHOR -// Licence: wxWindows licence +// Copyright: (c) David Webster +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "colour.h" -#endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" #include "wx/gdicmn.h" -#include "wx/colour.h" +#define INCL_GPI +#define INCL_PM +#include -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxColour, wxObject) -#endif // Colour wxColour::wxColour () { m_isInit = FALSE; - m_red = m_blue = m_green = 0; -/* TODO m_pixel = 0; -*/ + m_red = m_blue = m_green = 0; } wxColour::wxColour (unsigned char r, unsigned char g, unsigned char b) @@ -37,9 +34,7 @@ wxColour::wxColour (unsigned char r, unsigned char g, unsigned char b) m_green = g; m_blue = b; m_isInit = TRUE; -/* TODO - m_pixel = PALETTERGB (m_red, m_green, m_blue); -*/ +// m_pixel = PALETTERGB (m_red, m_green, m_blue); } wxColour::wxColour (const wxColour& col) @@ -48,9 +43,7 @@ wxColour::wxColour (const wxColour& col) m_green = col.m_green; m_blue = col.m_blue; m_isInit = col.m_isInit; -/* TODO m_pixel = col.m_pixel; -*/ } wxColour& wxColour::operator =(const wxColour& col) @@ -59,9 +52,7 @@ wxColour& wxColour::operator =(const wxColour& col) m_green = col.m_green; m_blue = col.m_blue; m_isInit = col.m_isInit; -/* TODO m_pixel = col.m_pixel; -*/ return *this; } @@ -101,3 +92,14 @@ void wxColour::Set (unsigned char r, unsigned char g, unsigned char b) m_pixel = PALETTERGB (m_red, m_green, m_blue); */ } + +// Obsolete +#if WXWIN_COMPATIBILITY +void wxColour::Get (unsigned char *r, unsigned char *g, unsigned char *b) const +{ + *r = m_red; + *g = m_green; + *b = m_blue; +} +#endif +