source: trunk/MagicSoft/Cosy/gui/MGImage.h@ 1802

Last change on this file since 1802 was 1690, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 954 bytes
Line 
1#ifndef MGIMAGE_H
2#define MGIMAGE_H
3
4//
5// This File contains the declaration of the MGImage-class
6//
7// Author: Thomas Bretz
8// Version: V1.0 (1-8-2000)
9
10#include <TGFrame.h>
11
12class TTimer;
13
14typedef unsigned char byte;
15
16class MGImage : public TGFrame
17{
18 char fColors[0x100][3];
19
20 char **fBuffer;
21 char **fBody;
22
23 GContext_t fDefGC;
24 Pixmap_t fPixmap;
25
26 UInt_t fWidth;
27 UInt_t fHeight;
28
29 void *fMuxPixmap; //! test
30
31 TTimer *fTimer;
32
33 enum { kNeedRecreate = BIT(17) };
34
35public:
36 MGImage(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame, ULong_t back = fgDefaultFrameBackground);
37 ~MGImage();
38
39 void DoRedraw();
40
41 void Resize(UInt_t w, UInt_t h);
42 void Resize(TGDimension size);
43 void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h);
44
45 void DrawImg(const byte *buffer);
46 void DrawColImg(const byte *gbuf, const byte *cbuf);
47
48 ClassDef(MGImage, 0)
49};
50
51#endif // MGIMAGE_H
Note: See TracBrowser for help on using the repository browser.