wxPen::wxPen(
const wxColour& rColour
, int nWidth
-, int nStyle
+, wxPenStyle nStyle
)
{
m_refData = new wxPenRefData;
RealizeResource();
} // end of wxPen::wxPen
+wxPen::wxPen(const wxColour& colour, int width, wxBrushStyle style)
+{
+ m_refData = new wxPenRefData;
+
+ M_PENDATA->m_vColour = colour;
+ M_PENDATA->m_nWidth = width;
+ M_PENDATA->m_nStyle = (wxPenStyle)nStyle;
+ M_PENDATA->m_nJoin = wxJOIN_ROUND ;
+ M_PENDATA->m_nCap = wxCAP_ROUND ;
+ M_PENDATA->m_hPen = 0L;
+
+ RealizeResource();
+}
+
wxPen::wxPen(
const wxBitmap& rStipple
, int nWidth
} // end of wxPen::wxPen
int wx2os2PenStyle(
- int nWxStyle
+ wxPenStyle nWxStyle
);
bool wxPen::RealizeResource()
} // end of wxPen::SetWidth
void wxPen::SetStyle(
- int nStyle
+ wxPenStyle nStyle
)
{
AllocExclusive();
} // end of wxPen::SetDashes
void wxPen::SetJoin(
- int nJoin
+ wxPenJoin nJoin
)
{
AllocExclusive();
} // end of wxPen::SetJoin
void wxPen::SetCap(
- int nCap
+ wxPenCap nCap
)
{
AllocExclusive();
} // end of wxPen::SetCap
int wx2os2PenStyle(
- int nWxStyle
+ wxPenStyle nWxStyle
)
{
int nPMStyle = 0;