2815c444f2127c039cb02d80ed13767a8201a025
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_PEN_H_
11 #define _WX_GTK_PEN_H_
13 #include "wx/gdiobj.h"
14 #include "wx/gdicmn.h"
16 typedef gint8 wxGTKDash
;
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxPen
: public wxPenBase
27 wxPen( const wxColour
&colour
, int width
= 1, wxPenStyle style
= wxPENSTYLE_SOLID
);
28 #if WXWIN_COMPATIBILITY_2_8
29 wxDEPRECATED( wxPen(const wxColour
& col
, int width
, wxBrushStyle style
) );
34 bool operator==(const wxPen
& pen
) const;
35 bool operator!=(const wxPen
& pen
) const { return !(*this == pen
); }
37 void SetColour( const wxColour
&colour
);
38 void SetColour( unsigned char red
, unsigned char green
, unsigned char blue
);
39 void SetCap( wxPenCap capStyle
);
40 void SetJoin( wxPenJoin joinStyle
);
41 void SetStyle( wxPenStyle style
);
42 void SetWidth( int width
);
43 void SetDashes( int number_of_dashes
, const wxDash
*dash
);
44 void SetStipple(const wxBitmap
& stipple
);
46 wxColour
&GetColour() const;
47 wxPenCap
GetCap() const;
48 wxPenJoin
GetJoin() const;
49 wxPenStyle
GetStyle() const;
51 int GetDashes(wxDash
**ptr
) const;
52 int GetDashCount() const;
53 wxDash
* GetDash() const;
54 wxBitmap
*GetStipple() const;
57 virtual wxGDIRefData
*CreateGDIRefData() const;
58 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
60 DECLARE_DYNAMIC_CLASS(wxPen
)
63 #endif // _WX_GTK_PEN_H_