]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/pen.h
1. added range checks in wxGridStringTable
[wxWidgets.git] / include / wx / gtk / pen.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: pen.h
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
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
30typedef char wxDash;
31
32//-----------------------------------------------------------------------------
33// wxPen
34//-----------------------------------------------------------------------------
35
36class wxPen: public wxGDIObject
37{
38public:
39 wxPen();
40 wxPen( const wxColour &colour, int width, int style );
41 wxPen( const wxPen& pen );
42 ~wxPen();
43 wxPen& operator = ( const wxPen& pen );
44 bool operator == ( const wxPen& pen );
45 bool operator != ( const wxPen& pen );
46
47 void SetColour( const wxColour &colour );
48 void SetColour( int red, int green, int blue );
49 void SetCap( int capStyle );
50 void SetJoin( int joinStyle );
51 void SetStyle( int style );
52 void SetWidth( int width );
53 void SetDashes( int number_of_dashes, const wxDash *dash );
54
55 wxColour &GetColour() const;
56 int GetCap() const;
57 int GetJoin() const;
58 int GetStyle() const;
59 int GetWidth() const;
60 int GetDashes(wxDash **ptr) const;
61 int GetDashCount() const;
62 wxDash* GetDash() const;
63
64 bool Ok() const;
65
66 void Unshare();
67
68private:
69 DECLARE_DYNAMIC_CLASS(wxPen)
70};
71
72#endif // __GTKPENH__