]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/pen.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
15 #pragma interface "pen.h"
19 #include "wx/object.h"
20 #include "wx/string.h"
21 #include "wx/gdiobj.h"
22 #include "wx/gdicmn.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 class WXDLLEXPORT wxBitmap
;
29 class WXDLLEXPORT wxPen
;
31 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
35 class WXDLLEXPORT wxPen
: public wxGDIObject
39 wxPen(const wxColour
&colour
, int width
, int style
);
40 wxPen(const wxBitmap
& stipple
, int width
);
41 wxPen(const wxPen
& pen
);
43 wxPen
& operator = (const wxPen
& pen
);
44 bool operator == (const wxPen
& pen
) const;
45 bool operator != (const wxPen
& pen
) const;
47 void SetColour(const wxColour
&colour
);
48 void SetColour(int red
, int green
, int blue
);
49 void SetCap(int capStyle
);
50 void SetJoin(int joinStyle
);
51 void SetStyle(int style
);
52 void SetWidth(int width
);
53 void SetDashes(int number_of_dashes
, const wxDash
*dash
);
54 void SetStipple(const wxBitmap
& stipple
);
56 wxColour
&GetColour() const;
61 int GetDashes(wxDash
**ptr
) const;
62 int GetDashCount() const;
63 wxDash
* GetDash() const;
64 wxBitmap
*GetStipple() const;
69 void* GetPixPattern() const;
73 virtual wxObjectRefData
*CreateRefData() const;
74 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
77 DECLARE_DYNAMIC_CLASS(wxPen
)
80 #endif // __WX_PEN_H__