18 #include "TVirtualX.h"
36 m_context(iTextContext),
37 m_frameContext(iFillContext),
42 m_font = gClient->GetFontPool()->FindFontByHandle(
m_context->GetFont());
74 gVirtualX->DrawLine(iID,
m_frameContext->GetGC(),iX-1,iY-1,iX-1,iY+iHeight);
75 gVirtualX->DrawLine(iID,
m_frameContext->GetGC(),iX+iWidth,iY-1,iX+iWidth,iY+iHeight);
76 gVirtualX->DrawLine(iID,
m_frameContext->GetGC(),iX-1,iY-1,iX+iWidth,iY-1);
77 gVirtualX->DrawLine(iID,
m_frameContext->GetGC(),iX-1,iY+iHeight,iX+iWidth,iY+iHeight);
79 FontMetrics_t metrics;
80 m_font->GetFontMetrics(&metrics);
120 return m_font->TextHeight();
135 static const TGGC* s_default = gClient->GetResourcePool()->GetFrameGC();
143 static const TGGC* s_default = 0;
146 gval.fMask = kGCForeground | kGCBackground | kGCTile |
147 kGCFillStyle | kGCGraphicsExposures;
148 gval.fForeground = gClient->GetResourcePool()->GetFrameHiliteColor();
149 gval.fBackground = gClient->GetResourcePool()->GetFrameBgndColor();
150 gval.fFillStyle = kFillTiled;
151 gval.fTile = gClient->GetResourcePool()->GetCheckeredPixmap();
152 gval.fGraphicsExposures = kFALSE;
153 s_default = gClient->GetGC(&gval, kTRUE);
static const TGGC & getFillGC()
void setData(const std::string &)
virtual UInt_t width() const
returns the minimum width of the cell to which the renderer is representing
virtual UInt_t height() const
returns the minimum height of the cell to which the renderer is representing
const TGGC * m_frameContext
virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight)
static const TGGC & getDefaultGC()
const TGFont * font() const
FWFramedTextTableCellRenderer(const TGGC *iTextContext=&(getDefaultGC()), const TGGC *iFillContext=&(getFillGC()), Justify iJustify=kJustifyLeft)
virtual ~FWFramedTextTableCellRenderer()