This commit is contained in:
Cary Sandvig 2000-10-25 23:59:46 +00:00
parent 5a56af5c67
commit 6420f478e7
3 changed files with 27 additions and 0 deletions

0
panda/src/gui/Sources.pp Normal file
View File

View File

@ -0,0 +1,11 @@
// Filename: guiManager.I
// Created by: cary (25Oct00)
//
////////////////////////////////////////////////////////////////////
INLINE GuiManager* GuiManager::get_ptr(void) {
if (_singleton == (GuiManager*)0L) {
_singleton = new GuiManager;
}
return _singleton;
}

View File

@ -0,0 +1,16 @@
// Filename: guiManager.h
// Created by: cary (25Oct00)
//
////////////////////////////////////////////////////////////////////
#ifndef __GUIMANAGER_H__
#define __GUIMANAGER_H__
class GuiManager {
private:
static GuiManager* _singleton;
public:
INLINE static GuiManager* get_ptr(void);
};
#endif /* __GUIMANAGER_H__ */