17 #include "TVirtualX.h"
37 m_highlightContext(iHighlightContext),
43 m_font = gClient->GetFontPool()->FindFontByHandle(
m_context->GetFont());
88 FontMetrics_t metrics;
89 m_font->GetFontMetrics(&metrics);
101 gVirtualX->DrawString(iID,
m_context->GetGC(),iX+dX,iY+metrics.fAscent +1,
m_data.c_str(),
m_data.size());
136 return m_font->TextHeight();
151 static const TGGC* s_default = gClient->GetResourcePool()->GetFrameGC();
159 static const TGGC* s_default = 0;
162 gval.fMask = kGCForeground | kGCBackground | kGCStipple | kGCFillStyle | kGCGraphicsExposures;
163 gval.fForeground = gVirtualX->GetPixel(kGray);
164 gval.fBackground = gVirtualX->GetPixel(kWhite);
165 gval.fFillStyle = kFillOpaqueStippled;
166 gval.fStipple = gClient->GetResourcePool()->GetCheckeredBitmap();
167 gval.fGraphicsExposures = kFALSE;
168 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)
volatile std::atomic< bool > shutdown_flag false
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)