40 :
TGTableCell(p, table, label, 0, 0, width, height, norm, font, option,
72 const char *label,
UInt_t position,
75 :
TGTableCell(p, table, label, 0, 0, width, height, norm, font,
124 Int_t max_ascent = 0, max_descent = 0;
128 fTHeight = max_ascent + max_descent;
241 while(
fTable->GetColumnHeader(nhdr) !=
this) {
246 while(
fTable->GetRowHeader(nhdr) !=
this) {
Handle_t GContext_t
Graphics context handle.
Handle_t FontStruct_t
Pointer to font structure.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
const Bool_t kSortAscending
virtual UInt_t GetDefaultWidth() const
virtual UInt_t GetDefaultHeight() const
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
virtual void SetLabel(const char *label)
Set the label of this cell to label.
TGTableCell(const TGWindow *p=nullptr, TGTable *table=nullptr, TGString *label=nullptr, 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.
virtual UInt_t GetWidth() const
UInt_t fTWidth
Label width.
FontStruct_t fFontStruct
Font of the label.
TGTable * fTable
TGTable that a cell belongs to.
UInt_t fTHeight
Label height.
TGString * fLabel
Text as shown in the cell.
UInt_t fRow
Row this cell belongs to.
void Resize(UInt_t width, UInt_t height) override
Resize the TGTableCell.
UInt_t fColumn
Column this cell belongs to.
virtual UInt_t GetHeight() const
virtual TGTableHeader * GetTableHeader()
Return a pointer to the table header.