X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8c5907cea3231c246b879c586a7140b6dc12413f..91a64dfd31f2b144260556755a2d52ecbbb0a85f:/include/wx/os2/colour.h?ds=inline diff --git a/include/wx/os2/colour.h b/include/wx/os2/colour.h index b49aa6a2c2..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,6 +73,10 @@ public: ,(unsigned char)(lColRGB >> 16) ); } + void Set(const wxString& rsColour) + { + InitFromName(rsColour); + } // // Accessors