00001 #ifndef KDE__BRUSH_H
00002 #define KDE__BRUSH_H
00003
00004
00005 #include <faith/color.h>
00006 #include <faith/bitmap.h>
00007
00008
00009 namespace Faith
00010 {
00011
00017 class FAITH_CORE_EXPORT Brush
00018 {
00019 public:
00031 enum Style
00032 {
00033 NoBrush,
00034 SolidPattern,
00035 HorPattern,
00036 VerPattern,
00037 CustomPattern
00038 };
00039
00040 public:
00044 Brush();
00048 Brush(Style style);
00053 Brush(const Color &color, const Bitmap &bitmap);
00057 Brush(const Pixmap &pixmap);
00061 Brush(const Brush ©);
00062
00063 ~Brush();
00064
00065 Brush &operator=(const Brush ©);
00066
00067 bool operator ==(const Brush &other);
00068 bool operator !=(const Brush &other) { return !operator==(other); }
00069
00074 const Pixmap &pixmap() const;
00079 Style style() const;
00080 };
00081
00082
00083 }
00084
00085
00086 #endif