summaryrefslogtreecommitdiff
path: root/src/FbTk/App.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/App.hh')
-rw-r--r--src/FbTk/App.hh28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/FbTk/App.hh b/src/FbTk/App.hh
index bbaa249..2a64e75 100644
--- a/src/FbTk/App.hh
+++ b/src/FbTk/App.hh
@@ -26,24 +26,24 @@
26 26
27namespace FbTk { 27namespace FbTk {
28/** 28/**
29 Main class for applications, every application must create an instance of this class 29 Main class for applications, every application must create an instance of this class
30*/ 30*/
31class App { 31class App {
32public: 32public:
33 /// @return singleton instance of App 33 /// @return singleton instance of App
34 static App *instance(); 34 static App *instance();
35 explicit App(const char *displayname=0); 35 explicit App(const char *displayname=0);
36 virtual ~App(); 36 virtual ~App();
37 /// display connection 37 /// display connection
38 Display *display() const { return m_display; } 38 Display *display() const { return m_display; }
39 /// starts event loop 39 /// starts event loop
40 virtual void eventLoop(); 40 virtual void eventLoop();
41 /// ends event loop 41 /// ends event loop
42 void end(); 42 void end();
43private: 43private:
44 static App *s_app; 44 static App *s_app;
45 bool m_done; 45 bool m_done;
46 Display *m_display; 46 Display *m_display;
47}; 47};
48 48
49}; // end namespace FbTk 49}; // end namespace FbTk