SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
InternalFrameHolder.h
Go to the documentation of this file.
1 
8 #ifndef __SCV_WINDOW_HOLDER_H__
9 #define __SCV_WINDOW_HOLDER_H__
10 
11 #include "Singleton.h"
12 #include "MouseEvent.h"
13 #include "KeyEvent.h"
14 
15 namespace scv {
16 
17 class InternalFrame;
18 
19 class InternalFrameHolder : public Singleton<InternalFrameHolder> {
21 public:
22  void display(void);
23 
24  bool processMouse(const scv::MouseEvent &evt);
25  bool processKey(const scv::KeyEvent &evt);
26 
27  void closeAllWindows(void);
28 
29  void registerFrame(InternalFrame *frame);
30 
31 protected:
32  std::deque<InternalFrame*> _framesDeque;
33 };
34 
35 } // namespace scv
36 
37 #endif // __SCV_WINDOW_HOLDER_H__