X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edf6a063410b3fa401c913153a64f81d700fbda4..8ccff7d2116057a0e79db28491a6c7fdf4051a58:/include/wx/x11/colour.h?ds=sidebyside diff --git a/include/wx/x11/colour.h b/include/wx/x11/colour.h index b915ac4022..30481cba51 100644 --- a/include/wx/x11/colour.h +++ b/include/wx/x11/colour.h @@ -12,7 +12,7 @@ #ifndef _WX_COLOUR_H_ #define _WX_COLOUR_H_ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "colour.h" #endif @@ -53,6 +53,9 @@ public: 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; }