]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/pen.h
removed duplicate entries for UTF-16/32 (which are aliases for either LE or BE varian...
[wxWidgets.git] / include / wx / gtk / pen.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
4f535231 2// Name: wx/gtk/pen.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKPENH__
11#define __GTKPENH__
12
c801d85f
KB
13#include "wx/defs.h"
14#include "wx/object.h"
15#include "wx/string.h"
16#include "wx/gdiobj.h"
17#include "wx/gdicmn.h"
18
19//-----------------------------------------------------------------------------
20// classes
21//-----------------------------------------------------------------------------
22
20123d49 23class WXDLLIMPEXP_CORE wxPen;
c801d85f 24
2eca425d 25typedef gint8 wxGTKDash;
112c5086 26
c801d85f
KB
27//-----------------------------------------------------------------------------
28// wxPen
29//-----------------------------------------------------------------------------
30
20123d49 31class WXDLLIMPEXP_CORE wxPen: public wxGDIObject
c801d85f 32{
20e05ffb 33public:
c89f5c02 34 wxPen() { }
46562151 35
4f535231 36 wxPen( const wxColour &colour, int width = 1, int style = wxSOLID );
8bbe427f 37 ~wxPen();
46562151 38
d84afea9
GD
39 wxPen( const wxPen& pen )
40 : wxGDIObject()
41 { Ref(pen); }
c89f5c02 42 wxPen& operator = ( const wxPen& pen ) { Ref(pen); return *this; }
46562151 43
c89f5c02 44 bool Ok() const { return m_refData != NULL; }
46562151 45
f6bcfd97 46 bool operator == ( const wxPen& pen ) const;
c89f5c02 47 bool operator != (const wxPen& pen) const { return !(*this == pen); }
8bbe427f 48
c801d85f 49 void SetColour( const wxColour &colour );
1a1498c0 50 void SetColour( unsigned char red, unsigned char green, unsigned char blue );
c801d85f
KB
51 void SetCap( int capStyle );
52 void SetJoin( int joinStyle );
53 void SetStyle( int style );
54 void SetWidth( int width );
112c5086 55 void SetDashes( int number_of_dashes, const wxDash *dash );
46562151 56
8bbe427f
VZ
57 wxColour &GetColour() const;
58 int GetCap() const;
59 int GetJoin() const;
60 int GetStyle() const;
61 int GetWidth() const;
112c5086
RR
62 int GetDashes(wxDash **ptr) const;
63 int GetDashCount() const;
64 wxDash* GetDash() const;
8bbe427f 65
46562151 66private:
c89f5c02
RR
67 // ref counting code
68 virtual wxObjectRefData *CreateRefData() const;
69 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
46562151 70
20e05ffb 71 DECLARE_DYNAMIC_CLASS(wxPen)
c801d85f
KB
72};
73
74#endif // __GTKPENH__