]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/pen.h
Added WXHTREEITEM
[wxWidgets.git] / include / wx / gtk / pen.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: pen.h
3// Purpose:
4// Author: Robert Roebling
5// Created: 01/02/97
6// Id:
7// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11
12#ifndef __GTKPENH__
13#define __GTKPENH__
14
15#ifdef __GNUG__
16#pragma interface
17#endif
18
19#include "wx/defs.h"
20#include "wx/object.h"
21#include "wx/string.h"
22#include "wx/gdiobj.h"
23#include "wx/gdicmn.h"
24
25//-----------------------------------------------------------------------------
26// classes
27//-----------------------------------------------------------------------------
28
29class wxPen;
30
31//-----------------------------------------------------------------------------
32// wxPen
33//-----------------------------------------------------------------------------
34
35class wxPen: public wxGDIObject
36{
37 DECLARE_DYNAMIC_CLASS(wxPen)
38
39 public:
40
41 wxPen(void);
42 wxPen( const wxColour &colour, int width, int style );
c801d85f
KB
43 wxPen( const wxPen& pen );
44 wxPen( const wxPen* pen );
45 ~wxPen(void);
46 wxPen& operator = ( const wxPen& pen );
47 bool operator == ( const wxPen& pen );
48 bool operator != ( const wxPen& pen );
49
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 );
56 wxColour &GetColour(void) const;
57 int GetCap(void) const;
58 int GetJoin(void) const;
59 int GetStyle(void) const;
60 int GetWidth(void) const;
61 bool Ok(void) const;
62
e55ad60e
RR
63 void Unshare(void);
64
c801d85f
KB
65 // no data :-)
66};
67
68#endif // __GTKPENH__