18 #include "TVirtualX.h"
38 m_highlightContext(iHighlightContext),
44 m_font = gClient->GetFontPool()->FindFontByHandle(
m_context->GetFont());
89 FontMetrics_t metrics;
90 m_font->GetFontMetrics(&metrics);
102 gVirtualX->DrawString(iID,
m_context->GetGC(),iX+dX,iY+metrics.fAscent +1,
m_data.c_str(),
m_data.size());
137 return m_font->TextHeight();
152 static const TGGC* s_default = gClient->GetResourcePool()->GetFrameGC();
160 static const TGGC* s_default = 0;
163 gval.fMask = kGCForeground | kGCBackground | kGCStipple | kGCFillStyle | kGCGraphicsExposures;
164 gval.fForeground = gVirtualX->GetPixel(kGray);
165 gval.fBackground = gVirtualX->GetPixel(kWhite);
166 gval.fFillStyle = kFillOpaqueStippled;
167 gval.fStipple = gClient->GetResourcePool()->GetCheckeredBitmap();
168 gval.fGraphicsExposures = kFALSE;
169 s_default = gClient->GetGC(&gval, kTRUE);
virtual UInt_t height() const
returns the minimum height of the cell to which the renderer is representing
FWTextTableCellRenderer(const TGGC *iContext=&(getDefaultGC()), const TGGC *iHighlightContext=&(getDefaultHighlightGC()), Justify iJustify=kJustifyLeft)
virtual ~FWTextTableCellRenderer()
static const TGGC & getDefaultGC()
const TGFont * font() const
const TGGC * m_highlightContext
static const TGGC & getDefaultHighlightGC()
void setData(const std::string &, bool isSelected)
virtual UInt_t width() const
returns the minimum width of the cell to which the renderer is representing
virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight)