]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/pen.h
Implement wxSetCusorEvent better than before.
[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
0416c418
PC
10#ifndef _WX_GTK_PEN_H_
11#define _WX_GTK_PEN_H_
c801d85f 12
c801d85f
KB
13#include "wx/gdiobj.h"
14#include "wx/gdicmn.h"
15
2eca425d 16typedef gint8 wxGTKDash;
112c5086 17
c801d85f
KB
18//-----------------------------------------------------------------------------
19// wxPen
20//-----------------------------------------------------------------------------
21
20123d49 22class WXDLLIMPEXP_CORE wxPen: public wxGDIObject
c801d85f 23{
20e05ffb 24public:
c89f5c02 25 wxPen() { }
46562151 26
4f535231 27 wxPen( const wxColour &colour, int width = 1, int style = wxSOLID );
8bbe427f 28 ~wxPen();
46562151 29
c89f5c02 30 bool Ok() const { return m_refData != NULL; }
46562151 31
f6bcfd97 32 bool operator == ( const wxPen& pen ) const;
c89f5c02 33 bool operator != (const wxPen& pen) const { return !(*this == pen); }
8bbe427f 34
c801d85f 35 void SetColour( const wxColour &colour );
1a1498c0 36 void SetColour( unsigned char red, unsigned char green, unsigned char blue );
c801d85f
KB
37 void SetCap( int capStyle );
38 void SetJoin( int joinStyle );
39 void SetStyle( int style );
40 void SetWidth( int width );
112c5086 41 void SetDashes( int number_of_dashes, const wxDash *dash );
46562151 42
8bbe427f
VZ
43 wxColour &GetColour() const;
44 int GetCap() const;
45 int GetJoin() const;
46 int GetStyle() const;
47 int GetWidth() const;
112c5086
RR
48 int GetDashes(wxDash **ptr) const;
49 int GetDashCount() const;
50 wxDash* GetDash() const;
8bbe427f 51
6f02a879 52protected:
c89f5c02
RR
53 // ref counting code
54 virtual wxObjectRefData *CreateRefData() const;
55 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
46562151 56
20e05ffb 57 DECLARE_DYNAMIC_CLASS(wxPen)
c801d85f
KB
58};
59
0416c418 60#endif // _WX_GTK_PEN_H_