]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/pen.h
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 #include <gtk/gtk.h> // only needed for wxGTKDash, should it go elsewhere..
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
32 #if GTK_CHECK_VERSION(1,2,7)
33 typedef gint8 wxGTKDash
;
35 typedef gchar wxGTKDash
;
38 //-----------------------------------------------------------------------------
40 //-----------------------------------------------------------------------------
42 class wxPen
: public wxGDIObject
46 wxPen( const wxColour
&colour
, int width
, int style
);
47 wxPen( const wxPen
& pen
);
49 wxPen
& operator = ( const wxPen
& pen
);
50 bool operator == ( const wxPen
& pen
);
51 bool operator != ( const wxPen
& pen
);
53 void SetColour( const wxColour
&colour
);
54 void SetColour( int red
, int green
, int blue
);
55 void SetCap( int capStyle
);
56 void SetJoin( int joinStyle
);
57 void SetStyle( int style
);
58 void SetWidth( int width
);
59 void SetDashes( int number_of_dashes
, const wxDash
*dash
);
61 wxColour
&GetColour() const;
66 int GetDashes(wxDash
**ptr
) const;
67 int GetDashCount() const;
68 wxDash
* GetDash() const;
75 DECLARE_DYNAMIC_CLASS(wxPen
)