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

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