]>
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 Ok() const { return IsOk(); }
31 bool IsOk() const { return m_refData
!= NULL
; }
33 bool operator == ( const wxPen
& pen
) const;
34 bool operator != (const wxPen
& pen
) const { return !(*this == pen
); }
36 void SetColour( const wxColour
&colour
);
37 void SetColour( unsigned char red
, unsigned char green
, unsigned char blue
);
38 void SetCap( int capStyle
);
39 void SetJoin( int joinStyle
);
40 void SetStyle( int style
);
41 void SetWidth( int width
);
42 void SetDashes( int number_of_dashes
, const wxDash
*dash
);
44 wxColour
&GetColour() const;
49 int GetDashes(wxDash
**ptr
) const;
50 int GetDashCount() const;
51 wxDash
* GetDash() const;
55 virtual wxObjectRefData
*CreateRefData() const;
56 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
58 DECLARE_DYNAMIC_CLASS(wxPen
)
61 #endif // _WX_GTK_PEN_H_