FbTk::App Class ReferenceMain class for applications, every application must create an instance of this class.
More...
#include <App.hh>
Inheritance diagram for FbTk::App:
List of all members.
|
Public Member Functions |
|
| App (const char *displayname=0) |
| | creates a display connection
|
|
Display * | display () const |
| | display connection
|
|
void | sync (bool discard) |
|
virtual void | eventLoop () |
| | starts event loop
|
|
void | end () |
| | forces an end to event loop
|
|
bool | done () const |
Static Public Member Functions |
|
App * | instance () |
| | singleton instance of App
|
Detailed Description
Main class for applications, every application must create an instance of this class.
Usage:
App app;
...
init some other stuff;
...
main loop starts here:
app.eventLoop();
To end main loop you call App::instance()->end()
Definition at line 41 of file App.hh. The documentation for this class was generated from the following files:
Fluxbox CVS-Jan-2003
|