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