]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/x11/colour.h
Updated wxHashTable::Next documentation to use wxHashTable::Node*
[wxWidgets.git] / include / wx / x11 / colour.h
index 884b849c57c8540209e173a8b73499270ed4a96d..30481cba51c5c17ec4c11ee683d8c9000d1a9835 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef _WX_COLOUR_H_
 #define _WX_COLOUR_H_
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface "colour.h"
 #endif
 
@@ -48,7 +48,13 @@ public:
 
     // 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
+
+    // Get colour from name or wxNullColour
+    static wxColour CreateByName(const wxString& name);
 
     wxColour( const wxColour& col ) { Ref(col); }
     wxColour& operator = ( const wxColour& col ) { Ref(col); return *this; }
@@ -94,4 +100,5 @@ private:
 
 #endif
 
-// _WX_COLOUR_H_
\ No newline at end of file
+// _WX_COLOUR_H_
+