#ifndef __GTKCOLOURH__
#define __GTKCOLOURH__
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface
#endif
// Implicit conversion from the colour name
wxColour( const wxString &colourName ) { InitFromName(colourName); }
- wxColour( const char *colourName ) { InitFromName(colourName); }
+ wxColour( const char *colourName ) { InitFromName( wxString::FromAscii(colourName) ); }
#if wxUSE_UNICODE
wxColour( const wxChar *colourName ) { InitFromName( wxString(colourName) ); }
#endif
unsigned char Blue() const;
+ // Get colour from name or wxNullColour
+ static wxColour CreateByName(const wxString& name);
+
// Implementation part
void CalcPixel( GdkColormap *cmap );
int GetPixel() const;