Logo ROOT   6.10/09
Reference Guide
TGTableContainer.h
Go to the documentation of this file.
1 // Author: Roel Aaij 14/08/2007
2 
3 /*************************************************************************
4  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 #ifndef ROOT_TGTableFrame
12 #define ROOT_TGTableFrame
13 
14 #include "TGCanvas.h"
15 #include "TGTableHeader.h"
16 
17 class TGTableFrame : public TQObject {
18 
19 protected:
20  TGCompositeFrame *fFrame; // Composite frame used as a container
21  TGCanvas *fCanvas; // Pointer to the canvas that used this frame.
22 
23 public:
24  TGTableFrame(const TGWindow *p, UInt_t nrows, UInt_t ncolumns);
25  virtual ~TGTableFrame() { delete fFrame; }
26 
27  TGFrame *GetFrame() const { return fFrame; }
28 
29  void SetCanvas(TGCanvas *canvas) { fCanvas = canvas; }
30  void HandleMouseWheel(Event_t *event);
31  virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);
32 
33  ClassDef(TGTableFrame, 0) // A frame used internally by TGTable.
34 };
35 
37 
38 protected:
39  Int_t fX0; // X coordinate of the header frame
40  Int_t fY0; // Y coordinate of the header frame
41  TGTable *fTable; // Table that this frame belongs to
42 
43 public:
44  TGTableHeaderFrame(const TGWindow *p, TGTable *table = 0, UInt_t w = 1,
46  UInt_t option = 0);
48 
49  virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);
50 
51  ClassDef(TGTableHeaderFrame, 0) // A frame used internally by TGTable.
52 };
53 
54 #endif // ROOT_TGTableFrame
55 
56 
TH1 * h
Definition: legend2.C:5
void HandleMouseWheel(Event_t *event)
Handle mouse wheel to scroll.
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
Definition: TQObject.h:49
int Int_t
Definition: RtypesCore.h:41
void SetCanvas(TGCanvas *canvas)
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:297
virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a region of container in viewport.
TGFrame * GetFrame() const
virtual ~TGTableFrame()
unsigned int UInt_t
Definition: RtypesCore.h:42
TGCompositeFrame * fFrame
int type
Definition: TGX11.cxx:120
Double_t y[n]
Definition: legend1.C:17
TGCanvas * fCanvas
EHeaderType
Definition: TGTableHeader.h:16
TGTableFrame(const TGWindow *p, UInt_t nrows, UInt_t ncolumns)
Create the container used to view TGTableCells. p.