]>
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 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_PEN_H_
11 #define _WX_GTK_PEN_H_
13 #include "wx/gdiobj.h"
14 #include "wx/gdicmn.h"
16 typedef gint8 wxGTKDash
;
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxPen
: public wxGDIObject
27 wxPen( const wxColour
&colour
, int width
= 1, int style
= wxSOLID
);
30 bool operator==(const wxPen
& pen
) const;
31 bool operator!=(const wxPen
& pen
) const { return !(*this == pen
); }
33 void SetColour( const wxColour
&colour
);
34 void SetColour( unsigned char red
, unsigned char green
, unsigned char blue
);
35 void SetCap( int capStyle
);
36 void SetJoin( int joinStyle
);
37 void SetStyle( int style
);
38 void SetWidth( int width
);
39 void SetDashes( int number_of_dashes
, const wxDash
*dash
);
41 wxColour
&GetColour() const;
46 int GetDashes(wxDash
**ptr
) const;
47 int GetDashCount() const;
48 wxDash
* GetDash() const;
51 virtual wxGDIRefData
*CreateGDIRefData() const;
52 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
54 DECLARE_DYNAMIC_CLASS(wxPen
)
57 #endif // _WX_GTK_PEN_H_