#include "wx/colour.h"
-#include "wx/gdicmn.h"
+#ifndef WX_PRECOMP
+ #include "wx/gdicmn.h"
+#endif
+
#include "wx/msw/private.h"
#include <string.h>
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()
{
m_isInit = false;
m_pixel = 0;
+ m_alpha =
m_red =
m_blue =
m_green = 0;
{
}
-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);
}