public:
// constructors
// ------------
-
- wxColour() {}
DEFINE_STD_WXCOLOUR_CONSTRUCTORS
virtual ~wxColour();
- bool Ok() const { return IsOk(); }
- bool IsOk() const { return m_refData != NULL; }
-
- bool operator == ( const wxColour& col ) const;
- bool operator != ( const wxColour& col ) const { return !(*this == col); }
+ bool operator==(const wxColour& col) const;
+ bool operator!=(const wxColour& col) const { return !(*this == col); }
unsigned char Red() const;
unsigned char Green() const;
WXColor *GetColor() const;
protected:
- // ref counting code
- virtual wxObjectRefData *CreateRefData() const;
- virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
+ virtual wxGDIRefData *CreateGDIRefData() const;
+ virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
virtual void
InitRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a);
DECLARE_DYNAMIC_CLASS(wxColour)
};
-#endif
-
-// _WX_COLOUR_H_
+#endif // _WX_COLOUR_H_