/////////////////////////////////////////////////////////////////////////////
-// Name: pen.h
+// Name: wx/os2/pen.h
// Purpose: wxPen class
// Author: David Webster
// Modified by:
public:
wxPen();
wxPen( const wxColour& rColour
- ,int nWidth
- ,int nStyle
+ ,int nWidth = 1
+ ,int nStyle = wxSOLID
);
wxPen( const wxBitmap& rStipple
,int nWidth
);
- inline wxPen(const wxPen& rPen) { Ref(rPen); }
~wxPen();
- inline wxPen& operator = (const wxPen& rPen) { if (*this == rPen) return (*this); Ref(rPen); return *this; }
- inline bool operator == (const wxPen& rPen) { return m_refData == rPen.m_refData; }
- inline bool operator != (const wxPen& rPen) { return m_refData != rPen.m_refData; }
+ inline bool operator == (const wxPen& rPen) const
+ { return m_refData == rPen.m_refData; }
+ inline bool operator != (const wxPen& rPen) const
+ { return m_refData != rPen.m_refData; }
virtual bool Ok(void) const { return (m_refData != NULL); }
// Override in order to recreate the pen
//
void SetColour(const wxColour& rColour);
- void SetColour( unsigned char cRed
- ,unsigned char cGreen
- ,unsigned char cBlue
- );
+ void SetColour(unsigned char cRed, unsigned char cGreen, unsigned char cBlue);
void SetWidth(int nWidth);
void SetStyle(int nStyle);
// Useful helper: create the brush resource
//
bool RealizeResource(void);
- bool FreeResource(bool bForce = FALSE);
+ bool FreeResource(bool bForce = false);
WXHANDLE GetResourceHandle(void);
bool IsFree(void) const;
void Unshare(void);