]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: pen.h | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
58614078 RR |
5 | // Id: $Id$ |
6 | // Copyright: (c) 1998 Robert Roebling | |
8bbe427f | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | ||
11 | #ifndef __GTKPENH__ | |
12 | #define __GTKPENH__ | |
13 | ||
14 | #ifdef __GNUG__ | |
15 | #pragma interface | |
16 | #endif | |
17 | ||
18 | #include "wx/defs.h" | |
19 | #include "wx/object.h" | |
20 | #include "wx/string.h" | |
21 | #include "wx/gdiobj.h" | |
22 | #include "wx/gdicmn.h" | |
23 | ||
24 | //----------------------------------------------------------------------------- | |
25 | // classes | |
26 | //----------------------------------------------------------------------------- | |
27 | ||
28 | class wxPen; | |
29 | ||
30 | //----------------------------------------------------------------------------- | |
31 | // wxPen | |
32 | //----------------------------------------------------------------------------- | |
33 | ||
34 | class wxPen: public wxGDIObject | |
35 | { | |
36 | DECLARE_DYNAMIC_CLASS(wxPen) | |
37 | ||
38 | public: | |
8bbe427f VZ |
39 | |
40 | wxPen(); | |
c801d85f | 41 | wxPen( const wxColour &colour, int width, int style ); |
c801d85f | 42 | wxPen( const wxPen& pen ); |
8bbe427f | 43 | ~wxPen(); |
c801d85f KB |
44 | wxPen& operator = ( const wxPen& pen ); |
45 | bool operator == ( const wxPen& pen ); | |
46 | bool operator != ( const wxPen& pen ); | |
8bbe427f | 47 | |
c801d85f | 48 | void SetColour( const wxColour &colour ); |
debe6624 | 49 | void SetColour( int red, int green, int blue ); |
c801d85f KB |
50 | void SetCap( int capStyle ); |
51 | void SetJoin( int joinStyle ); | |
52 | void SetStyle( int style ); | |
53 | void SetWidth( int width ); | |
8bbe427f VZ |
54 | wxColour &GetColour() const; |
55 | int GetCap() const; | |
56 | int GetJoin() const; | |
57 | int GetStyle() const; | |
58 | int GetWidth() const; | |
59 | bool Ok() const; | |
60 | ||
61 | void Unshare(); | |
62 | ||
c801d85f KB |
63 | // no data :-) |
64 | }; | |
65 | ||
66 | #endif // __GTKPENH__ |