]> git.saurik.com Git - wxWidgets.git/commitdiff
Implement wxColour constructors to match other ports by adding char const * and wchar...
authorDavid Elliott <dfe@tgwbd.org>
Thu, 5 Jul 2007 22:20:40 +0000 (22:20 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Thu, 5 Jul 2007 22:20:40 +0000 (22:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/colour.h

index 48986eb46ed9f4caa33bc68411243711274c31c6..d553f762bc72a9888b080f3826bfaa3110201cfc 100644 (file)
@@ -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 );