]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/pen.h
20d09c2ed4c541d9a72cb7782f49b8705fa64d74
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
19 #include "wx/object.h"
20 #include "wx/string.h"
21 #include "wx/gdiobj.h"
22 #include "wx/gdicmn.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
30 #if defined(__WXGTK127__) || defined(__WXGTK20__)
31 typedef gint8 wxGTKDash
;
33 typedef gchar wxGTKDash
;
36 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
40 class wxPen
: public wxGDIObject
44 wxPen( const wxColour
&colour
, int width
, int style
);
45 wxPen( const wxPen
& pen
);
47 wxPen
& operator = ( const wxPen
& pen
);
48 bool operator == ( const wxPen
& pen
) const;
49 bool operator != ( const wxPen
& pen
) const;
51 void SetColour( const wxColour
&colour
);
52 void SetColour( int red
, int green
, int blue
);
53 void SetCap( int capStyle
);
54 void SetJoin( int joinStyle
);
55 void SetStyle( int style
);
56 void SetWidth( int width
);
57 void SetDashes( int number_of_dashes
, const wxDash
*dash
);
59 wxColour
&GetColour() const;
64 int GetDashes(wxDash
**ptr
) const;
65 int GetDashCount() const;
66 wxDash
* GetDash() const;
73 DECLARE_DYNAMIC_CLASS(wxPen
)