X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e86d4e59c10a8110a5bcf714bca17a8eea65e8b8..beff65bff5fa3739a191bc0c72733167dbc8bb05:/include/wx/cocoa/colour.h diff --git a/include/wx/cocoa/colour.h b/include/wx/cocoa/colour.h index 48986eb46e..f0d7af4271 100644 --- a/include/wx/cocoa/colour.h +++ b/include/wx/cocoa/colour.h @@ -36,6 +36,8 @@ public: { 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 ); @@ -48,8 +50,7 @@ public: virtual ~wxColour(); // accessors - bool Ok() const { return IsOk(); } - bool IsOk() const { return m_cocoaNSColor; } + virtual bool IsOk() const { return m_cocoaNSColor; } WX_NSColor GetNSColor() { return m_cocoaNSColor; } unsigned char Red() const { return m_red; }