#include "wx/object.h"
#include "wx/string.h"
+struct RGBColor;
+
// Colour
class WXDLLEXPORT wxColour: public wxColourBase
{
// accessors
bool Ok() const { return IsOk(); }
- bool IsOk() const {return m_isInit; }
+ bool IsOk() const;
unsigned char Red() const { return m_red; }
unsigned char Green() const { return m_green; }
const WXCOLORREF& GetPixel() const { return m_pixel; };
+ // Mac-specific ctor and assignment operator from the native colour
+ wxColour(const RGBColor& col);
+ wxColour& operator=(const RGBColor& col);
+
protected :
// Helper function
public:
WXCOLORREF m_pixel ;
- void FromRGBColor( const WXCOLORREF* color ) ;
+ void FromRGBColor( WXCOLORREF* color ) ;
private: