]>
Commit | Line | Data |
---|---|---|
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 | 13 | typedef gint8 wxGTKDash; |
112c5086 | 14 | |
c801d85f KB |
15 | //----------------------------------------------------------------------------- |
16 | // wxPen | |
17 | //----------------------------------------------------------------------------- | |
18 | ||
82cddbd9 | 19 | class WXDLLIMPEXP_CORE wxPen: public wxPenBase |
c801d85f | 20 | { |
20e05ffb | 21 | public: |
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 | |
8bbe427f | 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 | |
6f02a879 | 53 | protected: |
8f884a0d VZ |
54 | virtual wxGDIRefData *CreateGDIRefData() const; |
55 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
46562151 | 56 | |
20e05ffb | 57 | DECLARE_DYNAMIC_CLASS(wxPen) |
c801d85f KB |
58 | }; |
59 | ||
0416c418 | 60 | #endif // _WX_GTK_PEN_H_ |