]>
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"
28 static int wx2msPenStyle(int wx_style
);
30 IMPLEMENT_DYNAMIC_CLASS(wxPen
, wxGDIObject
)
32 wxPenRefData::wxPenRefData()
36 wxPenRefData::wxPenRefData(const wxPenRefData
& data
)
40 wxPenRefData::~wxPenRefData()
54 // Should implement Create
55 wxPen::wxPen(const wxColour
& col
, int Width
, int Style
)
59 wxPen::wxPen(const wxBitmap
& stipple
, int Width
)
63 bool wxPen::RealizeResource()
68 WXHANDLE
wxPen::GetResourceHandle() const
73 bool wxPen::FreeResource(bool WXUNUSED(force
))
78 bool wxPen::IsFree() const
83 void wxPen::SetColour(const wxColour
& col
)
87 void wxPen::SetColour(unsigned char r
, unsigned char g
, unsigned char b
)
91 void wxPen::SetWidth(int Width
)
95 void wxPen::SetStyle(int Style
)
99 void wxPen::SetStipple(const wxBitmap
& Stipple
)
103 void wxPen::SetDashes(int nb_dashes
, const wxDash
*Dash
)
107 void wxPen::SetJoin(int Join
)
111 void wxPen::SetCap(int Cap
)
115 wxGDIRefData
*wxPen::CreateGDIRefData() const
117 return new wxPenRefData();
120 wxGDIRefData
*wxPen::CloneGDIRefData(const wxGDIRefData
*data
) const
122 return new wxPenRefData(*wx_static_cast(const wxPenRefData
*, data
));