]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/pen.h
Some but not all compile fixes for typetest (VC++ 1.5); added datetime.cpp
[wxWidgets.git] / include / wx / gtk / 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{
20e05ffb 38public:
8bbe427f 39 wxPen();
c801d85f 40 wxPen( const wxColour &colour, int width, int style );
c801d85f 41 wxPen( const wxPen& pen );
8bbe427f 42 ~wxPen();
c801d85f
KB
43 wxPen& operator = ( const wxPen& pen );
44 bool operator == ( const wxPen& pen );
45 bool operator != ( const wxPen& pen );
8bbe427f 46
c801d85f 47 void SetColour( const wxColour &colour );
debe6624 48 void SetColour( int red, int green, int blue );
c801d85f
KB
49 void SetCap( int capStyle );
50 void SetJoin( int joinStyle );
51 void SetStyle( int style );
52 void SetWidth( int width );
112c5086
RR
53 void SetDashes( int number_of_dashes, const wxDash *dash );
54
8bbe427f
VZ
55 wxColour &GetColour() const;
56 int GetCap() const;
57 int GetJoin() const;
58 int GetStyle() const;
59 int GetWidth() const;
112c5086
RR
60 int GetDashes(wxDash **ptr) const;
61 int GetDashCount() const;
62 wxDash* GetDash() const;
63
8bbe427f
VZ
64 bool Ok() const;
65
66 void Unshare();
67
20e05ffb
RR
68private:
69 DECLARE_DYNAMIC_CLASS(wxPen)
c801d85f
KB
70};
71
72#endif // __GTKPENH__