X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..155ecd4c4221d3bbc7aa93d472d11948f21d21ab:/src/mac/classic/colour.cpp?ds=sidebyside diff --git a/src/mac/classic/colour.cpp b/src/mac/classic/colour.cpp index 1a065ff8b6..17760ac498 100644 --- a/src/mac/classic/colour.cpp +++ b/src/mac/classic/colour.cpp @@ -1,25 +1,24 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: colour.cpp +// Name: src/mac/classic/colour.cpp // Purpose: wxColour class // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 // RCS-ID: $Id$ // Copyright: (c) Stefan Csomor -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "colour.h" -#endif +#include "wx/wxprec.h" -#include "wx/gdicmn.h" #include "wx/colour.h" -#if !USE_SHARED_LIBRARY -IMPLEMENT_DYNAMIC_CLASS(wxColour, wxObject) +#ifndef WX_PRECOMP + #include "wx/gdicmn.h" #endif +IMPLEMENT_DYNAMIC_CLASS(wxColour, wxObject) + // Colour #include "wx/mac/private.h" @@ -76,27 +75,11 @@ wxColour& wxColour::operator =(const wxColour& col) return *this; } -void wxColour::InitFromName(const wxString& name) -{ - if ( wxTheColourDatabase ) - { - wxColour col = wxTheColourDatabase->Find(name); - if ( col.Ok() ) - { - *this = col; - return; - } - } - - // leave invalid - Init(); -} - wxColour::~wxColour () { } -void wxColour::Set (unsigned char r, unsigned char g, unsigned char b) +void wxColour::InitWith (unsigned char r, unsigned char g, unsigned char b) { m_red = r; m_green = g;