1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/object.h"
15 #include "wx/string.h"
16 #include "wx/gdiobj.h"
17 #include "wx/gdicmn.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
24 class WXDLLIMPEXP_FWD_CORE wxPen
;
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 class WXDLLIMPEXP_CORE wxPen
: public wxPenBase
34 wxPen(const wxColour
&colour
, int width
= 1, wxPenStyle style
= wxPENSTYLE_SOLID
);
35 #if FUTURE_WXWIN_COMPATIBILITY_3_0
36 wxDEPRECATED_FUTURE( wxPen(const wxColour
& col
, int width
, int style
) );
39 wxPen(const wxBitmap
& stipple
, int width
);
41 bool operator == (const wxPen
& pen
) const;
42 bool operator != (const wxPen
& pen
) const;
44 void SetColour(const wxColour
&colour
);
45 void SetColour(unsigned char red
, unsigned char green
, unsigned char blue
);
46 void SetCap(wxPenCap capStyle
);
47 void SetJoin(wxPenJoin joinStyle
);
48 void SetStyle(wxPenStyle style
);
49 void SetWidth(int width
);
50 void SetDashes(int number_of_dashes
, const wxDash
*dash
);
51 void SetStipple(const wxBitmap
& stipple
);
53 wxColour
GetColour() const;
54 wxPenCap
GetCap() const;
55 wxPenJoin
GetJoin() const;
56 wxPenStyle
GetStyle() const;
58 int GetDashes(wxDash
**ptr
) const;
59 int GetDashCount() const;
60 wxDash
* GetDash() const;
61 wxBitmap
*GetStipple() const;
63 #if FUTURE_WXWIN_COMPATIBILITY_3_0
64 wxDEPRECATED_FUTURE( void SetStyle(int style
) )
65 { SetStyle((wxPenStyle
)style
); }
69 void* GetPixPattern() const;
72 virtual wxGDIRefData
*CreateGDIRefData() const;
73 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
76 DECLARE_DYNAMIC_CLASS(wxPen
)
79 #endif // __WX_PEN_H__