1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPen class declaration
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DFB_PEN_H_
12 #define _WX_DFB_PEN_H_
15 #include "wx/object.h"
16 #include "wx/string.h"
17 #include "wx/gdiobj.h"
18 #include "wx/gdicmn.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
25 class WXDLLIMPEXP_FWD_CORE wxPen
;
27 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 class WXDLLIMPEXP_CORE wxPen
: public wxPenBase
35 wxPen(const wxColour
&colour
, int width
= 1, wxPenStyle style
= wxPENSTYLE_SOLID
);
36 #if FUTURE_WXWIN_COMPATIBILITY_3_0
37 wxDEPRECATED_FUTURE( wxPen(const wxColour
& col
, int width
, int style
) );
40 wxPen(const wxBitmap
& stipple
, int width
);
42 bool operator==(const wxPen
& pen
) const;
43 bool operator!=(const wxPen
& pen
) const { return !(*this == pen
); }
45 void SetColour(const wxColour
&colour
);
46 void SetColour(unsigned char red
, unsigned char green
, unsigned char blue
);
47 void SetCap(wxPenCap capStyle
);
48 void SetJoin(wxPenJoin joinStyle
);
49 void SetStyle(wxPenStyle style
);
50 void SetWidth(int width
);
51 void SetDashes(int number_of_dashes
, const wxDash
*dash
);
52 void SetStipple(const wxBitmap
& stipple
);
54 wxColour
&GetColour() const;
55 wxPenCap
GetCap() const;
56 wxPenJoin
GetJoin() const;
57 wxPenStyle
GetStyle() const;
59 int GetDashes(wxDash
**ptr
) const;
60 int GetDashCount() const;
61 wxDash
* GetDash() const;
62 wxBitmap
*GetStipple() const;
65 virtual wxGDIRefData
*CreateGDIRefData() const;
66 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
68 DECLARE_DYNAMIC_CLASS(wxPen
)
71 #endif // _WX_DFB_PEN_H_