ROOT logo
ROOT » GRAF2D » QT » TQtBrush

class TQtBrush: public QBrush


 TQtBrush creates the QBrush Qt object based on the ROOT "TAttFill" attributes


Function Members (Methods)

public:
TQtBrush()
TQtBrush(const TQtBrush& src)
virtual~TQtBrush()
static TClass*Class()
const QColor&GetColor() const
intGetStyle() const
virtual TClass*IsA() const
Bool_tIsTransparent() const
TQtBrush&operator=(const TQtBrush&)
voidSetColor(const QColor& qtcolor)
voidSetColor(Color_t cindex)
voidSetStyle(int newStyle = 1000)
voidSetStyle(int style, int fasi)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
voidSetColorOwn()

Data Members

protected:
intfAlphatransparency
QColorfBackground
intfFasi
intfStyle

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TQtBrush()
{}
void SetColor(Color_t cindex)
 Set color index for to fill shapes
  cindex    : color index
void SetColor(const QColor &qtcolor)
 remember the user's alpha value and set the  brush color
void SetColorOwn()
 Set the brush color and adjust its alpha value from fStyle
 Take in account the new transperency if needed
void SetStyle(int style, int fasi)
Set fill area style index*-*-*-*-*-
*-*                  =========================
*-*  style   : fill area interior style hollow or solid
*
Bool_t IsTransparent() const
{ return fStyle >= 4000 && fStyle <= 4100 ? kTRUE : kFALSE; }
TQtBrush()
virtual ~TQtBrush()
{;}
void SetStyle(int newStyle = 1000)
const QColor & GetColor() const
{ return fBackground;}
int GetStyle() const
{ return 1000*fStyle + fFasi; }