/////////////////////////////////////////////////////////////////////////////
-// Name: wx/pen.h
+// Name: wx/msw/pen.h
// Purpose: wxPen class
// Author: Julian Smart
// Modified by: Vadim Zeitlin: fixed operator=(), ==(), !=()
#ifndef _WX_PEN_H_
#define _WX_PEN_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "pen.h"
-#endif
-
#include "wx/gdiobj.h"
#include "wx/bitmap.h"
#include "wx/colour.h"
wxPen();
wxPen(const wxColour& col, int width = 1, int style = wxSOLID);
wxPen(const wxBitmap& stipple, int width);
- wxPen(const wxPen& pen) { Ref(pen); }
virtual ~wxPen();
- wxPen& operator=(const wxPen& pen)
- {
- if ( this != &pen )
- Ref(pen);
-
- return *this;
- }
-
bool operator==(const wxPen& pen) const
{
const wxPenRefData *penData = (wxPenRefData *)pen.m_refData;
bool operator!=(const wxPen& pen) const { return !(*this == pen); }
- virtual bool Ok() const { return (m_refData != NULL); }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const { return (m_refData != NULL); }
// Override in order to recreate the pen
void SetColour(const wxColour& col);
};
#endif // _WX_PEN_H_
-