Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGTableContainer.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Author: Roel Aaij   14/08/2007
0002 
0003 /*************************************************************************
0004  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 #ifndef ROOT_TGTableFrame
0012 #define ROOT_TGTableFrame
0013 
0014 #include "TGCanvas.h"
0015 #include "TGTableHeader.h"
0016 
0017 class TGTableFrame : public TQObject {
0018 
0019 protected:
0020    TGCompositeFrame *fFrame;  ///< Composite frame used as a container
0021    TGCanvas         *fCanvas; ///< Pointer to the canvas that used this frame.
0022 
0023 public:
0024    TGTableFrame(const TGWindow *p, UInt_t nrows, UInt_t ncolumns);
0025    ~TGTableFrame() override { delete fFrame; }
0026 
0027    TGFrame *GetFrame() const { return fFrame; }
0028 
0029    void SetCanvas(TGCanvas *canvas) { fCanvas = canvas; }
0030    void HandleMouseWheel(Event_t *event);
0031    virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);
0032 
0033    ClassDefOverride(TGTableFrame, 0) // A frame used internally by TGTable.
0034 };
0035 
0036 class TGTableHeaderFrame: public TGCompositeFrame {
0037 
0038 protected:
0039    Int_t    fX0;     ///< X coordinate of the header frame
0040    Int_t    fY0;     ///< Y coordinate of the header frame
0041    TGTable *fTable;  ///< Table that this frame belongs to
0042 
0043 public:
0044    TGTableHeaderFrame(const TGWindow *p, TGTable *table = nullptr, UInt_t w = 1,
0045                       UInt_t h = 1, EHeaderType type = kColumnHeader,
0046                       UInt_t option = 0);
0047    ~TGTableHeaderFrame() override {}
0048 
0049    virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);
0050 
0051    ClassDefOverride(TGTableHeaderFrame, 0) // A frame used internally by TGTable.
0052 };
0053 
0054 #endif // ROOT_TGTableFrame
0055 
0056