]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/pen.h
wxFileName II. It actually works.
[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
8a667305 30#if defined(__WXGTK127__) || defined(__WXGTK20__)
2eca425d
RL
31typedef gint8 wxGTKDash;
32#else
33typedef gchar wxGTKDash;
34#endif
112c5086 35
c801d85f
KB
36//-----------------------------------------------------------------------------
37// wxPen
38//-----------------------------------------------------------------------------
39
40class wxPen: public wxGDIObject
41{
20e05ffb 42public:
8bbe427f 43 wxPen();
c801d85f 44 wxPen( const wxColour &colour, int width, int style );
c801d85f 45 wxPen( const wxPen& pen );
8bbe427f 46 ~wxPen();
c801d85f 47 wxPen& operator = ( const wxPen& pen );
f6bcfd97
BP
48 bool operator == ( const wxPen& pen ) const;
49 bool operator != ( const wxPen& pen ) const;
8bbe427f 50
c801d85f 51 void SetColour( const wxColour &colour );
debe6624 52 void SetColour( int red, int green, int blue );
c801d85f
KB
53 void SetCap( int capStyle );
54 void SetJoin( int joinStyle );
55 void SetStyle( int style );
56 void SetWidth( int width );
112c5086
RR
57 void SetDashes( int number_of_dashes, const wxDash *dash );
58
8bbe427f
VZ
59 wxColour &GetColour() const;
60 int GetCap() const;
61 int GetJoin() const;
62 int GetStyle() const;
63 int GetWidth() const;
112c5086
RR
64 int GetDashes(wxDash **ptr) const;
65 int GetDashCount() const;
66 wxDash* GetDash() const;
67
8bbe427f
VZ
68 bool Ok() const;
69
70 void Unshare();
71
20e05ffb
RR
72private:
73 DECLARE_DYNAMIC_CLASS(wxPen)
c801d85f
KB
74};
75
76#endif // __GTKPENH__