]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/colour.cpp
Enable the correct code making sure that subwindows will always receive a wxSizeEvent...
[wxWidgets.git] / src / generic / colour.cpp
index e51a7e3938bd4faebf06aaee5bf97cdb9221b0e0..adc843d1953674193f71717bc63aa058657e9ef9 100644 (file)
@@ -35,14 +35,16 @@ void wxColour::Init()
     m_isInit = false;
 }
 
-wxColour::wxColour()
-{
-    Init();
-}
-
-wxColour::wxColour(const wxColour& col)
+void wxColour::InitRGBA(unsigned char r,
+                        unsigned char g,
+                        unsigned char b,
+                        unsigned char a)
 {
-    *this = col;
+    m_red = r;
+    m_green = g;
+    m_blue = b;
+    m_alpha = a;
+    m_isInit = true;
 }
 
 wxColour& wxColour::operator=(const wxColour& col)
@@ -55,16 +57,3 @@ wxColour& wxColour::operator=(const wxColour& col)
     return *this;
 }
 
-wxColour::~wxColour()
-{
-}
-
-void wxColour::InitWith(unsigned char r, unsigned char g, unsigned char b,
-                        unsigned char a)
-{
-    m_red = r;
-    m_green = g;
-    m_blue = b;
-    m_alpha = a;
-    m_isInit = true;
-}