]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/pen.h
Chnaged includes to work without precompiled headers
[wxWidgets.git] / include / wx / gtk1 / pen.h
CommitLineData
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
236a9de3 24#include <gtk/gtk.h> // only needed for wxGTKDash, should it go elsewhere..
2eca425d 25
c801d85f
KB
26//-----------------------------------------------------------------------------
27// classes
28//-----------------------------------------------------------------------------
29
30class wxPen;
31
2eca425d
RL
32#if GTK_CHECK_VERSION(1,2,7)
33typedef gint8 wxGTKDash;
34#else
35typedef gchar wxGTKDash;
36#endif
112c5086 37
c801d85f
KB
38//-----------------------------------------------------------------------------
39// wxPen
40//-----------------------------------------------------------------------------
41
42class wxPen: public wxGDIObject
43{
20e05ffb 44public:
8bbe427f 45 wxPen();
c801d85f 46 wxPen( const wxColour &colour, int width, int style );
c801d85f 47 wxPen( const wxPen& pen );
8bbe427f 48 ~wxPen();
c801d85f
KB
49 wxPen& operator = ( const wxPen& pen );
50 bool operator == ( const wxPen& pen );
51 bool operator != ( const wxPen& pen );
8bbe427f 52
c801d85f 53 void SetColour( const wxColour &colour );
debe6624 54 void SetColour( int red, int green, int blue );
c801d85f
KB
55 void SetCap( int capStyle );
56 void SetJoin( int joinStyle );
57 void SetStyle( int style );
58 void SetWidth( int width );
112c5086
RR
59 void SetDashes( int number_of_dashes, const wxDash *dash );
60
8bbe427f
VZ
61 wxColour &GetColour() const;
62 int GetCap() const;
63 int GetJoin() const;
64 int GetStyle() const;
65 int GetWidth() const;
112c5086
RR
66 int GetDashes(wxDash **ptr) const;
67 int GetDashCount() const;
68 wxDash* GetDash() const;
69
8bbe427f
VZ
70 bool Ok() const;
71
72 void Unshare();
73
20e05ffb
RR
74private:
75 DECLARE_DYNAMIC_CLASS(wxPen)
c801d85f
KB
76};
77
78#endif // __GTKPENH__