]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/colour.cpp
added trivial wxLaunchDefaultApplication() implementation for wxMac; added a test...
[wxWidgets.git] / src / msw / colour.cpp
index 8d667f730e86f9ac6d70e55f65ae22e8d1705463..9a9a13f98cb15c5aa380039ec223acd0f9edd505 100644 (file)
 
 #include "wx/colour.h"
 
-#include "wx/gdicmn.h"
+#ifndef WX_PRECOMP
+    #include "wx/gdicmn.h"
+#endif
+
 #include "wx/msw/private.h"
 
 #include <string.h>
@@ -51,7 +54,7 @@ wxBEGIN_PROPERTIES_TABLE(wxColour)
     wxREADONLY_PROPERTY( Blue, unsigned char, Blue, EMPTY_MACROVALUE , 0 /*flags*/, wxT("Helpstring"), wxT("group"))
 wxEND_PROPERTIES_TABLE()
 
-wxCONSTRUCTOR_3( wxColour, unsigned char, Red, unsigned char, Green, unsigned char, Blue )
+wxDIRECT_CONSTRUCTOR_3( wxColour, unsigned char, Red, unsigned char, Green, unsigned char, Blue )
 
 wxBEGIN_HANDLERS_TABLE(wxColour)
 wxEND_HANDLERS_TABLE()
@@ -65,20 +68,19 @@ void wxColour::Init()
 {
     m_isInit = false;
     m_pixel = 0;
+    m_alpha =
     m_red =
     m_blue =
     m_green = 0;
 }
 
-wxColour::~wxColour()
-{
-}
-
-void wxColour::InitWith(unsigned char r, unsigned char g, unsigned char b)
+void wxColour::InitRGBA(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;
     m_pixel = PALETTERGB(m_red, m_green, m_blue);
 }