all repos — fluxbox @ 2416e27d396abd65ca7417d50536d3a5ee76b657

custom fork of the fluxbox windowmanager

source doc
fluxgen fluxgen
commit

2416e27d396abd65ca7417d50536d3a5ee76b657

parent

d8bdbf3bb946475a7a5cbb0c52a9ee440d31bf1d

1 files changed, 14 insertions(+), 3 deletions(-)

jump to
M src/FbTk/App.hhsrc/FbTk/App.hh

@@ -25,20 +25,31 @@

#include <X11/Xlib.h> namespace FbTk { + +/// Main class for applications, every application must create an instance of this class /** - Main class for applications, every application must create an instance of this class -*/ + * Usage: \n + * App app; \n + * ... \n + * init some other stuff; \n + * ... \n + * main loop starts here: \n + * app.eventLoop(); \n + * + * To end main loop you call App::instance()->end() + */ class App { public: /// @return singleton instance of App static App *instance(); + /// creates a display connection explicit App(const char *displayname=0); virtual ~App(); /// display connection Display *display() const { return m_display; } /// starts event loop virtual void eventLoop(); - /// ends event loop + /// forces an end to event loop void end(); private: static App *s_app;