]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/pen.h
Forgot to add the files.
[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
24//-----------------------------------------------------------------------------
25// classes
26//-----------------------------------------------------------------------------
27
28class wxPen;
29
112c5086
RR
30typedef char wxDash;
31
c801d85f
KB
32//-----------------------------------------------------------------------------
33// wxPen
34//-----------------------------------------------------------------------------
35
36class wxPen: public wxGDIObject
37{
38 DECLARE_DYNAMIC_CLASS(wxPen)
39
40 public:
8bbe427f
VZ
41
42 wxPen();
c801d85f 43 wxPen( const wxColour &colour, int width, int style );
c801d85f 44 wxPen( const wxPen& pen );
8bbe427f 45 ~wxPen();
c801d85f
KB
46 wxPen& operator = ( const wxPen& pen );
47 bool operator == ( const wxPen& pen );
48 bool operator != ( const wxPen& pen );
8bbe427f 49
c801d85f 50 void SetColour( const wxColour &colour );
debe6624 51 void SetColour( int red, int green, int blue );
c801d85f
KB
52 void SetCap( int capStyle );
53 void SetJoin( int joinStyle );
54 void SetStyle( int style );
55 void SetWidth( int width );
112c5086
RR
56 void SetDashes( int number_of_dashes, const wxDash *dash );
57
8bbe427f
VZ
58 wxColour &GetColour() const;
59 int GetCap() const;
60 int GetJoin() const;
61 int GetStyle() const;
62 int GetWidth() const;
112c5086
RR
63 int GetDashes(wxDash **ptr) const;
64 int GetDashCount() const;
65 wxDash* GetDash() const;
66
8bbe427f
VZ
67 bool Ok() const;
68
69 void Unshare();
70
c801d85f
KB
71 // no data :-)
72};
73
74#endif // __GTKPENH__