]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/pen.h
1. Split{Horizontal|Vertical} now accept negative args to set the
[wxWidgets.git] / include / wx / gtk / pen.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: pen.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // Id:
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11
12 #ifndef __GTKPENH__
13 #define __GTKPENH__
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "wx/defs.h"
20 #include "wx/object.h"
21 #include "wx/string.h"
22 #include "wx/gdiobj.h"
23 #include "wx/gdicmn.h"
24
25 //-----------------------------------------------------------------------------
26 // classes
27 //-----------------------------------------------------------------------------
28
29 class wxPen;
30
31 //-----------------------------------------------------------------------------
32 // wxPen
33 //-----------------------------------------------------------------------------
34
35 class wxPen: public wxGDIObject
36 {
37 DECLARE_DYNAMIC_CLASS(wxPen)
38
39 public:
40
41 wxPen(void);
42 wxPen( const wxColour &colour, int width, int style );
43 wxPen( const wxPen& pen );
44 wxPen( const wxPen* pen );
45 ~wxPen(void);
46 wxPen& operator = ( const wxPen& pen );
47 bool operator == ( const wxPen& pen );
48 bool operator != ( const wxPen& pen );
49
50 void SetColour( const wxColour &colour );
51 void SetColour( int red, int green, int blue );
52 void SetCap( int capStyle );
53 void SetJoin( int joinStyle );
54 void SetStyle( int style );
55 void SetWidth( int width );
56 wxColour &GetColour(void) const;
57 int GetCap(void) const;
58 int GetJoin(void) const;
59 int GetStyle(void) const;
60 int GetWidth(void) const;
61 bool Ok(void) const;
62
63 void Unshare(void);
64
65 // no data :-)
66 };
67
68 #endif // __GTKPENH__