]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/pen.h
changed wxDC::GetTextExtent() and related methods to take const wxFont pointer, for...
[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 );
d3c7fc99 28 virtual ~wxPen();
46562151 29
b7cacb43
VZ
30 bool Ok() const { return IsOk(); }
31 bool IsOk() const { return m_refData != NULL; }
46562151 32
f6bcfd97 33 bool operator == ( const wxPen& pen ) const;
c89f5c02 34 bool operator != (const wxPen& pen) const { return !(*this == pen); }
8bbe427f 35
c801d85f 36 void SetColour( const wxColour &colour );
1a1498c0 37 void SetColour( unsigned char red, unsigned char green, unsigned char blue );
c801d85f
KB
38 void SetCap( int capStyle );
39 void SetJoin( int joinStyle );
40 void SetStyle( int style );
41 void SetWidth( int width );
112c5086 42 void SetDashes( int number_of_dashes, const wxDash *dash );
46562151 43
8bbe427f
VZ
44 wxColour &GetColour() const;
45 int GetCap() const;
46 int GetJoin() const;
47 int GetStyle() const;
48 int GetWidth() const;
112c5086
RR
49 int GetDashes(wxDash **ptr) const;
50 int GetDashCount() const;
51 wxDash* GetDash() const;
8bbe427f 52
6f02a879 53protected:
c89f5c02
RR
54 // ref counting code
55 virtual wxObjectRefData *CreateRefData() const;
56 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
46562151 57
20e05ffb 58 DECLARE_DYNAMIC_CLASS(wxPen)
c801d85f
KB
59};
60
0416c418 61#endif // _WX_GTK_PEN_H_