]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/pen.h
warning fix
[wxWidgets.git] / include / wx / gtk1 / pen.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: pen.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
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 #if defined(__WXGTK127__) || defined(__WXGTK20__)
31 typedef gint8 wxGTKDash;
32 #else
33 typedef gchar wxGTKDash;
34 #endif
35
36 //-----------------------------------------------------------------------------
37 // wxPen
38 //-----------------------------------------------------------------------------
39
40 class wxPen: public wxGDIObject
41 {
42 public:
43 wxPen();
44 wxPen( const wxColour &colour, int width, int style );
45 wxPen( const wxPen& pen );
46 ~wxPen();
47 wxPen& operator = ( const wxPen& pen );
48 bool operator == ( const wxPen& pen ) const;
49 bool operator != ( const wxPen& pen ) const;
50
51 void SetColour( const wxColour &colour );
52 void SetColour( int red, int green, int blue );
53 void SetCap( int capStyle );
54 void SetJoin( int joinStyle );
55 void SetStyle( int style );
56 void SetWidth( int width );
57 void SetDashes( int number_of_dashes, const wxDash *dash );
58
59 wxColour &GetColour() const;
60 int GetCap() const;
61 int GetJoin() const;
62 int GetStyle() const;
63 int GetWidth() const;
64 int GetDashes(wxDash **ptr) const;
65 int GetDashCount() const;
66 wxDash* GetDash() const;
67
68 bool Ok() const;
69
70 void Unshare();
71
72 private:
73 DECLARE_DYNAMIC_CLASS(wxPen)
74 };
75
76 #endif // __GTKPENH__