1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPen class declaration
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2006 REA Elektronik GmbH
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_DFB_PEN_H_
11 #define _WX_DFB_PEN_H_
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 { return !(*this == pen
); }
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 virtual wxGDIRefData
*CreateGDIRefData() const;
70 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
72 DECLARE_DYNAMIC_CLASS(wxPen
)
75 #endif // _WX_DFB_PEN_H_