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