- wxNode *node = NULL;
- if ( (wxTheColourDatabase) && (node = wxTheColourDatabase->Find(colourName)) )
- {
- wxColour *col = (wxColour*)node->Data();
- UnRef();
- if (col) Ref( *col );
- }
- else
- {
- m_refData = new wxColourRefData();
- };
-};
-
-wxColour::wxColour( const wxColour& col )
-{
- Ref( col );
-};
-
-wxColour::wxColour( const wxColour* col )
-{
- if (col) Ref( *col );
-};
-
-wxColour::~wxColour(void)
-{
-};
-
-wxColour& wxColour::operator = ( const wxColour& col )
-{
- if (*this == col) return (*this);
- Ref( col );
- return *this;
-};
-
-wxColour& wxColour::operator = ( const wxString& colourName )
-{
- UnRef();
- wxNode *node = NULL;
- if ((wxTheColourDatabase) && (node = wxTheColourDatabase->Find(colourName)) )
- {
- wxColour *col = (wxColour*)node->Data();
- if (col) Ref( *col );
- }
- else
- {
- m_refData = new wxColourRefData();
- };
- return *this;
-};
-
-bool wxColour::operator == ( const wxColour& col )
-{
- return m_refData == col.m_refData;
-};
-
-bool wxColour::operator != ( const wxColour& col)
-{
- return m_refData != col.m_refData;
-};
-
-void wxColour::Set( const unsigned char WXUNUSED(red), const unsigned char WXUNUSED(green),
- const unsigned char WXUNUSED(blue) )
+ m_red = r;
+ m_green = g;
+ m_blue = b;
+ m_isInit = TRUE;
+/* TODO
+ m_pixel = PALETTERGB (m_red, m_green, m_blue);
+*/
+}
+
+wxColour::wxColour (const wxColour& col)