X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a06066343d670807825adcafebfa4fb8cfff5521..c978d36124197b5612a2cabefed7591ad0eea6e2:/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; } //