]>
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"
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
32 typedef wxInt8 wxDash
;
34 #if GTK_CHECK_VERSION(1,2,7)
35 typedef gint8 wxGTKDash
;
37 typedef gchar wxGTKDash
;
40 //-----------------------------------------------------------------------------
42 //-----------------------------------------------------------------------------
44 class wxPen
: public wxGDIObject
48 wxPen( const wxColour
&colour
, int width
, int style
);
49 wxPen( const wxPen
& pen
);
51 wxPen
& operator = ( const wxPen
& pen
);
52 bool operator == ( const wxPen
& pen
);
53 bool operator != ( const wxPen
& pen
);
55 void SetColour( const wxColour
&colour
);
56 void SetColour( int red
, int green
, int blue
);
57 void SetCap( int capStyle
);
58 void SetJoin( int joinStyle
);
59 void SetStyle( int style
);
60 void SetWidth( int width
);
61 void SetDashes( int number_of_dashes
, const wxDash
*dash
);
63 wxColour
&GetColour() const;
68 int GetDashes(wxDash
**ptr
) const;
69 int GetDashCount() const;
70 wxDash
* GetDash() const;
77 DECLARE_DYNAMIC_CLASS(wxPen
)