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 | #ifndef ROOT_TGFrame
|
---|
11 | #include <TGFrame.h>
|
---|
12 | #endif
|
---|
13 | #ifndef ROOT_TGX11
|
---|
14 | #include <TGX11.h>
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | class TTimer;
|
---|
18 |
|
---|
19 | typedef unsigned char byte;
|
---|
20 |
|
---|
21 | class MGImage : public TGFrame
|
---|
22 | {
|
---|
23 | XImage *fImage;
|
---|
24 |
|
---|
25 | GContext_t fDefGC;
|
---|
26 | Pixmap_t fPixmap;
|
---|
27 |
|
---|
28 | UInt_t fWidth;
|
---|
29 | UInt_t fHeight;
|
---|
30 |
|
---|
31 | void *fMuxPixmap; //! test
|
---|
32 |
|
---|
33 | TTimer *fTimer;
|
---|
34 |
|
---|
35 | enum { kNeedRedraw = BIT(17) };
|
---|
36 |
|
---|
37 | void DrawImg16(unsigned short *d, char *s, char *e);
|
---|
38 | void DrawImg32(char *d, char *s, char *e);
|
---|
39 | void DrawColImg32(char *d, char *s1, char *s2, char *e);
|
---|
40 |
|
---|
41 | public:
|
---|
42 | MGImage(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame, ULong_t back = fgDefaultFrameBackground);
|
---|
43 | ~MGImage();
|
---|
44 |
|
---|
45 | void DoRedraw();
|
---|
46 |
|
---|
47 | void DrawImg(const byte *buffer);
|
---|
48 | void DrawColImg(const byte *gbuf, const byte *cbuf);
|
---|
49 |
|
---|
50 | ClassDef(MGImage, 0)
|
---|
51 | };
|
---|
52 |
|
---|
53 | #endif // MGIMAGE_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.