]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/pen.h
Add MacHideApp
[wxWidgets.git] / include / wx / gtk / pen.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/pen.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GTK_PEN_H_
11 #define _WX_GTK_PEN_H_
12
13 #include "wx/gdiobj.h"
14 #include "wx/gdicmn.h"
15
16 typedef gint8 wxGTKDash;
17
18 //-----------------------------------------------------------------------------
19 // wxPen
20 //-----------------------------------------------------------------------------
21
22 class WXDLLIMPEXP_CORE wxPen: public wxGDIObject
23 {
24 public:
25 wxPen() { }
26
27 wxPen( const wxColour &colour, int width = 1, int style = wxSOLID );
28 virtual ~wxPen();
29
30 bool operator==(const wxPen& pen) const;
31 bool operator!=(const wxPen& pen) const { return !(*this == pen); }
32
33 void SetColour( const wxColour &colour );
34 void SetColour( unsigned char red, unsigned char green, unsigned char blue );
35 void SetCap( int capStyle );
36 void SetJoin( int joinStyle );
37 void SetStyle( int style );
38 void SetWidth( int width );
39 void SetDashes( int number_of_dashes, const wxDash *dash );
40
41 wxColour &GetColour() const;
42 int GetCap() const;
43 int GetJoin() const;
44 int GetStyle() const;
45 int GetWidth() const;
46 int GetDashes(wxDash **ptr) const;
47 int GetDashCount() const;
48 wxDash* GetDash() const;
49
50 protected:
51 virtual wxGDIRefData *CreateGDIRefData() const;
52 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
53
54 DECLARE_DYNAMIC_CLASS(wxPen)
55 };
56
57 #endif // _WX_GTK_PEN_H_