]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/colour.h
Added FindItemAtPoint
[wxWidgets.git] / include / wx / os2 / colour.h
index a69fa86430adf563e1d518d23058455cf6adc5d1..a1c419e35f2702e8ad9e58b85c3c2baf6a39b4f4 100644 (file)
@@ -35,6 +35,8 @@ public:
              ,unsigned char cBlue
             );
 
+    wxColour( unsigned long colRGB ) { Set(colRGB); }
+
     //
     // Implicit conversion from the colour name
     //
@@ -71,20 +73,15 @@ public:
             ,(unsigned char)(lColRGB >> 16)
            );
     }
+    void Set(const wxString& rsColour)
+    {
+        InitFromName(rsColour);
+    }
 
     //
     // Accessors
-    bool Ok(void) const {return m_bIsInit; }
-
-    //
-    // Let's remove this inelegant function
     //
-#if WXWIN_COMPATIBILITY
-    void Get( unsigned char* pRed
-             ,unsigned char* pGreen
-             ,unsigned char* pBlue
-            ) const;
-#endif
+    bool Ok(void) const {return m_bIsInit; }
 
     unsigned char Red(void) const { return m_cRed; }
     unsigned char Green(void) const { return m_cGreen; }