]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/pen.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
10 #define _WX_GTK_PEN_H_
12 typedef signed char wxGTKDash
;
14 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxPen
: public wxPenBase
23 wxPen( const wxColour
&colour
, int width
= 1, wxPenStyle style
= wxPENSTYLE_SOLID
);
24 #if FUTURE_WXWIN_COMPATIBILITY_3_0
25 wxDEPRECATED_FUTURE( wxPen(const wxColour
& col
, int width
, int style
) );
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( wxPenCap capStyle
);
36 void SetJoin( wxPenJoin joinStyle
);
37 void SetStyle( wxPenStyle style
);
38 void SetWidth( int width
);
39 void SetDashes( int number_of_dashes
, const wxDash
*dash
);
40 void SetStipple(const wxBitmap
& stipple
);
42 wxColour
GetColour() const;
43 wxPenCap
GetCap() const;
44 wxPenJoin
GetJoin() const;
45 wxPenStyle
GetStyle() const;
47 int GetDashes(wxDash
**ptr
) const;
48 int GetDashCount() const;
49 wxDash
* GetDash() const;
50 wxBitmap
*GetStipple() const;
52 #if FUTURE_WXWIN_COMPATIBILITY_3_0
53 wxDEPRECATED_FUTURE( void SetStyle(int style
) )
54 { SetStyle((wxPenStyle
)style
); }
58 virtual wxGDIRefData
*CreateGDIRefData() const;
59 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
61 DECLARE_DYNAMIC_CLASS(wxPen
)
64 #endif // _WX_GTK_PEN_H_