]> git.saurik.com Git - wxWidgets.git/commitdiff
added missing method to set colour from hex value
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Mon, 26 Feb 2001 07:14:18 +0000 (07:14 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Mon, 26 Feb 2001 07:14:18 +0000 (07:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/mac/colour.h

index d9f82e8eb1056e60a5fa424704eed5fa66e86645..a811708f72925205bb57787d9716b52350dd4a0a 100644 (file)
@@ -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); }