]>
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 | |
c801d85f KB |
13 | #include "wx/gdiobj.h" |
14 | #include "wx/gdicmn.h" | |
15 | ||
2eca425d | 16 | typedef gint8 wxGTKDash; |
112c5086 | 17 | |
c801d85f KB |
18 | //----------------------------------------------------------------------------- |
19 | // wxPen | |
20 | //----------------------------------------------------------------------------- | |
21 | ||
20123d49 | 22 | class WXDLLIMPEXP_CORE wxPen: public wxGDIObject |
c801d85f | 23 | { |
20e05ffb | 24 | public: |
c89f5c02 | 25 | wxPen() { } |
46562151 | 26 | |
4f535231 | 27 | wxPen( const wxColour &colour, int width = 1, int style = wxSOLID ); |
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 ); |
c801d85f KB |
35 | void SetCap( int capStyle ); |
36 | void SetJoin( int joinStyle ); | |
37 | void SetStyle( int style ); | |
38 | void SetWidth( int width ); | |
112c5086 | 39 | void SetDashes( int number_of_dashes, const wxDash *dash ); |
46562151 | 40 | |
8bbe427f VZ |
41 | wxColour &GetColour() const; |
42 | int GetCap() const; | |
43 | int GetJoin() const; | |
44 | int GetStyle() const; | |
45 | int GetWidth() const; | |
112c5086 RR |
46 | int GetDashes(wxDash **ptr) const; |
47 | int GetDashCount() const; | |
48 | wxDash* GetDash() const; | |
8bbe427f | 49 | |
6f02a879 | 50 | protected: |
8f884a0d VZ |
51 | virtual wxGDIRefData *CreateGDIRefData() const; |
52 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
46562151 | 53 | |
20e05ffb | 54 | DECLARE_DYNAMIC_CLASS(wxPen) |
c801d85f KB |
55 | }; |
56 | ||
0416c418 | 57 | #endif // _WX_GTK_PEN_H_ |