X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7cacb43db1e69b87b257a67912b4d52995b070a..39c20230ba7ca49fbdfd7c558b4669ddc15ba4aa:/include/wx/cocoa/colour.h diff --git a/include/wx/cocoa/colour.h b/include/wx/cocoa/colour.h index c43b6e198e..48986eb46e 100644 --- a/include/wx/cocoa/colour.h +++ b/include/wx/cocoa/colour.h @@ -27,7 +27,15 @@ public: // default wxColour() { Init(); } - DEFINE_STD_WXCOLOUR_CONSTRUCTORS + + // the other standard ones: notice that we can't use + // DEFINE_STD_WXCOLOUR_CONSTRUCTORS here because we need to call Init() to + // initialize m_cocoaNSColor and the macro doesn't do it + wxColour( ChannelType red, ChannelType green, ChannelType blue, + ChannelType alpha = wxALPHA_OPAQUE ) + { Init(); Set(red, green, blue, alpha); } + wxColour(unsigned long colRGB) { Init(); Set(colRGB); } + wxColour(const wxString& colourName) { Init(); Set(colourName); } // initialization using existing NSColor wxColour( WX_NSColor aColor ); @@ -71,9 +79,6 @@ public: unsigned char alpha = wxALPHA_OPAQUE) { wxColourBase::Set(red, green, blue, alpha); } - bool Set(const wxChar *str) - { return wxColourBase::Set(str); } - bool Set(const wxString &str) { return wxColourBase::Set(str); }