]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/pen.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/pen.cpp
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
27 static int wx2msPenStyle(int wx_style
);
29 IMPLEMENT_DYNAMIC_CLASS(wxPen
, wxGDIObject
)
31 wxPenRefData::wxPenRefData()
35 wxPenRefData::wxPenRefData(const wxPenRefData
& data
)
39 wxPenRefData::~wxPenRefData()
53 // Should implement Create
54 wxPen::wxPen(const wxColour
& col
, int Width
, int Style
)
58 wxPen::wxPen(const wxBitmap
& stipple
, int Width
)
62 bool wxPen::RealizeResource()
67 WXHANDLE
wxPen::GetResourceHandle() const
72 bool wxPen::FreeResource(bool WXUNUSED(force
))
77 bool wxPen::IsFree() const
86 void wxPen::SetColour(const wxColour
& col
)
90 void wxPen::SetColour(unsigned char r
, unsigned char g
, unsigned char b
)
94 void wxPen::SetWidth(int Width
)
98 void wxPen::SetStyle(int Style
)
102 void wxPen::SetStipple(const wxBitmap
& Stipple
)
106 void wxPen::SetDashes(int nb_dashes
, const wxDash
*Dash
)
110 void wxPen::SetJoin(int Join
)
114 void wxPen::SetCap(int Cap
)