]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/pen.h
Use wxGetTranslation() instead of _() in the public headers.
[wxWidgets.git] / include / wx / x11 / pen.h
CommitLineData
83df96d6 1/////////////////////////////////////////////////////////////////////////////
46562151 2// Name: wx/x11/pen.h
83df96d6
JS
3// Purpose: wxPen class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
83df96d6 7// Copyright: (c) Julian Smart
46562151 8// Licence: wxWindows licence
83df96d6
JS
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_PEN_H_
12#define _WX_PEN_H_
13
69c44812 14#include "wx/gdicmn.h"
83df96d6 15#include "wx/gdiobj.h"
83df96d6 16
74dc5eb6
RR
17//-----------------------------------------------------------------------------
18// classes
19//-----------------------------------------------------------------------------
83df96d6 20
b5dbe15d
VS
21class WXDLLIMPEXP_FWD_CORE wxPen;
22class WXDLLIMPEXP_FWD_CORE wxColour;
23class WXDLLIMPEXP_FWD_CORE wxBitmap;
83df96d6 24
74dc5eb6 25typedef char wxX11Dash;
83df96d6 26
74dc5eb6
RR
27//-----------------------------------------------------------------------------
28// wxPen
29//-----------------------------------------------------------------------------
83df96d6 30
82cddbd9 31class WXDLLIMPEXP_CORE wxPen: public wxPenBase
83df96d6 32{
83df96d6 33public:
74dc5eb6 34 wxPen() { }
46562151 35
82cddbd9 36 wxPen( const wxColour &colour, int width = 1, wxPenStyle style = wxPENSTYLE_SOLID );
ac3688c0
FM
37#if FUTURE_WXWIN_COMPATIBILITY_3_0
38 wxDEPRECATED_FUTURE( wxPen(const wxColour& col, int width, int style) );
82cddbd9
FM
39#endif
40
69c44812 41 wxPen( const wxBitmap &stipple, int width );
d3c7fc99 42 virtual ~wxPen();
46562151 43
74dc5eb6
RR
44 bool operator == ( const wxPen& pen ) const;
45 bool operator != (const wxPen& pen) const { return !(*this == pen); }
46
47 void SetColour( const wxColour &colour );
1a1498c0 48 void SetColour( unsigned char red, unsigned char green, unsigned char blue );
82cddbd9
FM
49 void SetCap( wxPenCap capStyle );
50 void SetJoin( wxPenJoin joinStyle );
51 void SetStyle( wxPenStyle style );
74dc5eb6
RR
52 void SetWidth( int width );
53 void SetDashes( int number_of_dashes, const wxDash *dash );
2051c39f 54 void SetStipple( const wxBitmap& stipple );
69c44812 55
231b9591 56 wxColour GetColour() const;
82cddbd9
FM
57 wxPenCap GetCap() const;
58 wxPenJoin GetJoin() const;
59 wxPenStyle GetStyle() const;
74dc5eb6
RR
60 int GetWidth() const;
61 int GetDashes(wxDash **ptr) const;
62 int GetDashCount() const;
63 wxDash* GetDash() const;
69c44812 64 wxBitmap* GetStipple() const;
74dc5eb6 65
bc735a68
VZ
66#if FUTURE_WXWIN_COMPATIBILITY_3_0
67 wxDEPRECATED_FUTURE( void SetStyle(int style) )
68 { SetStyle((wxPenStyle)style); }
69#endif
70
6f02a879 71protected:
8f884a0d
VZ
72 virtual wxGDIRefData *CreateGDIRefData() const;
73 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
46562151 74
74dc5eb6 75 DECLARE_DYNAMIC_CLASS(wxPen)
83df96d6
JS
76};
77
8f884a0d 78#endif // _WX_PEN_H_