]>
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
);
37 bool operator == (const wxPen
& pen
) const;
38 bool operator != (const wxPen
& pen
) const;
40 void SetColour(const wxColour
&colour
);
41 void SetColour(unsigned char red
, unsigned char green
, unsigned char blue
);
42 void SetCap(int capStyle
);
43 void SetJoin(int joinStyle
);
44 void SetStyle(int style
);
45 void SetWidth(int width
);
46 void SetDashes(int number_of_dashes
, const wxDash
*dash
);
47 void SetStipple(const wxBitmap
& stipple
);
49 wxColour
&GetColour() const;
54 int GetDashes(wxDash
**ptr
) const;
55 int GetDashCount() const;
56 wxDash
* GetDash() const;
57 wxBitmap
*GetStipple() const;
59 bool Ok() const { return IsOk(); }
63 void* GetPixPattern() const;
67 virtual wxObjectRefData
*CreateRefData() const;
68 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
71 DECLARE_DYNAMIC_CLASS(wxPen
)
74 #endif // __WX_PEN_H__