wxBrushBase between wxBrush and wxGDIObject (class follows wxFontBase model).
[wxWidgets.git] / include / wx / brush.h
1 #ifndef _WX_BRUSH_H_BASE_
2 #define _WX_BRUSH_H_BASE_
3
4 // wxBrushBase
5 class WXDLLEXPORT wxBrushBase: public wxGDIObject
6 {
7 public:
8 virtual ~wxBrushBase() { }
9
10 virtual int GetStyle() const = 0;
11
12 virtual bool IsHatch() const
13 { return (GetStyle()>=wxFIRST_HATCH) && (GetStyle()<=wxLAST_HATCH); }
14 };
15
16 #if defined(__PALMOS__)
17 #include "wx/palmos/brush.h"
18 #elif defined(__WXMSW__)
19 #include "wx/msw/brush.h"
20 #elif defined(__WXMOTIF__) || defined(__WXX11__)
21 #include "wx/x11/brush.h"
22 #elif defined(__WXGTK__)
23 #include "wx/gtk/brush.h"
24 #elif defined(__WXMGL__)
25 #include "wx/mgl/brush.h"
26 #elif defined(__WXMAC__)
27 #include "wx/mac/brush.h"
28 #elif defined(__WXCOCOA__)
29 #include "wx/cocoa/brush.h"
30 #elif defined(__WXPM__)
31 #include "wx/os2/brush.h"
32 #endif
33
34 #endif
35 // _WX_BRUSH_H_BASE_