]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/pen.h
ItemDeleted now has (parent, item)
[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
6// RCS-ID: $Id$
7// Copyright: (c) 2006 REA Elektronik GmbH
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_DFB_PEN_H_
12#define _WX_DFB_PEN_H_
13
14#include "wx/defs.h"
15#include "wx/object.h"
16#include "wx/string.h"
17#include "wx/gdiobj.h"
18#include "wx/gdicmn.h"
19
20//-----------------------------------------------------------------------------
21// classes
22//-----------------------------------------------------------------------------
23
b5dbe15d
VS
24class WXDLLIMPEXP_FWD_CORE wxBitmap;
25class WXDLLIMPEXP_FWD_CORE wxPen;
b3c86150
VS
26
27//-----------------------------------------------------------------------------
28// wxPen
29//-----------------------------------------------------------------------------
30
31class WXDLLIMPEXP_CORE wxPen: public wxGDIObject
32{
33public:
34 wxPen() {}
35 wxPen(const wxColour &colour, int width = 1, int style = wxSOLID);
36 wxPen(const wxBitmap& stipple, int width);
37
38 bool operator==(const wxPen& pen) const;
39 bool operator!=(const wxPen& pen) const { return !(*this == pen); }
40
41 void SetColour(const wxColour &colour);
42 void SetColour(unsigned char red, unsigned char green, unsigned char blue);
43 void SetCap(int capStyle);
44 void SetJoin(int joinStyle);
45 void SetStyle(int style);
46 void SetWidth(int width);
47 void SetDashes(int number_of_dashes, const wxDash *dash);
48 void SetStipple(const wxBitmap& stipple);
49
50 wxColour &GetColour() const;
51 int GetCap() const;
52 int GetJoin() const;
53 int GetStyle() const;
54 int GetWidth() const;
55 int GetDashes(wxDash **ptr) const;
56 int GetDashCount() const;
57 wxDash* GetDash() const;
58 wxBitmap *GetStipple() const;
59
b7cacb43
VZ
60 bool Ok() const { return IsOk(); }
61 bool IsOk() const;
b3c86150
VS
62
63protected:
64 // ref counting code
65 virtual wxObjectRefData *CreateRefData() const;
66 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
67
68 DECLARE_DYNAMIC_CLASS(wxPen)
69};
70
71#endif // _WX_DFB_PEN_H_