]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mgl/pen.h
fixed memory leak in wxXmlResource introduced when fixing wxVector<> usage (patch...
[wxWidgets.git] / include / wx / mgl / pen.h
CommitLineData
32b8ec41 1/////////////////////////////////////////////////////////////////////////////
4f535231 2// Name: wx/mgl/pen.h
32b8ec41
VZ
3// Purpose:
4// Author: Vaclav Slavik
5// Id: $Id$
52750c2e 6// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
65571936 7// Licence: wxWindows licence
32b8ec41
VZ
8/////////////////////////////////////////////////////////////////////////////
9
32b8ec41
VZ
10#ifndef __WX_PEN_H__
11#define __WX_PEN_H__
12
32b8ec41
VZ
13#include "wx/defs.h"
14#include "wx/object.h"
15#include "wx/string.h"
16#include "wx/gdiobj.h"
17#include "wx/gdicmn.h"
18
19//-----------------------------------------------------------------------------
20// classes
21//-----------------------------------------------------------------------------
22
b5dbe15d
VS
23class WXDLLIMPEXP_FWD_CORE wxBitmap;
24class WXDLLIMPEXP_FWD_CORE wxPen;
32b8ec41
VZ
25
26//-----------------------------------------------------------------------------
27// wxPen
28//-----------------------------------------------------------------------------
29
8f884a0d 30class WXDLLEXPORT wxPen : public wxGDIObject
32b8ec41
VZ
31{
32public:
3cdd0895 33 wxPen() {}
4f535231 34 wxPen(const wxColour &colour, int width = 1, int style = wxSOLID);
32b8ec41 35 wxPen(const wxBitmap& stipple, int width);
d3c7fc99 36 virtual ~wxPen() {}
32b8ec41
VZ
37 bool operator == (const wxPen& pen) const;
38 bool operator != (const wxPen& pen) const;
39
40 void SetColour(const wxColour &colour);
1a1498c0 41 void SetColour(unsigned char red, unsigned char green, unsigned char blue);
32b8ec41
VZ
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);
46562151 48
32b8ec41
VZ
49 wxColour &GetColour() const;
50 int GetCap() const;
51 int GetJoin() const;
52 int GetStyle() const;
53 int GetWidth() const;
54 int GetDashes(wxDash **ptr) const;
55 int GetDashCount() const;
56 wxDash* GetDash() const;
57 wxBitmap *GetStipple() const;
46562151 58
32b8ec41
VZ
59 // implementation:
60 void* GetPixPattern() const;
61
6d7ee9e8 62protected:
8f884a0d
VZ
63 virtual wxGDIRefData *CreateGDIRefData() const;
64 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
6d7ee9e8 65
46562151 66private:
32b8ec41
VZ
67 DECLARE_DYNAMIC_CLASS(wxPen)
68};
69
70#endif // __WX_PEN_H__