]>
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "pen.h"
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
32 static int wx2msPenStyle(int wx_style
);
34 IMPLEMENT_DYNAMIC_CLASS(wxPen
, wxGDIObject
)
36 wxPenRefData::wxPenRefData()
40 wxPenRefData::wxPenRefData(const wxPenRefData
& data
)
44 wxPenRefData::~wxPenRefData()
58 // Should implement Create
59 wxPen::wxPen(const wxColour
& col
, int Width
, int Style
)
63 wxPen::wxPen(const wxBitmap
& stipple
, int Width
)
67 bool wxPen::RealizeResource()
72 WXHANDLE
wxPen::GetResourceHandle() const
77 bool wxPen::FreeResource(bool WXUNUSED(force
))
82 bool wxPen::IsFree() const
91 void wxPen::SetColour(const wxColour
& col
)
95 void wxPen::SetColour(unsigned char r
, unsigned char g
, unsigned char b
)
99 void wxPen::SetWidth(int Width
)
103 void wxPen::SetStyle(int Style
)
107 void wxPen::SetStipple(const wxBitmap
& Stipple
)
111 void wxPen::SetDashes(int nb_dashes
, const wxDash
*Dash
)
115 void wxPen::SetJoin(int Join
)
119 void wxPen::SetCap(int Cap
)