35 Int_t GetUnID(
void) {
return ++nID ; }
52 ~TableTest()
override ;
63 :
TGMainFrame(
p,
w,
h), fData(nullptr), fNDataRows(ndrows), fNDataColumns(ndcols),
64 fNTableRows(ntrows), fNTableColumns(ntcols), fSimpleTable(nullptr)
67 Connect(
"CloseWindow()",
"TableTest",
this,
"DoExit()") ;
73 for (i = 0; i < (
Int_t)fNDataRows; i++) {
74 fData[i] =
new Double_t[fNDataColumns];
75 for (j = 0; j < (
Int_t)fNDataColumns; j++) {
76 fData[i][j] = 10 * i + j;
81 fSimpleTable =
new TGSimpleTable(
this, IDs.GetUnID(), fData, fNTableRows,
86 SetWindowName(
"TGSimpleTable Test") ;
89 Resize(GetDefaultWidth()+20, 600) ;
94TableTest::~TableTest()
98 for (i = 0; i < fNDataRows; i++) {
105 void TableTest::DoExit()
118 TableTest *test =
new TableTest(
nullptr, ndrows, ndcols, ntrows, ntcols, 500, 200);
119 return test->GetTable();
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
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)