]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/pen.h
add size parameter to the generic wxFileDialog ctor
[wxWidgets.git] / include / wx / gtk / pen.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
4f535231 2// Name: wx/gtk/pen.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
0416c418
PC
10#ifndef _WX_GTK_PEN_H_
11#define _WX_GTK_PEN_H_
c801d85f 12
2eca425d 13typedef gint8 wxGTKDash;
112c5086 14
c801d85f
KB
15//-----------------------------------------------------------------------------
16// wxPen
17//-----------------------------------------------------------------------------
18
82cddbd9 19class WXDLLIMPEXP_CORE wxPen: public wxPenBase
c801d85f 20{
20e05ffb 21public:
c89f5c02 22 wxPen() { }
46562151 23
82cddbd9 24 wxPen( const wxColour &colour, int width = 1, wxPenStyle style = wxPENSTYLE_SOLID );
ac3688c0
FM
25#if FUTURE_WXWIN_COMPATIBILITY_3_0
26 wxDEPRECATED_FUTURE( wxPen(const wxColour& col, int width, int style) );
82cddbd9
FM
27#endif
28
d3c7fc99 29 virtual ~wxPen();
46562151 30
8f884a0d
VZ
31 bool operator==(const wxPen& pen) const;
32 bool operator!=(const wxPen& pen) const { return !(*this == pen); }
8bbe427f 33
c801d85f 34 void SetColour( const wxColour &colour );
1a1498c0 35 void SetColour( unsigned char red, unsigned char green, unsigned char blue );
82cddbd9
FM
36 void SetCap( wxPenCap capStyle );
37 void SetJoin( wxPenJoin joinStyle );
38 void SetStyle( wxPenStyle style );
c801d85f 39 void SetWidth( int width );
112c5086 40 void SetDashes( int number_of_dashes, const wxDash *dash );
82cddbd9 41 void SetStipple(const wxBitmap& stipple);
46562151 42
231b9591 43 wxColour GetColour() const;
82cddbd9
FM
44 wxPenCap GetCap() const;
45 wxPenJoin GetJoin() const;
46 wxPenStyle GetStyle() const;
8bbe427f 47 int GetWidth() const;
112c5086
RR
48 int GetDashes(wxDash **ptr) const;
49 int GetDashCount() const;
50 wxDash* GetDash() const;
82cddbd9 51 wxBitmap *GetStipple() const;
8bbe427f 52
bc735a68
VZ
53#if FUTURE_WXWIN_COMPATIBILITY_3_0
54 wxDEPRECATED_FUTURE( void SetStyle(int style) )
55 { SetStyle((wxPenStyle)style); }
56#endif
57
6f02a879 58protected:
8f884a0d
VZ
59 virtual wxGDIRefData *CreateGDIRefData() const;
60 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
46562151 61
20e05ffb 62 DECLARE_DYNAMIC_CLASS(wxPen)
c801d85f
KB
63};
64
0416c418 65#endif // _WX_GTK_PEN_H_