source: trunk/MagicSoft/Cosy/gui/MGEmbeddedCanvas.h@ 8125

Last change on this file since 8125 was 4076, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef COSY_MGEmbeddedCanvas
2#define COSY_MGEmbeddedCanvas
3
4//
5// This File contains the declaration of the MGCoordinates-class
6//
7// Author: Thomas Bretz
8// Version: V1.0 (1-8-2000)
9
10
11#ifndef ROOT_TRootEmbeddedCanvas
12#include <TRootEmbeddedCanvas.h>
13#endif
14
15class TList;
16class TCanvas;
17
18class MGEmbeddedCanvas : public TRootEmbeddedCanvas
19{
20private:
21 Bool_t fModified;
22
23protected:
24
25 TCanvas *fCanvas;
26 TList *fList;
27
28 UInt_t fWidth; // const: rootcint/TMemberInspector
29 Float_t fRange; // const: rootcint/TMemberInspector
30 Float_t fPix; // const: rootcint/TMemberInspector
31
32 void InitCanvas();
33
34public:
35 MGEmbeddedCanvas(const char *name, const TGWindow* p,
36 UInt_t width, Double_t range);
37 ~MGEmbeddedCanvas();
38
39 void Resize(TGDimension size);
40 void Resize(UInt_t w, UInt_t h);
41 void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h);
42
43 void UpdateCanvas();
44
45 void SetModified() { fModified = kTRUE; }
46
47 void SetNoContextMenu();
48
49 ClassDef(MGEmbeddedCanvas, 0)
50};
51
52#endif // MGSKYPOSITION_H
Note: See TracBrowser for help on using the repository browser.