- // from RGB
- wxColour( unsigned char red, unsigned char green, unsigned char blue )
- : m_cocoaNSColor(NULL)
- { Set(red,green,blue); }
- wxColour( unsigned long colRGB )
- : m_cocoaNSColor(NULL)
- { Set(colRGB); }
-
- // implicit conversion from the colour name
- wxColour( const wxString &colourName )
- { InitFromName(colourName); }
- wxColour( const char *colourName )
- { InitFromName(wxString::FromAscii(colourName)); }
-#if wxUSE_UNICODE
- wxColour( const wxChar *colourName ) { InitFromName( wxString(colourName) ); }
-#endif
+ // 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); }
+ wxColour(const char *colourName) { Init(); Set(colourName); }
+ wxColour(const wchar_t *colourName) { Init(); Set(colourName); }
+
+ // initialization using existing NSColor
+ wxColour( WX_NSColor aColor );
+