From: Gilles Depeyrot Date: Mon, 26 Feb 2001 07:14:18 +0000 (+0000) Subject: added missing method to set colour from hex value X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a789c01d261ce61fd7aeb46998cb1c366a18666a added missing method to set colour from hex value git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/mac/colour.h b/include/wx/mac/colour.h index d9f82e8eb1..a811708f72 100644 --- a/include/wx/mac/colour.h +++ b/include/wx/mac/colour.h @@ -28,6 +28,8 @@ public: wxColour(); // from RGB wxColour( unsigned char red, unsigned char green, unsigned char blue ); + wxColour( unsigned long colRGB ) { Set(colRGB); } + // implicit conversion from the colour name wxColour( const wxString &colourName ) { InitFromName(colourName); } wxColour( const char *colourName ) { InitFromName(colourName); }