X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac3688c0d8a39d200f0556ad4b401d89b45ff04a..2d14a14c573db4b8f8959b1460a269cf23defbcf:/include/wx/palmos/pen.h?ds=inline diff --git a/include/wx/palmos/pen.h b/include/wx/palmos/pen.h index 0afaf1c925..58eecece9e 100644 --- a/include/wx/palmos/pen.h +++ b/include/wx/palmos/pen.h @@ -21,7 +21,7 @@ typedef WXDWORD wxMSWDash; class WXDLLIMPEXP_FWD_CORE wxPen; // VZ: this class should be made private -class WXDLLEXPORT wxPenRefData : public wxGDIRefData +class WXDLLIMPEXP_CORE wxPenRefData : public wxGDIRefData { public: wxPenRefData(); @@ -57,7 +57,7 @@ private: friend class WXDLLIMPEXP_FWD_CORE wxPen; // Cannot use - // DECLARE_NO_COPY_CLASS(wxPenRefData) + // wxDECLARE_NO_COPY_CLASS(wxPenRefData); // because copy constructor is explicitly declared above; // but no copy assignment operator is defined, so declare // it private to prevent the compiler from defining it: @@ -71,7 +71,7 @@ private: // Pen // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxPen : public wxPenBase +class WXDLLIMPEXP_CORE wxPen : public wxPenBase { public: wxPen(); @@ -111,13 +111,13 @@ public: wxPenCap GetCap() const { return (M_PENDATA ? M_PENDATA->m_cap : 0); }; int GetDashes(wxDash **ptr) const { - *ptr = (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : (wxDash*) NULL); + *ptr = (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : NULL); return (M_PENDATA ? M_PENDATA->m_nbDash : 0); } - wxDash* GetDash() const { return (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : (wxDash*)NULL); }; + wxDash* GetDash() const { return (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : NULL); }; inline int GetDashCount() const { return (M_PENDATA ? M_PENDATA->m_nbDash : 0); }; - inline wxBitmap *GetStipple() const { return (M_PENDATA ? (& M_PENDATA->m_stipple) : (wxBitmap*) NULL); }; + inline wxBitmap *GetStipple() const { return (M_PENDATA ? (& M_PENDATA->m_stipple) : NULL); }; // Internal bool RealizeResource(); @@ -125,6 +125,11 @@ public: WXHANDLE GetResourceHandle() const; bool IsFree() const; +#if FUTURE_WXWIN_COMPATIBILITY_3_0 + wxDEPRECATED_FUTURE( void SetStyle(int style) ) + { SetStyle((wxPenStyle)style); } +#endif + protected: virtual wxGDIRefData* CreateGDIRefData() const; virtual wxGDIRefData* CloneGDIRefData(const wxGDIRefData* data) const;