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

Last change on this file since 1213 was 1111, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 908 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
12typedef unsigned char byte;
13
14class MGImage : public TGFrame
15{
16 char fColors[0x100][3];
17
18 char **fBuffer;
19 char **fBody;
20
21 GContext_t fDefGC;
22 Drawable_t fId;
23 Pixmap_t fPixmap;
24
25 UInt_t fWidth;
26 UInt_t fHeight;
27
28 void *fMuxPixmap; //! test
29
30public:
31
32public:
33 MGImage(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame, ULong_t back = fgDefaultFrameBackground);
34 ~MGImage();
35
36 void DoRedraw();
37
38 void Resize(UInt_t w, UInt_t h);
39 void Resize(TGDimension size);
40 void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h);
41
42 void DrawImg(const byte *buffer);
43 void DrawColImg(const byte *gbuf, const byte *cbuf);
44
45 ClassDef(MGImage, 0)
46};
47
48#endif // MGIMAGE_H
Note: See TracBrowser for help on using the repository browser.