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