| Line | |
|---|
| 1 | #ifndef MARS_MLogo
|
|---|
| 2 | #define MARS_MLogo
|
|---|
| 3 |
|
|---|
| 4 | #ifndef __CINT__
|
|---|
| 5 |
|
|---|
| 6 | #include <X11/Xlib.h>
|
|---|
| 7 |
|
|---|
| 8 | #include "Xpm.h"
|
|---|
| 9 |
|
|---|
| 10 | class MLogo
|
|---|
| 11 | {
|
|---|
| 12 | Display *fDisplay; // display handle
|
|---|
| 13 | Window fLogoWindow; // window handle
|
|---|
| 14 | Pixmap fLogoPixmap; // pixmap handle
|
|---|
| 15 | long fMilliSec; // stayup time
|
|---|
| 16 |
|
|---|
| 17 | struct timeval fPopupTime; // time of popup
|
|---|
| 18 |
|
|---|
| 19 | void Wait() const;
|
|---|
| 20 | Pixmap GetLogo() const;
|
|---|
| 21 |
|
|---|
| 22 | public:
|
|---|
| 23 | MLogo(int millisec=777);
|
|---|
| 24 | ~MLogo()
|
|---|
| 25 | {
|
|---|
| 26 | Popdown();
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| 29 | void Popup();
|
|---|
| 30 | void Popdown();
|
|---|
| 31 | };
|
|---|
| 32 |
|
|---|
| 33 | #endif
|
|---|
| 34 |
|
|---|
| 35 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.