35 Int_t GetUnID(
void) {
return ++nID; }
47 TGSimpleTable *fSimpleTable;
52 ~TableTest()
override;
56 TGSimpleTable *GetTable() {
return fSimpleTable; }
65 fNDataColumns(ndcols),
67 fNTableColumns(ntcols),
71 Connect(
"CloseWindow()",
"TableTest",
this,
"DoExit()");
77 for (i = 0; i < (
Int_t)fNDataRows; i++) {
78 fData[i] =
new Double_t[fNDataColumns];
79 for (j = 0; j < (
Int_t)fNDataColumns; j++) {
80 fData[i][j] = 10 * i + j;
85 fSimpleTable =
new TGSimpleTable(
this, IDs.GetUnID(), fData, fNTableRows, fNTableColumns);
89 SetWindowName(
"TGSimpleTable Test");
92 Resize(GetDefaultWidth() + 20, 600);
96TableTest::~TableTest()
100 for (i = 0; i < fNDataRows; i++) {
107void TableTest::DoExit()
120 TableTest *test =
new TableTest(
nullptr, ndrows, ndcols, ntrows, ntcols, 500, 200);
121 return test->GetTable();
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void w
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
To provide a simple class to visualize an array of doubles, the class TGSimpleTable is provided.
ROOT GUI Window base class.
RooCmdArg Layout(double xmin, double xmax=0.99, double ymin=0.95)