X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a06066343d670807825adcafebfa4fb8cfff5521..af01f1ba0d697c07173f436ab661b4c833258a91:/include/wx/os2/colour.h diff --git a/include/wx/os2/colour.h b/include/wx/os2/colour.h index a69fa86430..e706844681 100644 --- a/include/wx/os2/colour.h +++ b/include/wx/os2/colour.h @@ -35,6 +35,8 @@ public: ,unsigned char cBlue ); + wxColour( unsigned long colRGB ) { Set(colRGB); } + // // Implicit conversion from the colour name // @@ -71,9 +73,14 @@ public: ,(unsigned char)(lColRGB >> 16) ); } + void Set(const wxString& rsColour) + { + InitFromName(rsColour); + } // // Accessors + // bool Ok(void) const {return m_bIsInit; } //