#ifndef ROOT_TQtBrush
#define ROOT_TQtBrush
#ifndef __CINT__
# include <qbrush.h>
# include <qcolor.h>
# include <qpixmap.h>
#else
class QColor;
class QBrush;
class QPixmap;
#endif
#include "Rtypes.h"
class TQtBrush : public QBrush
{
protected:
QColor fBackground;
int fStyle;
int fFasi;
#if defined(R__WIN32) && (QT_VERSION < 0x40000)
QPixmap fCustomPixmap;
#endif
void ResetColor(){ SetColor(fBackground); }
public:
TQtBrush();
TQtBrush(const TQtBrush &src):QBrush(src)
{
fBackground=src.fBackground;
fStyle=src.fStyle;
fFasi=src.fFasi;
}
virtual ~TQtBrush(){;}
Bool_t IsTransparent() const;
void SetStyle(int style=1000){ SetStyle(style/1000,style%1000); };
void SetStyle(int style, int fasi);
void SetColor(const QColor &color);
const QColor &GetColor() const { return fBackground;}
int GetStyle() const { return 1000*fStyle + fFasi; }
ClassDef(TQtBrush,0);
};
inline Bool_t TQtBrush::IsTransparent() const
{ return fStyle >= 4000 && fStyle <= 4100 ? kTRUE : kFALSE; }
#endif
Last change: Fri Nov 28 17:01:24 2008
Last generated: 2008-11-28 17:01
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.