Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
17class TGTableFrame : public TQObject {
18
19protected:
20 TGCompositeFrame *fFrame; ///< Composite frame used as a container
21 TGCanvas *fCanvas; ///< Pointer to the canvas that used this frame.
22
23public:
24 TGTableFrame(const TGWindow *p, UInt_t nrows, UInt_t ncolumns);
25 ~TGTableFrame() override { 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 ClassDefOverride(TGTableFrame, 0) // A frame used internally by TGTable.
34};
35
37
38protected:
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
43public:
44 TGTableHeaderFrame(const TGWindow *p, TGTable *table = nullptr, UInt_t w = 1,
46 UInt_t option = 0);
47 ~TGTableHeaderFrame() override {}
48
49 virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);
50
51 ClassDefOverride(TGTableHeaderFrame, 0) // A frame used internally by TGTable.
52};
53
54#endif // ROOT_TGTableFrame
55
56
#define h(i)
Definition RSha256.hxx:106
int Int_t
Definition RtypesCore.h:45
unsigned int UInt_t
Definition RtypesCore.h:46
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
EHeaderType
@ kColumnHeader
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
Definition TGCanvas.h:192
The base class for composite widgets (menu bars, list boxes, etc.).
Definition TGFrame.h:287
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
Definition TGFrame.h:80
TGTableFrame contains a composite frame that uses a TGMatrixLayout to Layout the frames it contains.
~TGTableFrame() override
void HandleMouseWheel(Event_t *event)
Handle mouse wheel to scroll.
void SetCanvas(TGCanvas *canvas)
TGCompositeFrame * fFrame
Composite frame used as a container.
TGFrame * GetFrame() const
virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a region of container in viewport.
TGCanvas * fCanvas
Pointer to the canvas that used this frame.
TGTableHeaderFrame implements a frame used to display TGTableHeaders in a TGTable.
Int_t fX0
X coordinate of the header frame.
Int_t fY0
Y coordinate of the header frame.
TGTable * fTable
Table that this frame belongs to.
virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a region of container in viewport.
~TGTableHeaderFrame() override
Create an array to hold a bunch of numbers.
Definition TGTable.h:34
ROOT GUI Window base class.
Definition TGWindow.h:23
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....
Definition TQObject.h:48
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
Event structure.
Definition GuiTypes.h:174