// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "pen.h"
#endif
#include "wx/setup.h"
#include "wx/utils.h"
#include "wx/pen.h"
+#include "wx/colour.h"
+#include "wx/bitmap.h"
//-----------------------------------------------------------------------------
// wxPen
m_dash = new
*/
m_dash = data.m_dash;
+ m_stipple = data.m_stipple;
}
bool operator == (const wxPenRefData& data) const
int m_capStyle;
wxColour m_colour;
int m_countDashes;
+ wxBitmap m_stipple;
wxX11Dash *m_dash;
};
M_PENDATA->m_joinStyle = joinStyle;
}
+void wxPen::SetStipple( wxBitmap *stipple )
+{
+ AllocExclusive();
+
+ M_PENDATA->m_stipple = *stipple;;
+}
+
void wxPen::SetStyle( int style )
{
AllocExclusive();
return M_PENDATA->m_colour;
}
+
+wxBitmap *wxPen::GetStipple() const
+{
+ wxCHECK_MSG( Ok(), &wxNullBitmap, wxT("invalid pen") );
+
+ return &M_PENDATA->m_stipple;
+}