X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..10310d83222024c0a4f22e04ae3cc6f18caf5e47:/include/wx/msw/pen.h?ds=sidebyside diff --git a/include/wx/msw/pen.h b/include/wx/msw/pen.h index 7f2b8491ab..7635328dbd 100644 --- a/include/wx/msw/pen.h +++ b/include/wx/msw/pen.h @@ -5,12 +5,12 @@ // Modified by: // Created: 01/02/97 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Copyright: (c) Julian Smart +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef __PENH__ -#define __PENH__ +#ifndef _WX_PEN_H_ +#define _WX_PEN_H_ #ifdef __GNUG__ #pragma interface "pen.h" @@ -27,6 +27,7 @@ class WXDLLEXPORT wxPenRefData: public wxGDIRefData friend class WXDLLEXPORT wxPen; public: wxPenRefData(void); + wxPenRefData(const wxPenRefData& data); ~wxPenRefData(void); protected: @@ -53,7 +54,7 @@ public: wxPen(const wxString& col, int width, int style); wxPen(const wxBitmap& stipple, int width); inline wxPen(const wxPen& pen) { Ref(pen); } - inline wxPen(const wxPen* pen) { /* UnRef(); */ if (pen) Ref(*pen); } + inline wxPen(const wxPen* pen) { if (pen) Ref(*pen); } ~wxPen(void); inline wxPen& operator = (const wxPen& pen) { if (*this == pen) return (*this); Ref(pen); return *this; } @@ -90,9 +91,10 @@ public: bool FreeResource(bool force = FALSE); WXHANDLE GetResourceHandle(void) ; bool IsFree(void); + void Unshare(); }; int wx2msPenStyle(int wx_style); #endif - // __PENH__ + // _WX_PEN_H_