]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/pen.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / dfb / pen.h
CommitLineData
b3c86150
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/dfb/pen.h
3// Purpose: wxPen class declaration
4// Author: Vaclav Slavik
5// Created: 2006-08-04
b3c86150
VS
6// Copyright: (c) 2006 REA Elektronik GmbH
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_DFB_PEN_H_
11#define _WX_DFB_PEN_H_
12
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;
b3c86150
VS
25
26//-----------------------------------------------------------------------------
27// wxPen
28//-----------------------------------------------------------------------------
29
82cddbd9 30class WXDLLIMPEXP_CORE wxPen: public wxPenBase
b3c86150
VS
31{
32public:
33 wxPen() {}
82cddbd9 34 wxPen(const wxColour &colour, int width = 1, wxPenStyle style = wxPENSTYLE_SOLID);
ac3688c0
FM
35#if FUTURE_WXWIN_COMPATIBILITY_3_0
36 wxDEPRECATED_FUTURE( wxPen(const wxColour& col, int width, int style) );
82cddbd9
FM
37#endif
38
b3c86150
VS
39 wxPen(const wxBitmap& stipple, int width);
40
41 bool operator==(const wxPen& pen) const;
42 bool operator!=(const wxPen& pen) const { return !(*this == pen); }
43
44 void SetColour(const wxColour &colour);
45 void SetColour(unsigned char red, unsigned char green, unsigned char blue);
82cddbd9
FM
46 void SetCap(wxPenCap capStyle);
47 void SetJoin(wxPenJoin joinStyle);
48 void SetStyle(wxPenStyle style);
b3c86150
VS
49 void SetWidth(int width);
50 void SetDashes(int number_of_dashes, const wxDash *dash);
51 void SetStipple(const wxBitmap& stipple);
52
231b9591 53 wxColour GetColour() const;
82cddbd9
FM
54 wxPenCap GetCap() const;
55 wxPenJoin GetJoin() const;
56 wxPenStyle GetStyle() const;
b3c86150
VS
57 int GetWidth() const;
58 int GetDashes(wxDash **ptr) const;
59 int GetDashCount() const;
60 wxDash* GetDash() const;
61 wxBitmap *GetStipple() const;
62
bc735a68
VZ
63#if FUTURE_WXWIN_COMPATIBILITY_3_0
64 wxDEPRECATED_FUTURE( void SetStyle(int style) )
65 { SetStyle((wxPenStyle)style); }
66#endif
67
b3c86150 68protected:
8f884a0d
VZ
69 virtual wxGDIRefData *CreateGDIRefData() const;
70 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
b3c86150
VS
71
72 DECLARE_DYNAMIC_CLASS(wxPen)
73};
74
75#endif // _WX_DFB_PEN_H_