/////////////////////////////////////////////////////////////////////////////
-// 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 wxPen& operator = (const wxPen& rPen)
+ { if (*this == rPen) return (*this); Ref(rPen); return *this; }
+ 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);
AREABUNDLE m_vAreaBundle;
}; // end of CLASS wxPen
+extern int wx2os2PenStyle(int nWxStyle);
+
#endif
// _WX_PEN_H_