// Brush
class WXDLLEXPORT wxBrush: public wxBrushBase
{
- DECLARE_DYNAMIC_CLASS(wxBrush)
-
public:
wxBrush();
wxBrush(const wxColour& rCol, int nStyle = wxSOLID);
inline wxBitmap* GetStipple(void) const { return (M_BRUSHDATA ? & M_BRUSHDATA->m_vStipple : 0); };
inline int GetPS(void) const { return (M_BRUSHDATA ? M_BRUSHDATA->m_hBrush : 0); };
- inline virtual bool Ok() const { return IsOk(); }
- inline virtual bool IsOk(void) const { return (m_refData != NULL) ; }
-
//
// Implementation
//
virtual WXHANDLE GetResourceHandle(void) const;
bool FreeResource(bool bForce = false);
bool IsFree(void) const;
- void Unshare(void);
+
+protected:
+ virtual wxGDIRefData *CreateGDIRefData() const;
+ virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxBrush)
}; // end of CLASS wxBrush
#endif