48 :
TGFrame(p, width, height, option), fTip(0), fReadOnly(
kFALSE),
50 fFontStruct(font), fHasOwnFont(
kFALSE), fColumn(column), fRow(row),
141 Int_t max_ascent = 0, max_descent = 0;
145 fTHeight = max_ascent + max_descent;
304 Int_t lx = 0, ly = 0;
347 Int_t max_ascent = 0, max_descent = 0;
351 fTHeight = max_ascent + max_descent;
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
static const TGGC * fgDefaultGC
virtual void SetLabel(const char *label)
Set the label of this cell to label.
virtual ~TGTableCell()
TGTableCell destructor.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
const TGResourcePool * GetResourcePool() const
void Init(Bool_t resize)
Initialise the TGTableCell.
virtual void SetFont(FontStruct_t font)
Changes text font.
static Pixel_t fgWhitePixel
virtual Pixel_t GetRowBackground(UInt_t row) const
virtual UInt_t GetWidth() const
TGGC * FindGC(const TGGC *gc)
Find graphics context. Returns 0 in case gc is not found.
static FontStruct_t GetDefaultFontStruct()
Return default font structure.
static const TGFont * fgDefaultFont
virtual void DoRedraw()
Redraw the frame.
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
Draw list view item in other window.
virtual void Highlight()
Highlight the this TGTableCell.
static Pixel_t fgBlackPixel
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
const GCValues_t * GetAttributes() const
TGTableCell(const TGWindow *p=0, TGTable *table=0, TGString *label=0, UInt_t row=0, UInt_t column=0, UInt_t width=80, UInt_t height=25, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=0, Bool_t resize=kTRUE)
TGTableCell constructor.
void SetFont(FontH_t v)
Set font.
virtual const TGTableHeader * GetRowHeader(const UInt_t row) const
virtual Pixel_t GetBackground() const
virtual void SetImage(TGPicture *image)
Set the image that this cell contains to image.
virtual void Move(Int_t x, Int_t y)
Move frame.
const char * GetString() const
virtual void SelectColumn()
Select the column that this TGTableCell belongs to.
static const TGGC & GetDefaultGC()
Return default graphics context.
virtual void SelectRow()
Select the row that this TGTableCell belongs to.
virtual const TGTableHeader * GetColumnHeader(const UInt_t column) const
virtual UInt_t GetHeight() const
FontStruct_t GetFontStruct() const
virtual void SetString(const char *s)
virtual void DoRedraw()
Redraw the TGTableCell.
TGGCPool * GetGCPool() const
virtual void Resize(UInt_t width, UInt_t height)
Resize the TGTableCell.
virtual void SetTextJustify(Int_t tmode)
Set the text justify mode of the cell to mode.
virtual void Select()
Select this TGTableCell.
virtual void MoveDraw(Int_t x, Int_t y)
Move the TGTableCell and redraw it.
virtual void DrawBorder()
Draw the cell border.
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get a font from the font pool.
virtual void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
Draw string.
TGGC * GetGC(GCValues_t *values, Bool_t rw=kFALSE)
Get the best matching graphics context depending on values.