X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/112c5086e85454b320cdb45f2e16dc5f34e8b9d8..999e841c9e389782e3e5a473256d2da811a414f5:/include/wx/gtk1/pen.h diff --git a/include/wx/gtk1/pen.h b/include/wx/gtk1/pen.h index cbe0cd1ae2..2f1d51c909 100644 --- a/include/wx/gtk1/pen.h +++ b/include/wx/gtk1/pen.h @@ -21,13 +21,19 @@ #include "wx/gdiobj.h" #include "wx/gdicmn.h" +#include // only needed for wxGTKDash, should it go elsewhere.. + //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class wxPen; -typedef char wxDash; +#if GTK_CHECK_VERSION(1,2,7) +typedef gint8 wxGTKDash; +#else +typedef gchar wxGTKDash; +#endif //----------------------------------------------------------------------------- // wxPen @@ -35,10 +41,7 @@ typedef char wxDash; class wxPen: public wxGDIObject { - DECLARE_DYNAMIC_CLASS(wxPen) - - public: - +public: wxPen(); wxPen( const wxColour &colour, int width, int style ); wxPen( const wxPen& pen ); @@ -68,7 +71,8 @@ class wxPen: public wxGDIObject void Unshare(); - // no data :-) +private: + DECLARE_DYNAMIC_CLASS(wxPen) }; #endif // __GTKPENH__