/////////////////////////////////////////////////////////////////////////////
-// Name: colour.h
+// Name: wx/gtk/colour.h
// Purpose:
// Author: Robert Roebling
// Id: $Id$
class WXDLLIMPEXP_CORE wxColour: public wxGDIObject
{
public:
+ // constructors
+ // ------------
+
+ // default
wxColour() { }
- // Construct from RGB
+ // from separate RGB
wxColour( unsigned char red, unsigned char green, unsigned char blue );
+
+ // from packed RGB
wxColour( unsigned long colRGB ) { Set(colRGB); }
// Implicit conversion from the colour name
wxColour( const wxChar *colourName ) { InitFromName( wxString(colourName) ); }
#endif
-
- wxColour( const wxColour& col )
- : wxGDIObject()
- { Ref(col); }
- wxColour& operator = ( const wxColour& col ) { Ref(col); return *this; }
-
~wxColour();
bool Ok() const { return m_refData != NULL; }