]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/pen.h
Fixed a harmless warning about $d in sprintf and long argument
[wxWidgets.git] / include / wx / gtk1 / pen.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: pen.h
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
8bbe427f 7// Licence: wxWindows licence
c801d85f
KB
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
2eca425d
RL
24#include <gtk/gtk.h>
25
c801d85f
KB
26//-----------------------------------------------------------------------------
27// classes
28//-----------------------------------------------------------------------------
29
30class wxPen;
31
2eca425d
RL
32typedef wxInt8 wxDash;
33
34#if GTK_CHECK_VERSION(1,2,7)
35typedef gint8 wxGTKDash;
36#else
37typedef gchar wxGTKDash;
38#endif
112c5086 39
c801d85f
KB
40//-----------------------------------------------------------------------------
41// wxPen
42//-----------------------------------------------------------------------------
43
44class wxPen: public wxGDIObject
45{
20e05ffb 46public:
8bbe427f 47 wxPen();
c801d85f 48 wxPen( const wxColour &colour, int width, int style );
c801d85f 49 wxPen( const wxPen& pen );
8bbe427f 50 ~wxPen();
c801d85f
KB
51 wxPen& operator = ( const wxPen& pen );
52 bool operator == ( const wxPen& pen );
53 bool operator != ( const wxPen& pen );
8bbe427f 54
c801d85f 55 void SetColour( const wxColour &colour );
debe6624 56 void SetColour( int red, int green, int blue );
c801d85f
KB
57 void SetCap( int capStyle );
58 void SetJoin( int joinStyle );
59 void SetStyle( int style );
60 void SetWidth( int width );
112c5086
RR
61 void SetDashes( int number_of_dashes, const wxDash *dash );
62
8bbe427f
VZ
63 wxColour &GetColour() const;
64 int GetCap() const;
65 int GetJoin() const;
66 int GetStyle() const;
67 int GetWidth() const;
112c5086
RR
68 int GetDashes(wxDash **ptr) const;
69 int GetDashCount() const;
70 wxDash* GetDash() const;
71
8bbe427f
VZ
72 bool Ok() const;
73
74 void Unshare();
75
20e05ffb
RR
76private:
77 DECLARE_DYNAMIC_CLASS(wxPen)
c801d85f
KB
78};
79
80#endif // __GTKPENH__