]>
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 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/object.h"
15 #include "wx/string.h"
16 #include "wx/gdiobj.h"
17 #include "wx/gdicmn.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 class WXDLLEXPORT wxBitmap
;
24 class WXDLLEXPORT wxPen
;
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 class WXDLLEXPORT wxPen
: public wxGDIObject
34 wxPen(const wxColour
&colour
, int width
= 1, int style
= wxSOLID
);
35 wxPen(const wxBitmap
& stipple
, int width
);
36 wxPen(const wxPen
& pen
);
38 wxPen
& operator = (const wxPen
& pen
);
39 bool operator == (const wxPen
& pen
) const;
40 bool operator != (const wxPen
& pen
) const;
42 void SetColour(const wxColour
&colour
);
43 void SetColour(unsigned char red
, unsigned char green
, unsigned char blue
);
44 void SetCap(int capStyle
);
45 void SetJoin(int joinStyle
);
46 void SetStyle(int style
);
47 void SetWidth(int width
);
48 void SetDashes(int number_of_dashes
, const wxDash
*dash
);
49 void SetStipple(const wxBitmap
& stipple
);
51 wxColour
&GetColour() const;
56 int GetDashes(wxDash
**ptr
) const;
57 int GetDashCount() const;
58 wxDash
* GetDash() const;
59 wxBitmap
*GetStipple() const;
64 void* GetPixPattern() const;
68 virtual wxObjectRefData
*CreateRefData() const;
69 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
72 DECLARE_DYNAMIC_CLASS(wxPen
)
75 #endif // __WX_PEN_H__