]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/pen.h
Added graying out of menus and buttons
[wxWidgets.git] / include / wx / gtk1 / 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 wxString &colourName, int width, int style );
44 wxPen( const wxPen& pen );
45 wxPen( const wxPen* pen );
46 ~wxPen(void);
47 wxPen& operator = ( const wxPen& pen );
48 bool operator == ( const wxPen& pen );
49 bool operator != ( const wxPen& pen );
50
51 void SetColour( const wxColour &colour );
52 void SetColour( const wxString &colourName );
53 void SetColour( int red, int green, int blue );
54 void SetCap( int capStyle );
55 void SetJoin( int joinStyle );
56 void SetStyle( int style );
57 void SetWidth( int width );
58 wxColour &GetColour(void) const;
59 int GetCap(void) const;
60 int GetJoin(void) const;
61 int GetStyle(void) const;
62 int GetWidth(void) const;
63 bool Ok(void) const;
64
65 // no data :-)
66 };
67
68 #endif // __GTKPENH__