1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/brush.h
3 // Purpose: wxBrush class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/gdicmn.h"
16 #include "wx/gdiobj.h"
17 #include "wx/bitmap.h"
19 class WXDLLIMPEXP_FWD_CORE wxBrush
;
22 class WXDLLEXPORT wxBrush
: public wxBrushBase
26 wxBrush(const wxColour
& col
, int style
= wxSOLID
);
27 wxBrush(const wxBitmap
& stipple
);
30 virtual void SetColour(const wxColour
& col
) ;
31 virtual void SetColour(unsigned char r
, unsigned char g
, unsigned char b
) ;
32 virtual void SetStyle(int style
) ;
33 virtual void SetStipple(const wxBitmap
& stipple
) ;
35 bool operator==(const wxBrush
& brush
) const;
36 bool operator!=(const wxBrush
& brush
) const { return !(*this == brush
); }
38 const wxColour
& GetColour() const ;
39 virtual int GetStyle() const ;
40 wxBitmap
*GetStipple() const ;
43 virtual wxGDIRefData
*CreateGDIRefData() const;
44 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
47 DECLARE_DYNAMIC_CLASS(wxBrush
)
50 #endif // _WX_BRUSH_H_