#endif
#include "wx/pen.h"
-#include "wx/bitmap.h"
-#include "wx/colour.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/bitmap.h"
+ #include "wx/colour.h"
+#endif
+
#include "wx/mgl/private.h"
//-----------------------------------------------------------------------------
wxBitmapToPixPattern(stipple, &(M_PENDATA->m_pixPattern), NULL);
}
-wxPen::wxPen(const wxPen& pen)
-{
- Ref(pen);
-}
-
-wxPen& wxPen::operator = (const wxPen& pen)
-{
- if (*this == pen) return (*this);
- Ref(pen);
- return *this;
-}
-
bool wxPen::operator == (const wxPen& pen) const
{
return m_refData == pen.m_refData;
M_PENDATA->m_dash = (wxDash *)dash; /* TODO */
}
-void wxPen::SetColour(const unsigned char red, const unsigned char green, const unsigned char blue)
+void wxPen::SetColour(unsigned char red, unsigned char green, unsigned char blue)
{
AllocExclusive();
M_PENDATA->m_colour.Set(red, green, blue);
}
-bool wxPen::Ok() const
+bool wxPen::IsOk() const
{
return (m_refData != NULL);
}